|
SIMLIB/C++ 3.09
|
base class for all double-linked list items
item can be at single place only (identified by where() method)
used for Queue implementation
More...
#include <simlib.h>


Public Member Functions | |
| Link () | |
| virtual | ~Link () |
| virtual void | Into (List *l) |
| insert last | |
| virtual void | Out () |
| remove from list | |
| List * | Where () |
| where is linked | |
| virtual bool | isInQueue () |
| present in queue | |
| 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 | |
| SimObject () | |
| constructor | |
| virtual | ~SimObject () |
| virtual destructor | |
| void * | operator new (size_t size) |
| allocate object, set _flags | |
| void | operator delete (void *ptr) |
| deallocate object | |
| void * | operator new[] (size_t size)=delete |
| void | operator delete[] (void *ptr)=delete |
| bool | isAllocated () const |
| virtual std::string | Name () const |
| get object name | |
| bool | HasName () const |
| void | SetName (const std::string &name) |
| assign the name | |
| virtual void | Output () const |
| print object to default output | |
Protected Member Functions | |
| Link (Link *p, Link *s, List *h) | |
Private Attributes | |
| Link * | pred |
| previous object in List | |
| Link * | succ |
| next object in List | |
| List * | head |
| pointer to List (if any) | |
Friends | |
| class | List |
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 Attributes inherited from simlib3::SimObject | |
| unsigned | _flags |
| bool flags for internal use (TODO bitfield?) | |
base class for all double-linked list items
item can be at single place only (identified by where() method)
used for Queue implementation
|
protected |
Definition at line 37 of file link.cc.
References head, Link(), List, pred, and succ.
Referenced by simlib3::List::back(), simlib3::List::clear(), simlib3::List::front(), simlib3::List::Get(), simlib3::List::GetFirst(), simlib3::List::GetLast(), simlib3::List::InsFirst(), simlib3::List::InsLast(), simlib3::List::iterator, simlib3::List::iterator::iterator(), Link(), List, simlib3::List::List(), simlib3::List::List(), simlib3::List::next(), simlib3::List::iterator::operator*(), simlib3::List::iterator::operator++(), simlib3::List::iterator::operator--(), simlib3::List::PostIns(), simlib3::List::PredIns(), and simlib3::List::previous().
|
virtual |
Definition at line 45 of file link.cc.
References head, simlib3::LinkDelError, and simlib3::SIMLIB_error().
|
virtual |
insert last
Definition at line 53 of file link.cc.
References head, simlib3::List::InsLast(), List, and Out().
Referenced by simlib3::Process::Behavior(), and List.
|
inlinevirtual |
|
virtual |
remove from list
Reimplemented in simlib3::Entity.
Definition at line 63 of file link.cc.
References simlib3::List::Get(), head, simlib3::LinkOutError, and simlib3::SIMLIB_error().
Referenced by Into(), List, and simlib3::Entity::Out().
|
inline |
where is linked
Definition at line 353 of file simlib.h.
Referenced by simlib3::Process::_Run(), simlib3::Process::Into(), isInQueue(), simlib3::Process::Terminate(), and simlib3::Process::~Process().
|
friend |
|
private |
pointer to List (if any)
Definition at line 344 of file simlib.h.
Referenced by simlib3::List::Get(), simlib3::List::InsFirst(), simlib3::List::InsLast(), Into(), Link(), Link(), Out(), simlib3::List::PostIns(), simlib3::List::PredIns(), Where(), ~Link(), and simlib3::List::~List().
|
private |
previous object in List
Definition at line 342 of file simlib.h.
Referenced by simlib3::List::back(), simlib3::List::Get(), simlib3::List::InsFirst(), simlib3::List::InsLast(), Link(), Link(), simlib3::List::PostIns(), simlib3::List::PredIns(), and simlib3::List::previous().
|
private |
next object in List
Definition at line 343 of file simlib.h.
Referenced by simlib3::List::begin(), simlib3::List::empty(), simlib3::List::front(), simlib3::List::Get(), simlib3::List::InsFirst(), simlib3::List::InsLast(), Link(), Link(), simlib3::List::next(), simlib3::List::PostIns(), and simlib3::List::PredIns().