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 \
};
T * alloc()
Definition: structpool.h:114
int maxget()
Definition: structpool.h:23
long pool_size_
Definition: structpool.h:35
void free_all()
Definition: structpool.h:136
long put_
Definition: structpool.h:38
long nget_
Definition: structpool.h:39
T * pool_
Definition: structpool.h:34
T ** items_
Definition: structpool.h:33
long get_
Definition: structpool.h:37
void hpfree(T *)
Definition: structpool.h:128
Pool * chain_
Definition: structpool.h:41
long count_
Definition: structpool.h:36
void grow()
Definition: structpool.h:61
long maxget_
Definition: structpool.h:40
double T
Definition: rbtqueue.cpp:25

Definition at line 16 of file pool.h.

◆ implementPool

#define implementPool (   Pool,
  T 
)

Definition at line 45 of file pool.h.