NEURON
pool.h File Reference
#include <nrnmutdec.h>

Go to the source code of this file.

Macros

#define declarePool(Pool, T)
 
#define implementPool(Pool, T)
 

Macro Definition Documentation

◆ declarePool

#define declarePool (   Pool,
  T 
)
Value:
class Pool { \
public: \
Pool(long count, int mkmut = 0); \
~Pool(); \
T* alloc(); \
void hpfree(T*); \
int maxget() { return maxget_;} \
void free_all(); \
private: \
void grow(); \
private: \
T** items_; \
T* pool_; \
long pool_size_; \
long count_; \
long get_; \
long put_; \
long nget_; \
long maxget_; \
Pool* chain_; \
MUTDEC \
}; \
\
Pool * chain_
Definition: structpool.h:37
double T
Definition: rbtqueue.cpp:25
T ** items_
Definition: structpool.h:29
long count_
Definition: structpool.h:32
void free_all()
Definition: structpool.h:127
long maxget_
Definition: structpool.h:36
long pool_size_
Definition: structpool.h:31
T * pool_
Definition: structpool.h:30
T * alloc()
Definition: structpool.h:109
void hpfree(T *)
Definition: structpool.h:119
void grow()
Definition: structpool.h:56
long nget_
Definition: structpool.h:35
long put_
Definition: structpool.h:34
long get_
Definition: structpool.h:33
int maxget()
Definition: structpool.h:23

Definition at line 16 of file pool.h.

◆ implementPool

#define implementPool (   Pool,
  T 
)

Definition at line 41 of file pool.h.