Math Type Library (libmath++) 0.0.3
Public Member Functions | Friends | List of all members
math::TNodeIterator< T > Class Template Reference

#include <nodes.h>

Public Member Functions

 TNodeIterator (TNode< T > *ANode)
 
 TNodeIterator (const TNodeIterator< T > &v)
 
TNode< T > & operator* () const
 
TNode< T > * operator-> () const
 
TNode< T > * get () const
 
TNodeIterator< T > & operator++ ()
 
TNodeIterator< T > & operator-- ()
 

Friends

class TNode< T >
 

Detailed Description

template<typename T>
class math::TNodeIterator< T >

TNodeIterator<T> is the implementation of the node iteration class. This is used (as a typedef to TNode<T>::iterator and TNode<T>::const_iterator) to iterate through the node operations, such as plus, minus, and so on. Use these as you would do with the STL.

Definition at line 64 of file nodes.h.

Constructor & Destructor Documentation

◆ TNodeIterator() [1/3]

template<typename T >
math::TNodeIterator< T >::TNodeIterator ( )
inline

Definition at line 123 of file nodes.h.

123: FCurrent(0) {}

◆ TNodeIterator() [2/3]

template<typename T >
math::TNodeIterator< T >::TNodeIterator ( TNode< T > *  ANode)
inline

Definition at line 124 of file nodes.h.

124: FCurrent(ANode) {}

◆ TNodeIterator() [3/3]

template<typename T >
math::TNodeIterator< T >::TNodeIterator ( const TNodeIterator< T > &  v)
inline

Definition at line 125 of file nodes.h.

125: FCurrent(v.FCurrent) {}

Member Function Documentation

◆ get()

template<typename T >
TNode< T > * math::TNodeIterator< T >::get ( ) const
inline

Definition at line 130 of file nodes.h.

130{ return FCurrent; }

◆ operator*()

template<typename T >
TNode< T > & math::TNodeIterator< T >::operator* ( ) const
inline

Definition at line 127 of file nodes.h.

127{ return *FCurrent; }

◆ operator++()

template<typename T >
TNodeIterator< T > & math::TNodeIterator< T >::operator++ ( )
inline

Definition at line 132 of file nodes.h.

132{ increment(); return *this; }

◆ operator--()

template<typename T >
TNodeIterator< T > & math::TNodeIterator< T >::operator-- ( )
inline

Definition at line 133 of file nodes.h.

133{ decrement(); return *this; }

◆ operator->()

template<typename T >
TNode< T > * math::TNodeIterator< T >::operator-> ( ) const
inline

Definition at line 128 of file nodes.h.

128{ return FCurrent; }

Friends And Related Function Documentation

◆ TNode< T >

template<typename T >
friend class TNode< T >
friend

Definition at line 114 of file nodes.h.


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