Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
BIAS::clfMemory Class Reference

#include <OpenCLFramework/clfMemory.hh>

+ Inheritance diagram for BIAS::clfMemory:

Public Member Functions

unsigned int GLId ()
 
bool Initialized ()
 
bool IsReadOnly ()
 
bool IsSharedGL ()
 
bool IsWriteOnly ()
 
unsigned int Size ()
 
void UnMap (void *data)
 
virtual ~clfMemory ()
 

Protected Member Functions

 clfMemory (cl::Context *context, cl::CommandQueue *queue)
 
int DetermineMemFlags_ (bool readonly, bool writeonly, const void *hostptr=NULL, bool copy=false)
 
cl::Memory & memory ()
 

Protected Attributes

cl::Memory buffer_
 
cl::Context * context_
 
unsigned int glid_
 
bool initialized_
 
cl::CommandQueue * queue_
 
bool sharedGL_
 
unsigned int size_
 

Friends

class clfContext
 

Detailed Description

Definition at line 33 of file clfMemory.hh.

Constructor & Destructor Documentation

BIAS::clfMemory::~clfMemory ( )
virtual

Definition at line 40 of file clfMemory.cpp.

BIAS::clfMemory::clfMemory ( cl::Context *  context,
cl::CommandQueue *  queue 
)
protected

Definition at line 31 of file clfMemory.cpp.

References context_, glid_, initialized_, queue_, sharedGL_, and size_.

Member Function Documentation

int BIAS::clfMemory::DetermineMemFlags_ ( bool  readonly,
bool  writeonly,
const void *  hostptr = NULL,
bool  copy = false 
)
protected
unsigned int BIAS::clfMemory::GLId ( )

Definition at line 47 of file clfMemory.cpp.

References glid_, and sharedGL_.

bool BIAS::clfMemory::Initialized ( )
inline

Definition at line 37 of file clfMemory.hh.

bool BIAS::clfMemory::IsReadOnly ( )
bool BIAS::clfMemory::IsSharedGL ( )
inline
bool BIAS::clfMemory::IsWriteOnly ( )

Definition at line 67 of file clfMemory.cpp.

References buffer_.

cl::Memory & BIAS::clfMemory::memory ( )
protected

Definition at line 43 of file clfMemory.cpp.

References buffer_.

Referenced by BIAS::clfContext::AcquireGLObject(), BIAS::clfContext::ReleaseGLObject(), and UnMap().

unsigned int BIAS::clfMemory::Size ( )
inline

Definition at line 40 of file clfMemory.hh.

void BIAS::clfMemory::UnMap ( void *  data)

Friends And Related Function Documentation

friend class clfContext
friend

Definition at line 63 of file clfMemory.hh.

Member Data Documentation

cl::Memory BIAS::clfMemory::buffer_
protected
cl::Context* BIAS::clfMemory::context_
protected
unsigned int BIAS::clfMemory::glid_
protected

Definition at line 61 of file clfMemory.hh.

Referenced by BIAS::clfBuffer::AllocateFromVertexBuffer(), clfMemory(), and GLId().

bool BIAS::clfMemory::initialized_
protected
cl::CommandQueue* BIAS::clfMemory::queue_
protected
bool BIAS::clfMemory::sharedGL_
protected
unsigned int BIAS::clfMemory::size_
protected

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