The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::ObjectAllocator< ObjT > Class Template Reference

Public Member Functions

template<typename... Args>
ObjT * create (Args &&... args)
 
void free (ObjT *obj)
 
void clear ()
 

Detailed Description

template<typename ObjT>
class sparta::ObjectAllocator< ObjT >

Definition at line 24 of file ObjectAllocator.hpp.

Constructor & Destructor Documentation

◆ ~ObjectAllocator()

template<typename ObjT >
sparta::ObjectAllocator< ObjT >::~ObjectAllocator ( )
inline

Definition at line 31 of file ObjectAllocator.hpp.

Member Function Documentation

◆ clear()

template<typename ObjT >
void sparta::ObjectAllocator< ObjT >::clear ( )
inline

Definition at line 56 of file ObjectAllocator.hpp.

◆ create()

template<typename ObjT >
template<typename... Args>
ObjT * sparta::ObjectAllocator< ObjT >::create ( Args &&...  args)
inline

Definition at line 36 of file ObjectAllocator.hpp.

◆ free()

template<typename ObjT >
void sparta::ObjectAllocator< ObjT >::free ( ObjT *  obj)
inline

Definition at line 52 of file ObjectAllocator.hpp.


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