Chemical Data Processing Library C++ API - Version 1.1.1
|
#include <ObjectStack.hpp>
Classes | |
struct | DefaultConstructor |
Public Types | |
typedef T | ObjectType |
typedef std::function< ObjectType *()> | ConstructorFunction |
typedef std::function< void(ObjectType &)> | ObjectFunction |
Public Member Functions | |
ObjectStack (const ObjectStack &stack) | |
ObjectStack (std::size_t max_pool_size=0) | |
template<typename C > | |
ObjectStack (const C &ctor_func, std::size_t max_pool_size) | |
~ObjectStack () | |
ObjectType * | get () |
void | put () |
void | putAll () |
std::size_t | getMaxSize () const |
void | setMaxSize (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::function<ObjectType*()> CDPL::Util::ObjectStack< T >::ConstructorFunction |
typedef std::function<void(ObjectType&)> CDPL::Util::ObjectStack< T >::ObjectFunction |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |