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

Public Member Functions

 TestListElem (int var)
 
int get_var () const
 
void set_var (int var)
 
- Public Member Functions inherited from Horizon::Structures::LinkedList::Element
 Element ()
 
bool has_next () const
 Returns true if this Element has a next Element in the list. More...
 
bool has_prev () const
 Returns true if this Element has a previous Element in the list. More...
 
bool is_in_list () const
 Returns true if this Element is in a list. More...
 
Elementnext ()
 Returns the next Element in the list. More...
 
Element const * next () const
 
Elementprev ()
 Returns the previous Element in the list. More...
 
Element const * prev () const
 
Elementnocheck_next ()
 Returns the next Element in the list without checking if it exists. More...
 
Element const * nocheck_next () const
 
Elementnocheck_prev ()
 Returns the previous Element in the list without checking if it exists. More...
 
Element const * nocheck_prev () const
 
void delink ()
 Removes this Element from the list. More...
 
void push_before (Element *pElem)
 Pushes this Element before the given Element. More...
 
void push_after (Element *pElem)
 Pushes this Element after the given Element. More...
 

Private Attributes

int _var
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ TestListElem()

TestListElem::TestListElem ( int  var)
inline
43 : Element(), _var(var) { }
Element()
Definition: Element.hpp:26
int _var
Definition: LinkedListTest.cpp:49

Member Function Documentation

◆ get_var()

int TestListElem::get_var ( ) const
inline
45{ return _var; }

References _var.

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the caller graph for this function:

◆ set_var()

void TestListElem::set_var ( int  var)
inline
46{ _var = var; }

References _var.

Member Data Documentation

◆ _var

int TestListElem::_var
private

Referenced by get_var(), and set_var().


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