Chemical Data Processing Library C++ API - Version 1.0.0
|
#include <ObjectStack.hpp>
Classes | |
struct | DefaultConstructor |
struct | DefaultDestructor |
Public Types | |
typedef T | ObjectType |
typedef std::shared_ptr< ObjectType > | SharedObjectPointer |
typedef std::function< ObjectType *()> | ConstructorFunction |
typedef std::function< void(ObjectType *)> | DestructorFunction |
typedef std::function< void(ObjectType &)> | ObjectFunction |
Public Member Functions | |
ObjectStack (const ObjectStack &stack) | |
ObjectStack (std::size_t max_pool_size=0) | |
template<typename C , typename D > | |
ObjectStack (const C &ctor_func, const D &dtor_func, std::size_t max_pool_size=0) | |
~ObjectStack () | |
ObjectType * | getRaw () |
const SharedObjectPointer & | get () |
void | put () |
void | putAll () |
std::size_t | getMaxPoolSize () const |
void | setMaxPoolSize (std::size_t max_size) |
void | freeMemory (bool unused_only=true) |
void | setInitFunction (const ObjectFunction &func) |
void | setCleanupFunction (const ObjectFunction &func) |
ObjectStack & | operator= (const ObjectStack &stack) |
typedef T CDPL::Util::ObjectStack< T >::ObjectType |
typedef std::shared_ptr<ObjectType> CDPL::Util::ObjectStack< T >::SharedObjectPointer |
typedef std::function<ObjectType*()> CDPL::Util::ObjectStack< T >::ConstructorFunction |
typedef std::function<void(ObjectType*)> CDPL::Util::ObjectStack< T >::DestructorFunction |
typedef std::function<void(ObjectType&)> CDPL::Util::ObjectStack< T >::ObjectFunction |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |