Allocates memory on 16-byte boundaries.
More...
Inherits G3D::MemoryManager.
|
virtual void * | alloc (size_t s) |
| Return a pointer to s bytes of memory that are unused by the rest of the program. More...
|
|
virtual void | free (void *ptr) |
| Invoke to declare that this memory will no longer be used by the program. More...
|
|
virtual bool | isThreadsafe () const |
| Returns true if this memory manager is threadsafe (i.e., alloc and free can be called asychronously) More...
|
|
|
template<class T , class ... ArgTypes> |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
| Like std::make_shared, but works for protected constructors. More...
|
|
Allocates memory on 16-byte boundaries.
- See also
- MemoryManager, CRTMemoryManager, AreaMemoryManager
◆ AlignedMemoryManager()
G3D::AlignedMemoryManager::AlignedMemoryManager |
( |
| ) |
|
|
protected |
◆ alloc()
virtual void* G3D::AlignedMemoryManager::alloc |
( |
size_t |
s | ) |
|
|
virtual |
Return a pointer to s bytes of memory that are unused by the rest of the program.
The contents of the memory are undefined
Reimplemented from G3D::MemoryManager.
◆ create()
◆ createShared()
template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared |
( |
ArgTypes &&... |
args | ) |
|
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
◆ free()
virtual void G3D::AlignedMemoryManager::free |
( |
void * |
ptr | ) |
|
|
virtual |
Invoke to declare that this memory will no longer be used by the program.
The memory manager is not required to actually reuse or release this memory.
Reimplemented from G3D::MemoryManager.
◆ isThreadsafe()
virtual bool G3D::AlignedMemoryManager::isThreadsafe |
( |
| ) |
const |
|
virtual |
Returns true if this memory manager is threadsafe (i.e., alloc and free can be called asychronously)
Reimplemented from G3D::MemoryManager.