Fermat
Public Methods | Protected Members | List of all members
Buffer< T > Class Template Reference
Inheritance diagram for Buffer< T >:
DomainBuffer< TYPE, T >

Public Methods

 Buffer (size_t count=0, BufferType type=HOST_BUFFER, PageLockedState pageLockedState=UNLOCKED)
 
 Buffer (const Buffer< T > &src)
 
Buffer< T > & operator= (const Buffer< T > &src)
 
Buffer< T > & operator= (const ManagedBuffer< T > &src)
 
void alloc (size_t count)
 
void alloc (size_t count, BufferType type, PageLockedState pageLockedState=UNLOCKED)
 
void resize (const size_t count)
 
void copy_from (const size_t count, const BufferType src_type, const T *src, const uint32 dst_offset=0)
 
void clear (const uint8 byte)
 
void free ()
 
size_t count () const
 
size_t sizeInBytes () const
 
const T * ptr () const
 
T * ptr ()
 
BufferType type () const
 
operator[] (const size_t i) const
 
T & operator[] (const size_t i)
 
void set (const size_t i, const T val)
 
void swap (Buffer< T > &buf)
 

Protected Members

BufferType m_type
 
T * m_ptr
 
int m_device
 
size_t m_count
 
PageLockedState m_pageLockedState
 

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