SIMLIB/C++  3.07
Classes | Namespaces | Macros | Functions | Variables
calendar.cc File Reference

Calendar queue implementation. More...

#include "simlib.h"
#include "internal.h"
#include <cmath>
#include <cstring>
Include dependency graph for calendar.cc:

Go to the source code of this file.

Classes

class  simlib3::Calendar
 common interface for all calendar (PES) implementations More...
 
struct  simlib3::EventNoticeLinkBase
 calendar item - PRIVATE for any implementation
we use double-linked circular list More...
 
struct  simlib3::EventNotice
 activation record More...
 
class  simlib3::EventNoticeAllocator
 allocate activation records fast More...
 
class  simlib3::CalendarListImplementation
 class CalendarListImplementation — sorted list More...
 
class  simlib3::CalendarListImplementation::iterator
 
class  simlib3::CalendarList
 class CalendarList — list implementation of calendar More...
 
class  simlib3::CalendarQueue
 CQ implementation of calendar. More...
 

Namespaces

 simlib3
 Implementation of class CalendarList
interface is static - using global functions in SQS namespace.
 

Macros

#define MAX_OP   (Size()/2)
 

Functions

void simlib3::SetCalendar (const char *name)
 choose calendar implementation default is list More...
 

Variables

class simlib3::EventNoticeAllocator simlib3::allocator
 
const unsigned simlib3::LIST_MAX = 512
 
const unsigned simlib3::MINBUCKETS = LIST_MAX>4?LIST_MAX:4
 
const unsigned simlib3::LIST_MIN = LIST_MAX/2
 
const double simlib3::COEF_PAR = 1.5
 
const double simlib3::MUL_PAR = 1.0
 

Detailed Description

Calendar queue implementation.

Definition in file calendar.cc.

Macro Definition Documentation

◆ MAX_OP

#define MAX_OP   (Size()/2)