SIMLIB/C++
3.07
|
allocate activation records fast More...
Public Member Functions | |
EventNoticeAllocator () | |
~EventNoticeAllocator () | |
void | free (EventNotice *en) |
free EventNotice, add to freelist for future allocation More... | |
EventNotice * | alloc (Entity *p, double t) |
EventNotice allocation or reuse from freelist. More... | |
void | clear () |
clear: delete all free-list items More... | |
Private Attributes | |
EventNoticeLinkBase * | l |
unsigned | freed |
Static Private Attributes | |
static const unsigned | MAXSIZELIMIT = 1000000 |
allocate activation records fast
Definition at line 199 of file calendar.cc.
|
inline |
Definition at line 204 of file calendar.cc.
|
inline |
Definition at line 205 of file calendar.cc.
References simlib3::Calendar::clear().
|
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().
|
inline |
clear: delete all free-list items
Definition at line 238 of file calendar.cc.
References simlib3::allocator, and simlib3::EventNoticeLinkBase::succ.
Referenced by simlib3::CalendarListImplementation::~ CalendarListImplementation(), and simlib3::CalendarQueue::~CalendarQueue().
|
inline |
free EventNotice, add to freelist for future allocation
Definition at line 210 of file calendar.cc.
References simlib3::EventNotice::delete_reverse_link(), simlib3::EventNoticeLinkBase::pred, simlib3::EventNoticeLinkBase::remove(), and simlib3::EventNoticeLinkBase::succ.
Referenced by simlib3::EventNotice::Destroy().
|
private |
Definition at line 202 of file calendar.cc.
|
private |
Definition at line 201 of file calendar.cc.
|
staticprivate |
Definition at line 200 of file calendar.cc.