|
SIMLIB/C++
3.07
|
list of Link* items, uses data from Link More...
#include <simlib.h>


Classes | |
| class | iterator |
Public Member Functions | |
| List () | |
| List (const char *_name) | |
| ~List () | |
| virtual void | Output () const override |
| print object to default output More... | |
| void | InsFirst (Link *e) |
| void | InsLast (Link *e) |
| void | PredIns (Link *e, iterator pos) |
| void | PostIns (Link *e, iterator pos) |
| Link * | GetFirst () |
| remove first More... | |
| Link * | GetLast () |
| remove last More... | |
| virtual Link * | Get (iterator pos) |
| remove at position More... | |
| unsigned | size () const |
| iterator | begin () |
| iterator | end () |
| Link * | front () |
| Link * | back () |
| bool | empty () |
| void | clear () |
Public Member Functions inherited from simlib3::Link | |
| Link () | |
| virtual | ~Link () |
| virtual void | Into (List *l) |
| insert last More... | |
| virtual void | Out () |
| remove from list More... | |
| List * | Where () |
| where is linked More... | |
| virtual bool | isInQueue () |
| present in queue More... | |
Public Member Functions inherited from simlib3::SimObject | |
| bool | TestAndSetFlag (bool new_value, unsigned n) |
| internal method for flag manipulation is used for algebraic loop checking in continuous blocks More... | |
| SimObject () | |
| constructor More... | |
| virtual | ~SimObject () |
| virtual destructor More... | |
| void * | operator new (size_t size) |
| allocate object, set _flags More... | |
| void | operator delete (void *ptr) |
| deallocate object More... | |
| void * | operator new[] (size_t size)=delete |
| void | operator delete[] (void *ptr)=delete |
| bool | isAllocated () const |
| virtual std::string | Name () const |
| get object name More... | |
| bool | HasName () const |
| void | SetName (const std::string &name) |
| assign the name More... | |
Static Private Member Functions | |
| static Link * | next (Link *p) |
| static Link * | previous (Link *p) |
Private Attributes | |
| unsigned | n |
Friends | |
| class | iterator |
Additional Inherited Members | |
Public Types inherited from simlib3::SimObject | |
| enum | _Flags { _CLEAR_ALL_FLAGS = 0, _ALLOCATED_FLAG = 1<<0, _EVAL_FLAG = 1<<1, _HAS_NAME_FLAG = 1<<2 } |
Protected Member Functions inherited from simlib3::Link | |
| Link (Link *p, Link *s, List *h) | |
Protected Attributes inherited from simlib3::SimObject | |
| unsigned | _flags |
| bool flags for internal use (TODO bitfield?) More... | |
|
explicit |
Definition at line 38 of file list.cc.
References Dprintf, and simlib3::SimObject::SetName().
| simlib3::List::~List | ( | ) |
Definition at line 47 of file list.cc.
References clear(), Dprintf, simlib3::Link::head, and simlib3::SimObject::Name().
|
inline |
Definition at line 675 of file simlib.h.
References simlib3::Link::pred.
Referenced by simlib3::Queue::back().
|
inline |
Definition at line 672 of file simlib.h.
References simlib3::Link::succ.
Referenced by simlib3::Queue::begin(), and GetFirst().
| void simlib3::List::clear | ( | ) |
Definition at line 159 of file list.cc.
References empty(), GetFirst(), and simlib3::SimObject::isAllocated().
Referenced by simlib3::Queue::clear(), and ~List().
|
inline |
Definition at line 676 of file simlib.h.
References simlib3::Link::succ.
Referenced by clear(), Get(), simlib3::Store::Leave(), and simlib3::Facility::Release().
|
inline |
|
inline |
Definition at line 674 of file simlib.h.
References simlib3::Link::succ.
Referenced by simlib3::Queue::front().
remove at position
Reimplemented in simlib3::Queue.
Definition at line 140 of file list.cc.
References empty(), end(), simlib3::Link::head, simlib3::LinkOutError, simlib3::ListActivityError, simlib3::ListEmptyError, n, simlib3::Link::pred, simlib3::SIMLIB_error(), and simlib3::Link::succ.
Referenced by simlib3::Queue::Get(), GetFirst(), GetLast(), and simlib3::Link::Out().
| Link * simlib3::List::GetFirst | ( | ) |
| Link * simlib3::List::GetLast | ( | ) |
| void simlib3::List::InsFirst | ( | Link * | e | ) |
Definition at line 56 of file list.cc.
References simlib3::Link::head, n, simlib3::Link::pred, SIMLIB_internal_error, and simlib3::Link::succ.
| void simlib3::List::InsLast | ( | Link * | e | ) |
Definition at line 71 of file list.cc.
References simlib3::Link::head, n, simlib3::Link::pred, SIMLIB_internal_error, and simlib3::Link::succ.
Referenced by simlib3::Link::Into().
Definition at line 631 of file simlib.h.
References simlib3::Link::succ.
Referenced by simlib3::List::iterator::operator++().
|
overridevirtual |
print object to default output
Reimplemented from simlib3::SimObject.
Reimplemented in simlib3::Queue.
Definition at line 44 of file output1.cc.
References simlib3::Event::Name(), and simlib3::Print().
change !!!!
change !!!!
Definition at line 86 of file list.cc.
References end(), simlib3::Link::head, simlib3::ListActivityError, n, simlib3::Link::pred, simlib3::SIMLIB_error(), SIMLIB_internal_error, and simlib3::Link::succ.
Referenced by simlib3::Link::Out().
change !!!!
Definition at line 106 of file list.cc.
References simlib3::Link::head, simlib3::ListActivityError, n, simlib3::Link::pred, simlib3::SIMLIB_error(), SIMLIB_internal_error, and simlib3::Link::succ.
Referenced by simlib3::Link::Out(), and simlib3::Queue::PredIns().
Definition at line 632 of file simlib.h.
References simlib3::Link::pred.
Referenced by simlib3::List::iterator::operator--().
|
inline |
Definition at line 671 of file simlib.h.
Referenced by simlib3::Queue::Get(), simlib3::Queue::PredIns(), simlib3::Facility::QueueLen(), and simlib3::Store::QueueLen().
|
private |
1.8.13