NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
nest::Instance< ClassT > Class Template Reference

Instance is a template is used to provide a pool-based management for arbitrary classes. More...

#include <instance.h>

Inheritance diagram for nest::Instance< ClassT >:

Public Member Functions

 Instance ()
 
 Instance (const Instance< ClassT > &c)
 
 Instance (const ClassT &c)
 
ClassT * clone () const
 

Static Public Member Functions

static void reserve_additional (size_t)
 
static void * operator new (size_t size)
 
static void operator delete (void *p, size_t size)
 
static size_t memory_used ()
 
static size_t memory_capacity ()
 
static size_t instantiations ()
 

Static Private Attributes

static sli::pool memory_
 Declaration of static memory object. More...
 

Detailed Description

template<typename ClassT>
class nest::Instance< ClassT >

Instance is a template is used to provide a pool-based management for arbitrary classes.

Constructor & Destructor Documentation

template<typename ClassT>
nest::Instance< ClassT >::Instance ( )
inline
template<typename ClassT>
nest::Instance< ClassT >::Instance ( const Instance< ClassT > &  c)
inline
template<typename ClassT>
nest::Instance< ClassT >::Instance ( const ClassT &  c)
inline

Member Function Documentation

template<typename ClassT >
ClassT * nest::Instance< ClassT >::clone ( ) const
inline
template<typename ClassT >
size_t nest::Instance< ClassT >::instantiations ( )
inlinestatic
template<typename ClassT >
size_t nest::Instance< ClassT >::memory_capacity ( )
inlinestatic
template<typename ClassT >
size_t nest::Instance< ClassT >::memory_used ( )
inlinestatic
template<typename ClassT >
void nest::Instance< ClassT >::operator delete ( void *  p,
size_t  size 
)
inlinestatic

References nest::names::p.

template<typename ClassT >
void * nest::Instance< ClassT >::operator new ( size_t  size)
inlinestatic

If a derived class does not possess its own new/delete operators, they will end up here. Thus, we forward their request to the standard new/delete operators.

template<typename ClassT >
void nest::Instance< ClassT >::reserve_additional ( size_t  s)
inlinestatic

Member Data Documentation

template<typename ClassT>
sli::pool nest::Instance< ClassT >::memory_
staticprivate

Declaration of static memory object.


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