DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Public Member Functions | Private Attributes | List of all members
spams::List< T > Class Template Reference

#include <list.h>

+ Inheritance diagram for spams::List< T >:

Detailed Description

template<typename T>
class spams::List< T >

Definition at line 50 of file list.h.

Public Member Functions

ListIterator< T > & begin () const
 
void clear ()
 
bool empty () const
 
void * end () const
 
front () const
 
void fusion (const List< T > &list)
 
 List ()
 
void pop_front ()
 
void print () const
 
void push_back (T elem)
 
void push_front (T elem)
 
void remove (T elem)
 
void reverse (List< T > &list)
 
int size () const
 
 ~List ()
 

Private Attributes

Element< T > * _first
 
ListIterator< T > * _iterator
 
Element< T > * _last
 
int _size
 

Constructor & Destructor Documentation

template<typename T>
spams::List< T >::List ( )
inline

Definition at line 53 of file list.h.

template<typename T>
spams::List< T >::~List ( )
inline

Definition at line 54 of file list.h.

Member Function Documentation

template<typename T>
ListIterator<T>& spams::List< T >::begin ( ) const
inline
template<typename T>
void spams::List< T >::clear ( )
inline
template<typename T>
bool spams::List< T >::empty ( ) const
inline
template<typename T>
void* spams::List< T >::end ( ) const
inline
template<typename T>
T spams::List< T >::front ( ) const
inline
template<typename T>
void spams::List< T >::fusion ( const List< T > &  list)
inline

Definition at line 119 of file list.h.

Referenced by spams::count_cc_graph(), spams::GraphPath< T, Int >::eval_dual_norm(), and spams::MaxFlow< T >::sub_gradient_aux().

+ Here is the caller graph for this function:

template<typename T>
void spams::List< T >::pop_front ( )
inline
template<typename T>
void spams::List< T >::print ( ) const
inline

Definition at line 130 of file list.h.

template<typename T>
void spams::List< T >::push_back ( elem)
inline
template<typename T>
void spams::List< T >::push_front ( elem)
inline
template<typename T>
void spams::List< T >::remove ( elem)
inline

Definition at line 98 of file list.h.

template<typename T>
void spams::List< T >::reverse ( List< T > &  list)
inline

Definition at line 124 of file list.h.

Referenced by spams::remove_cycles().

+ Here is the caller graph for this function:

template<typename T>
int spams::List< T >::size ( ) const
inline

Member Data Documentation

template<typename T>
Element<T>* spams::List< T >::_first
private

Definition at line 141 of file list.h.

template<typename T>
ListIterator<T>* spams::List< T >::_iterator
private

Definition at line 140 of file list.h.

template<typename T>
Element<T>* spams::List< T >::_last
private

Definition at line 142 of file list.h.

template<typename T>
int spams::List< T >::_size
private

Definition at line 143 of file list.h.


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