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

activation record More...

Inheritance diagram for simlib3::EventNotice:
Inheritance graph
[legend]
Collaboration diagram for simlib3::EventNotice:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from simlib3::EventNoticeLinkBase
 EventNoticeLinkBase ()
 
void remove ()
 remove from calendar list More...
 
void insert (EventNoticeLinkBase *p)
 insert at position p More...
 

Static Public Member Functions

static EventNoticeCreate (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

Entityentity
 which entity is scheduled More...
 
double time
 activation time of entity More...
 
Entity::Priority_t priority
 priority at the time of scheduling More...
 
- Public Attributes inherited from simlib3::EventNoticeLinkBase
EventNoticeLinkBasepred
 previous object in list More...
 
EventNoticeLinkBasesucc
 next object in list More...
 

Private Member Functions

 EventNotice (const EventNotice &)
 
EventNoticeoperator= (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

Definition at line 153 of file calendar.cc.

◆ ~EventNotice()

simlib3::EventNotice::~EventNotice ( )
inline

Definition at line 171 of file calendar.cc.

◆ EventNotice() [2/2]

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

Member Function Documentation

◆ Create()

EventNotice * simlib3::EventNotice::Create ( Entity p,
double  t 
)
inlinestatic

◆ 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.

◆ 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.

Referenced by simlib3::EventNoticeAllocator::free().

◆ Destroy()

void simlib3::EventNotice::Destroy ( EventNotice en)
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().

◆ operator=()

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

◆ Set()

void simlib3::EventNotice::Set ( Entity e,
double  t 
)
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().

Member Data Documentation

◆ entity

Entity* simlib3::EventNotice::entity

which entity is scheduled

Definition at line 147 of file calendar.cc.

◆ priority

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().

◆ time

double simlib3::EventNotice::time

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