ASL  0.1.7
Advanced Simulation Library
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
acl::MemBlock Class Reference

#include <aclMemBlock.h>

Inheritance diagram for acl::MemBlock:
Inheritance graph
[legend]
Collaboration diagram for acl::MemBlock:
Collaboration graph
[legend]

Public Member Functions

virtual cl::BuffergetBuffer ()
 
shared_ptr< void > map ()
 
- Public Member Functions inherited from acl::ElementBase
virtual string str (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
 
virtual string getName () const =0
 
virtual string getAddressSpaceQualifier () const
 
unsigned int getSize () const
 
CommandQueue getQueue () const
 
TypeID getTypeID () const
 
virtual string getTypeSignature (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
 
virtual string getLocalDeclaration (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
 
virtual void addToKernelSource (vector< shared_ptr< ElementBase > > &arguments, vector< shared_ptr< ElementBase > > &localDeclarations) const =0
 Adds ElementBase to the kernel source either as an argument or as a local declaration. More...
 
virtual void setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const =0
 
virtual ~ElementBase ()
 

Protected Member Functions

 MemBlock ()
 
 MemBlock (unsigned int size, TypeID typeID, CommandQueue queue_)
 
 MemBlock (unsigned int size, TypeID typeID, char *initArray, CommandQueue queue_)
 
virtual void swapBuffers (MemBlock &a)
 
- Protected Member Functions inherited from acl::ElementBase
 ElementBase (bool isWritable_, unsigned int size_, TypeID typeID_)
 

Protected Attributes

shared_ptr< cl::Bufferbuffer
 
weak_ptr< void > region
 
- Protected Attributes inherited from acl::ElementBase
unsigned int size
 
TypeID typeID
 
CommandQueue queue
 

Friends

void swapBuffers (MemBlock &a, MemBlock &b)
 

Additional Inherited Members

- Public Attributes inherited from acl::ElementBase
const bool isWritable
 

Detailed Description

Definition at line 39 of file aclMemBlock.h.

Constructor & Destructor Documentation

◆ MemBlock() [1/3]

acl::MemBlock::MemBlock ( )
protected

◆ MemBlock() [2/3]

acl::MemBlock::MemBlock ( unsigned int  size,
TypeID  typeID,
CommandQueue  queue_ 
)
protected

◆ MemBlock() [3/3]

acl::MemBlock::MemBlock ( unsigned int  size,
TypeID  typeID,
char *  initArray,
CommandQueue  queue_ 
)
protected

Member Function Documentation

◆ getBuffer()

virtual cl::Buffer& acl::MemBlock::getBuffer ( )
virtual

Reimplemented in acl::Subvector< T >.

◆ map()

shared_ptr<void> acl::MemBlock::map ( )

◆ swapBuffers()

virtual void acl::MemBlock::swapBuffers ( MemBlock a)
protectedvirtual

Friends And Related Function Documentation

◆ swapBuffers

void swapBuffers ( MemBlock a,
MemBlock b 
)
friend

Definition at line 62 of file aclMemBlock.h.

Member Data Documentation

◆ buffer

shared_ptr<cl::Buffer> acl::MemBlock::buffer
protected

Definition at line 42 of file aclMemBlock.h.

◆ region

weak_ptr<void> acl::MemBlock::region
protected

Definition at line 43 of file aclMemBlock.h.


The documentation for this class was generated from the following file: