1 #ifndef CIRC_SL_ELEMENT_H
3 #define CIRC_SL_ELEMENT_H
7 namespace datastructure {
85 return "CircularSinglyLinkedList";
125 return this->current != it.current;
180 return this->current != it.current;
Definition: CircSLelement.h:171
iterator & operator++()
Definition: CircSLelement.h:187
bool operator!=(const iterator &it) const
Definition: CircSLelement.h:179
E const & operator*() const
Definition: CircSLelement.h:183
iterator(typename bridges::datastructure::CircSLelement< E > const *c)
Definition: CircSLelement.h:175
these are helper classes for CircSLelement for easy iteration in a range for loop....
Definition: CircSLelement.h:163
iterator begin()
Definition: CircSLelement.h:193
iterator end()
Definition: CircSLelement.h:197
CircSLelement_constlisthelper(typename bridges::datastructure::CircSLelement< E > const *s)
Definition: CircSLelement.h:167
Definition: CircSLelement.h:117
E const & operator*() const
Definition: CircSLelement.h:128
iterator(typename bridges::datastructure::CircSLelement< E > *c)
Definition: CircSLelement.h:120
iterator & operator++()
Definition: CircSLelement.h:136
bool operator!=(const iterator &it) const
Definition: CircSLelement.h:124
This is a helper class to facilitate using iterators to traverse circular list.
Definition: CircSLelement.h:110
iterator begin()
Definition: CircSLelement.h:147
CircSLelement_listhelper(typename bridges::datastructure::CircSLelement< E > *s)
Definition: CircSLelement.h:115
iterator end()
Definition: CircSLelement.h:151
This class can be used to instantiate Singly Linked Circular List Elements.
Definition: CircSLelement.h:35
CircSLelement()
Definition: CircSLelement.h:43
void setNext(CircSLelement< E > *next)
Definition: CircSLelement.h:101
virtual const string getDStype() const override
Definition: CircSLelement.h:84
CircSLelement(E val=E(), string label=string())
Definition: CircSLelement.h:54
CircSLelement(CircSLelement *next)
Definition: CircSLelement.h:76
CircSLelement(E e=E(), CircSLelement *next=nullptr)
Definition: CircSLelement.h:66
virtual CircSLelement< E > * getNext() override
Definition: CircSLelement.h:92
E const & getValue() const
Gets the object held in the generic object E.
Definition: Element.h:207
The singly linked list element, derived from Element.
Definition: SLelement.h:26
void setNext(SLelement *n)
Definition: SLelement.h:92
virtual SLelement * getNext()
Returns the next element in the list.
Definition: SLelement.h:74
SLelement * next
Definition: SLelement.h:29
typename CircSLelement< E >::CircSLelement_listhelper CircSLelement_List
Definition: CircSLelement.h:204
typename CircSLelement< E >::CircSLelement_constlisthelper CircSLelement_ConstList
Definition: CircSLelement.h:206
Support for drawing Bar charts.
Definition: alltypes.h:4