SIMLIB/C++  3.07
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
simlib3::EventNoticeAllocator Class Reference

allocate activation records fast More...

Collaboration diagram for simlib3::EventNoticeAllocator:
Collaboration graph
[legend]

Public Member Functions

 EventNoticeAllocator ()
 
 ~EventNoticeAllocator ()
 
void free (EventNotice *en)
 free EventNotice, add to freelist for future allocation More...
 
EventNoticealloc (Entity *p, double t)
 EventNotice allocation or reuse from freelist. More...
 
void clear ()
 clear: delete all free-list items More...
 

Private Attributes

EventNoticeLinkBasel
 
unsigned freed
 

Static Private Attributes

static const unsigned MAXSIZELIMIT = 1000000
 

Detailed Description

allocate activation records fast

Definition at line 199 of file calendar.cc.

Constructor & Destructor Documentation

◆ EventNoticeAllocator()

simlib3::EventNoticeAllocator::EventNoticeAllocator ( )
inline

Definition at line 204 of file calendar.cc.

◆ ~EventNoticeAllocator()

simlib3::EventNoticeAllocator::~EventNoticeAllocator ( )
inline

Definition at line 205 of file calendar.cc.

References simlib3::Calendar::clear().

Member Function Documentation

◆ alloc()

EventNotice* simlib3::EventNoticeAllocator::alloc ( Entity p,
double  t 
)
inline

EventNotice allocation or reuse from freelist.

Definition at line 225 of file calendar.cc.

References simlib3::EventNotice::Set(), and simlib3::EventNoticeLinkBase::succ.

Referenced by simlib3::EventNotice::Create().

◆ clear()

void simlib3::EventNoticeAllocator::clear ( )
inline

◆ free()

void simlib3::EventNoticeAllocator::free ( EventNotice en)
inline

Member Data Documentation

◆ freed

unsigned simlib3::EventNoticeAllocator::freed
private

Definition at line 202 of file calendar.cc.

◆ l

EventNoticeLinkBase* simlib3::EventNoticeAllocator::l
private

Definition at line 201 of file calendar.cc.

◆ MAXSIZELIMIT

const unsigned simlib3::EventNoticeAllocator::MAXSIZELIMIT = 1000000
staticprivate

Definition at line 200 of file calendar.cc.


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