Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

base::DoubleLinkable< T > Struct Template Reference

Template for typed manipulation. More...

#include <linkable.h>

Inheritance diagram for base::DoubleLinkable< T >:

base::DoubleLinkable_t base::SingleLinkable_t List of all members.

Public Member Functions

void link (T **fromWhere)
 Link this linkable node from a given root.
void unlink ()
 Unlink this linkable node from a given root.
T * getNext () const
 Access to the (typed) next linkable element.
T ** getAtNext ()
 Access to the address of the next pointed element.
T * getPrevious () const
 Access to the previous element.
T ** getPreviousPtr () const
 Cast access to previous.

Detailed Description

template<class T>
struct base::DoubleLinkable< T >

Template for typed manipulation.


Member Function Documentation

template<class T>
T** base::DoubleLinkable< T >::getAtNext  )  [inline]
 

Access to the address of the next pointed element.

Returns:
address of the pointer to the next element.

template<class T>
T* base::DoubleLinkable< T >::getNext  )  const [inline]
 

Access to the (typed) next linkable element.

Returns:
pointer to next element

template<class T>
T* base::DoubleLinkable< T >::getPrevious  )  const [inline]
 

Access to the previous element.

Precondition:
there is a previous element: previous != NULL
Returns:
address of previous element.

template<class T>
T** base::DoubleLinkable< T >::getPreviousPtr  )  const [inline]
 

Cast access to previous.

Returns:
typed previous.

template<class T>
void base::DoubleLinkable< T >::link T **  fromWhere  )  [inline]
 

Link this linkable node from a given root.

Precondition:
struct your_struct : publid DoubleLinkable<your_struct>
Parameters:
fromWhere,: from where the node should be linked.

template<class T>
void base::DoubleLinkable< T >::unlink  )  [inline]
 

Unlink this linkable node from a given root.

We do not need the argument for the root since it is a double linked node.

Precondition:
struct your_struct : publid DoubleLinkable<your_struct>


The documentation for this struct was generated from the following file:
Generated on Fri Jun 30 00:02:30 2006 for Module base by  doxygen 1.4.2