Horizon Official Technical Documentation
TestListHead Class Reference
+ Inheritance diagram for TestListHead:
+ Collaboration diagram for TestListHead:

Public Types

typedef Head::Iterator< TestListElemiterator
 
- Public Types inherited from Horizon::Structures::LinkedList::Head
typedef Iterator< Elementiterator
 

Public Member Functions

TestListElemfirst ()
 
TestListElem const * first () const
 
TestListElemlast ()
 
TestListElem const * last () const
 
iterator begin ()
 
iterator end ()
 
- Public Member Functions inherited from Horizon::Structures::LinkedList::Head
 Head ()
 
bool is_empty () const
 Returns true if the list is empty. More...
 
Elementfirst ()
 Returns the first Element in the list. More...
 
Element const * first () const
 
Elementlast ()
 Returns the last Element in the list. More...
 
Element const * last () const
 
void push_front (Element *pElem)
 push_front() and push_back() are used to add an Element to the list. More...
 
void push_back (Element *pElem)
 
uint32_t get_size () const
 returns the number of Elements in the list (not including the head and tail Elements or the first and last Elements) More...
 
void inc_size ()
 
void dec_size ()
 

Additional Inherited Members

- Protected Member Functions inherited from Horizon::Structures::LinkedList::Head
 ~Head ()
 

Member Typedef Documentation

◆ iterator

typedef Head::Iterator<TestListElem> TestListHead::iterator

Member Function Documentation

◆ begin()

iterator TestListHead::begin ( )
inline
62{ return iterator(first()); }
TestListElem * first()
Definition: LinkedListTest.cpp:56
Head::Iterator< TestListElem > iterator
Definition: LinkedListTest.cpp:55

References first().

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ end()

iterator TestListHead::end ( )
inline
63{ return iterator(last()); }
TestListElem * last()
Definition: LinkedListTest.cpp:59

References last().

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ first() [1/2]

TestListElem * TestListHead::first ( )
inline
56{ return static_cast<TestListElem *> (Head::first()); }
Definition: LinkedListTest.cpp:40

Referenced by begin(), and BOOST_AUTO_TEST_CASE().

+ Here is the caller graph for this function:

◆ first() [2/2]

TestListElem const * TestListHead::first ( ) const
inline
57{ return static_cast<TestListElem const *> (Head::first()); }

◆ last() [1/2]

TestListElem * TestListHead::last ( )
inline
59{ return static_cast<TestListElem *> (Head::last()); }

Referenced by end().

+ Here is the caller graph for this function:

◆ last() [2/2]

TestListElem const * TestListHead::last ( ) const
inline
60{ return static_cast<TestListElem const *> (Head::last()); }

The documentation for this class was generated from the following file: