cfutureeventset.h Source File

API: cfutureeventset.h Source File
API
cfutureeventset.h
1//==========================================================================
2// CFUTUREEVENTSET.H - part of
3// OMNeT++/OMNEST
4// Discrete System Simulation in C++
5//
6//==========================================================================
7
8/*--------------------------------------------------------------*
9 Copyright (C) 1992-2017 Andras Varga
10 Copyright (C) 2006-2017 OpenSim Ltd.
11
12 This file is distributed WITHOUT ANY WARRANTY. See the file
13 `license' for details on this and other legal matters.
14*--------------------------------------------------------------*/
15
16#ifndef __OMNETPP_CFUTUREEVENTSET_H
17#define __OMNETPP_CFUTUREEVENTSET_H
18
19#include "cownedobject.h"
20
21namespace omnetpp {
22
23class cEvent;
24
32class SIM_API cFutureEventSet : public cOwnedObject
33{
34 public:
37
40 cFutureEventSet(const char *name=nullptr) : cOwnedObject(name, false) {}
41
45 virtual ~cFutureEventSet() {}
46
53
56
60 virtual std::string str() const override;
62
65
69 virtual void insert(cEvent *event) = 0;
70
75 virtual cEvent *peekFirst() const = 0;
76
81 virtual cEvent *removeFirst() = 0;
82
86 virtual void putBackFirst(cEvent *event) = 0;
87
92 virtual cEvent *remove(cEvent *event) = 0;
93
97 virtual bool isEmpty() const = 0;
98
102 virtual void clear() = 0;
104
107
110 virtual int getLength() const = 0;
111
123 virtual cEvent *get(int k) = 0;
124
129 virtual void sort() = 0;
131};
132
133} // namespace omnetpp
134
135#endif
136
Represents an event in the discrete event simulator.
Definition cevent.h:47
virtual bool isEmpty() const =0
virtual int getLength() const =0
virtual cEvent * remove(cEvent *event)=0
virtual void clear()=0
cFutureEventSet & operator=(const cFutureEventSet &other)
virtual void sort()=0
virtual cEvent * removeFirst()=0
virtual cEvent * get(int k)=0
virtual void insert(cEvent *event)=0
virtual ~cFutureEventSet()
Definition cfutureeventset.h:45
cFutureEventSet(const char *name=nullptr)
Definition cfutureeventset.h:40
virtual cEvent * peekFirst() const =0
virtual std::string str() const override
virtual void putBackFirst(cEvent *event)=0