SIMLIB/C++ 3.09
Loading...
Searching...
No Matches
simlib3::EventNotice Struct Reference

activation record More...

Inheritance diagram for simlib3::EventNotice:
Collaboration diagram for simlib3::EventNotice:

Public Member Functions

 EventNotice (Entity *p, double t)
void create_reverse_link ()
 create link from entity to activation record
void delete_reverse_link ()
 delete link from entity to activation record
 ~EventNotice ()
void Set (Entity *e, double t)
 set new values to existing (unlinked) record
Public Member Functions inherited from simlib3::EventNoticeLinkBase
 EventNoticeLinkBase ()
void remove ()
 remove from calendar list
void insert (EventNoticeLinkBase *p)
 insert at position p

Static Public Member Functions

static EventNotice * Create (Entity *p, double t)
 creates new EventNotice,
static void Destroy (EventNotice *en)
 delete EventNotice, if inserted in calendar remove it first

Public Attributes

Entity * entity
 which entity is scheduled
double time
 activation time of entity
Entity::Priority_t priority
 priority at the time of scheduling
Public Attributes inherited from simlib3::EventNoticeLinkBase
EventNoticeLinkBase * pred
 previous object in list
EventNoticeLinkBase * succ
 next object in list

Private Member Functions

 EventNotice (const EventNotice &)
EventNotice & operator= (const EventNotice &)

Detailed Description

activation record

Definition at line 145 of file calendar.cc.

Constructor & Destructor Documentation

◆ EventNotice() [1/2]

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

◆ ~EventNotice()

simlib3::EventNotice::~EventNotice ( )
inline

◆ EventNotice() [2/2]

simlib3::EventNotice::EventNotice ( const EventNotice & )
private

References EventNotice().

Member Function Documentation

◆ Create()

◆ create_reverse_link()

void simlib3::EventNotice::create_reverse_link ( )
inline

create link from entity to activation record

Definition at line 163 of file calendar.cc.

References simlib3::Entity::_evn, and entity.

Referenced by EventNotice(), and Set().

◆ delete_reverse_link()

void simlib3::EventNotice::delete_reverse_link ( )
inline

delete link from entity to activation record

Definition at line 167 of file calendar.cc.

References simlib3::Entity::_evn, and entity.

Referenced by simlib3::EventNoticeAllocator::free(), and ~EventNotice().

◆ Destroy()

void simlib3::EventNotice::Destroy ( EventNotice * en)
inlinestatic

◆ operator=()

EventNotice & simlib3::EventNotice::operator= ( const EventNotice & )
private

References EventNotice().

◆ Set()

void simlib3::EventNotice::Set ( Entity * e,
double t )
inline

Member Data Documentation

◆ entity

Entity* simlib3::EventNotice::entity

which entity is scheduled

Definition at line 147 of file calendar.cc.

Referenced by create_reverse_link(), delete_reverse_link(), EventNotice(), simlib3::CalendarListImplementation::remove_first(), and Set().

◆ priority

Entity::Priority_t simlib3::EventNotice::priority

priority at the time of scheduling

Definition at line 151 of file calendar.cc.

Referenced by Create(), EventNotice(), simlib3::CalendarListImplementation::search(), and Set().

◆ time


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