#include <CudappMemory.h>
Public Member Functions | |
| template<typename T > | |
| T * | Allocate (size_t count) |
| virtual void * | AllocateBytes (size_t byte_count)=0 |
| virtual bool | CopyFrom (const void *src, size_t byte_count, size_t offset=0, MemoryLocation src_loc=MemoryOnHost)=0 |
| virtual bool | CopyTo (MemoryBase *dst) const |
| virtual bool | CopyTo (void *dst, size_t byte_count, size_t offset=0, MemoryLocation dst_loc=MemoryOnHost) const =0 |
| const void * | GetMemPointer () const |
| void * | GetMemPointer () |
| template<typename T > | |
| const T * | GetMemPointerAs () const |
| template<typename T > | |
| T * | GetMemPointerAs () |
| virtual Memory & | operator= (const Memory &) |
| virtual void | PrintSelf (std::ostream &os) const |
| virtual | ~Memory () |
Protected Member Functions | |
| virtual bool | CopyFromInternal (const Memory *src) |
| Not Implemented (do this in the subclasses). | |
| Memory (const Memory &) | |
| Memory () | |
Protected Attributes | |
| void * | MemPointer |
| Cudapp::Memory::~Memory | ( | ) | [virtual] |
| Cudapp::Memory::Memory | ( | ) | [protected] |
References MemPointer, and Cudapp::MemoryBase::Size.
| Cudapp::Memory::Memory | ( | const Memory & | ) | [protected] |
| T* Cudapp::Memory::Allocate | ( | size_t | count | ) | [inline] |
| virtual void* Cudapp::Memory::AllocateBytes | ( | size_t | byte_count | ) | [pure virtual] |
Implemented in Cudapp::DeviceMemory, Cudapp::HostMemory, and Cudapp::LocalMemory.
Referenced by CopyFromInternal().
| virtual bool Cudapp::Memory::CopyFrom | ( | const void * | src, | |
| size_t | byte_count, | |||
| size_t | offset = 0, |
|||
| MemoryLocation | src_loc = MemoryOnHost | |||
| ) | [pure virtual] |
Implements Cudapp::MemoryBase.
Implemented in Cudapp::DeviceMemory, and Cudapp::LocalMemory.
Referenced by CopyFromInternal().
Not Implemented (do this in the subclasses).
References AllocateBytes(), CopyFrom(), Cudapp::MemoryBase::Free(), Cudapp::MemoryBase::GetMemoryLocation(), GetMemPointer(), Cudapp::MemoryBase::GetSize(), and teem::size_t.
| virtual bool Cudapp::Memory::CopyTo | ( | MemoryBase * | dst | ) | const [inline, virtual] |
Reimplemented in Cudapp::DeviceMemory, and Cudapp::LocalMemory.
References Cudapp::MemoryBase::CopyFromInternal().
| virtual bool Cudapp::Memory::CopyTo | ( | void * | dst, | |
| size_t | byte_count, | |||
| size_t | offset = 0, |
|||
| MemoryLocation | dst_loc = MemoryOnHost | |||
| ) | const [pure virtual] |
Implements Cudapp::MemoryBase.
Implemented in Cudapp::DeviceMemory, and Cudapp::LocalMemory.
Referenced by Cudapp::LocalMemory::CopyTo(), Cudapp::DeviceMemory::CopyTo(), operator=(), and Cudapp::DeviceMemory::operator=().
| const void* Cudapp::Memory::GetMemPointer | ( | ) | const [inline] |
| void* Cudapp::Memory::GetMemPointer | ( | ) | [inline] |
Referenced by Cudapp::LocalMemory::CopyFrom(), Cudapp::DeviceMemory::CopyFrom(), CopyFromInternal(), Cudapp::LocalMemory::CopyTo(), Cudapp::DeviceMemory::CopyTo(), PrintSelf(), vtkCudaMemoryTexture::RebuildBuffer(), vtkCudaMemoryTexture::UnbindBuffer(), and vtkCudaVolumeInformationHandler::UpdateImageData().
| const T* Cudapp::Memory::GetMemPointerAs | ( | ) | const [inline] |
| T* Cudapp::Memory::GetMemPointerAs | ( | ) | [inline] |
Reimplemented from Cudapp::MemoryBase.
Reimplemented in Cudapp::HostMemory, and Cudapp::LocalMemory.
References CopyTo().
| void Cudapp::Memory::PrintSelf | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from Cudapp::MemoryBase.
Reimplemented in Cudapp::DeviceMemory, Cudapp::HostMemory, and Cudapp::LocalMemory.
References GetMemPointer().
void* Cudapp::Memory::MemPointer [protected] |
Referenced by Cudapp::LocalMemory::AllocateBytes(), Cudapp::HostMemory::AllocateBytes(), Cudapp::DeviceMemory::AllocateBytes(), Cudapp::LocalMemory::Free(), Cudapp::HostMemory::Free(), Cudapp::DeviceMemory::Free(), Memory(), Cudapp::LocalMemory::MemSet(), Cudapp::DeviceMemory::MemSet(), and Cudapp::DeviceMemory::~DeviceMemory().
1.6.1