U3D
Open-source, cross-platform 2D and 3D game engine built in C++
Loading...
Searching...
No Matches
Urho3D::Allocator< T > Class Template Reference

Allocator template class. Allocates objects of a specific class. More...

#include </var/dev/u3d/stable/Source/Urho3D/Container/Allocator.h>

Collaboration diagram for Urho3D::Allocator< T >:
[legend]

Public Member Functions

 Allocator (unsigned initialCapacity=0)
 Construct.
 
 ~Allocator ()
 Destruct.
 
 Allocator (const Allocator< T > &rhs)=delete
 Prevent copy construction.
 
Allocator< T > & operator= (const Allocator< T > &rhs)=delete
 Prevent assignment.
 
T * Reserve ()
 Reserve and default-construct an object.
 
T * Reserve (const T &object)
 Reserve and copy-construct an object.
 
void Free (T *object)
 Destruct and free an object.
 

Private Attributes

AllocatorBlockallocator_
 Allocator block.
 

Detailed Description

template<class T>
class Urho3D::Allocator< T >

Allocator template class. Allocates objects of a specific class.


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