Go to the documentation of this file.
35 if(
object ==
nullptr) {
38 mNext =
object->mNext;
45 return this == &other;
50 return this != &other;
87 this->mObject =
static_cast<TPtr
>(this->mObject->next());
100 return mObject == rhs.mObject;
105 return mObject != rhs.mObject;
127 using Iterator = IteratorTemplate<ObjectType, ObjectType*, ObjectType&>;
128 using ConstIterator = IteratorTemplate<const ObjectType, const ObjectType*, const ObjectType&>;
Singly-linked list of objects.
Definition: LinkedObjectList.h:18
virtual ~LinkedObject()
Definition: LinkedObject.h:32
Definition: LinkedObject.h:64
Base class template for linked items with type casting.
Definition: LinkedObject.h:61
bool insertAfter(LinkedObject *object)
Definition: LinkedObject.h:41
IteratorTemplate< Info, Info *, Info & > Iterator
Definition: LinkedObject.h:127
ObjectType * getNext() const
Definition: LinkedObject.h:130
bool operator==(const LinkedObject &other) const
Definition: LinkedObject.h:51
IteratorTemplate< const Info, const Info *, const Info & > ConstIterator
Definition: LinkedObject.h:128
T value_type
Definition: LinkedObject.h:68
TPtr operator->()
Definition: LinkedObject.h:113
IteratorTemplate(const IteratorTemplate &other)
Definition: LinkedObject.h:81
IteratorTemplate(TRef &x)
Definition: LinkedObject.h:77
bool operator!=(const LinkedObject &other) const
Definition: LinkedObject.h:56
Base virtual class to allow objects to be linked together.
Definition: LinkedObject.h:21
Iterator end() const
Definition: LinkedObject.h:145
Iterator cbegin() const
Definition: LinkedObject.h:150
bool operator!=(const IteratorTemplate &rhs) const
Definition: LinkedObject.h:103
bool insertAfter(ObjectType *object)
Definition: LinkedObject.h:135
std::ptrdiff_t difference_type
Definition: LinkedObject.h:69
std::forward_iterator_tag iterator_category
Definition: LinkedObject.h:67
ObjectType
Definition: Libraries/jerryscript/src/include/Jerryscript/Types.h:44
bool operator==(const IteratorTemplate &rhs) const
Definition: LinkedObject.h:98
TRef operator*()
Definition: LinkedObject.h:108
T * pointer
Definition: LinkedObject.h:70
IteratorTemplate operator++(int)
Definition: LinkedObject.h:91
T & reference
Definition: LinkedObject.h:71
Iterator begin() const
Definition: LinkedObject.h:140
virtual LinkedObject * next() const
Definition: LinkedObject.h:36
Iterator cend() const
Definition: LinkedObject.h:155
IteratorTemplate(TPtr x)
Definition: LinkedObject.h:73
IteratorTemplate & operator++()
Definition: LinkedObject.h:85