SIMLIB/C++
3.07
|
activation record More...
Public Member Functions | |
EventNotice (Entity *p, double t) | |
void | create_reverse_link () |
create link from entity to activation record More... | |
void | delete_reverse_link () |
delete link from entity to activation record More... | |
~EventNotice () | |
void | Set (Entity *e, double t) |
set new values to existing (unlinked) record More... | |
![]() | |
EventNoticeLinkBase () | |
void | remove () |
remove from calendar list More... | |
void | insert (EventNoticeLinkBase *p) |
insert at position p More... | |
Static Public Member Functions | |
static EventNotice * | Create (Entity *p, double t) |
creates new EventNotice, More... | |
static void | Destroy (EventNotice *en) |
delete EventNotice, if inserted in calendar remove it first More... | |
Public Attributes | |
Entity * | entity |
which entity is scheduled More... | |
double | time |
activation time of entity More... | |
Entity::Priority_t | priority |
priority at the time of scheduling More... | |
![]() | |
EventNoticeLinkBase * | pred |
previous object in list More... | |
EventNoticeLinkBase * | succ |
next object in list More... | |
Private Member Functions | |
EventNotice (const EventNotice &) | |
EventNotice & | operator= (const EventNotice &) |
activation record
Definition at line 145 of file calendar.cc.
|
inline |
Definition at line 153 of file calendar.cc.
|
inline |
Definition at line 171 of file calendar.cc.
|
private |
|
inlinestatic |
creates new EventNotice,
Definition at line 413 of file calendar.cc.
References simlib3::EventNoticeAllocator::alloc(), simlib3::allocator, simlib3::Entity::GetEventNotice(), priority, simlib3::Entity::Priority, simlib3::EventNoticeLinkBase::remove(), t, and time.
Referenced by simlib3::CalendarListImplementation::insert().
|
inline |
create link from entity to activation record
Definition at line 163 of file calendar.cc.
References simlib3::Entity::_evn.
|
inline |
delete link from entity to activation record
Definition at line 167 of file calendar.cc.
References simlib3::Entity::_evn.
Referenced by simlib3::EventNoticeAllocator::free().
|
inlinestatic |
delete EventNotice, if inserted in calendar remove it first
Definition at line 435 of file calendar.cc.
References simlib3::allocator, and simlib3::EventNoticeAllocator::free().
Referenced by simlib3::CalendarListImplementation::remove(), and simlib3::CalendarListImplementation::remove_first().
|
private |
|
inline |
set new values to existing (unlinked) record
Definition at line 179 of file calendar.cc.
References simlib3::Entity::Priority, and t.
Referenced by simlib3::EventNoticeAllocator::alloc().
Entity* simlib3::EventNotice::entity |
which entity is scheduled
Definition at line 147 of file calendar.cc.
Entity::Priority_t simlib3::EventNotice::priority |
priority at the time of scheduling
Definition at line 151 of file calendar.cc.
Referenced by Create(), and simlib3::CalendarListImplementation::search().
double simlib3::EventNotice::time |
activation time of entity
Definition at line 149 of file calendar.cc.
Referenced by Create(), simlib3::CalendarQueue::Resize(), simlib3::CalendarListImplementation::search(), and simlib3::CalendarQueue::switchtocq().