Newton Dynamics  4.00
ndCudaDeviceBuffer< T > Class Template Reference

Public Member Functions

int GetCount () const
 
void SetCount (int count)
 
void Clear ()
 
void Resize (int count)
 
int GetCapacity () const
 
T & operator[] (int i)
 
const T & operator[] (int i) const
 
void ReadData (const T *const src, int elements)
 
void WriteData (T *const dst, int elements) const
 
void ReadData (const T *const src, int elements, cudaStream_t stream)
 
void WriteData (T *const dst, int elements, cudaStream_t stream) const
 

Public Attributes

T * m_array
 
int m_size
 
int m_capacity