TransportSolver::List2D< T > Class Template Reference

#include <transportationsolver.hxx>

Inheritance diagram for TransportSolver::List2D< T >:
Inheritance graph
[legend]
Collaboration diagram for TransportSolver::List2D< T >:
Collaboration graph
[legend]

List of all members.

Classes

struct  bufferElement
class  iterator_template
struct  listElement

Public Types

typedef std::list< listElementList1D
typedef iterator_template
< typename List1D::iterator, T > 
iterator
typedef iterator_template
< typename
List1D::const_iterator, const
T > 
const_iterator
typedef std::vector< List1DList1DSeq
typedef std::vector
< bufferElement
Buffer

Public Member Functions

 List2D (size_t xsize, size_t ysize, size_t nnz)
 List2D (const List2D &)
List2Doperator= (const List2D &)
void clear ()
void resize (size_t xsize, size_t ysize, size_t nnz)
bool push (size_t x, size_t y, const T &val)
bool insert (size_t x, size_t y, const T &val)
void erase (iterator it)
void erase (size_t index)
void rowErase (size_t y)
void colErase (size_t x)
size_t rowSize (size_t y) const
size_t xsize () const
size_t colSize (size_t x) const
size_t ysize () const
size_t nnz () const
iterator rowBegin (size_t y)
const_iterator rowBegin (size_t y) const
iterator rowEnd (size_t y)
const_iterator rowEnd (size_t y) const
iterator colBegin (size_t x)
const_iterator colBegin (size_t x) const
iterator colEnd (size_t x)
const_iterator colEnd (size_t x) const
template<class BinaryTable1D >
inner_product1D (const BinaryTable1D &bin) const
template<class BinaryTable2D >
inner_product2D (const BinaryTable2D &bin, T *pprecision=0) const
template<class BinaryTable2D >
void get2DTable (BinaryTable2D *pbin) const
T & buffer (size_t index)
const T & buffer (size_t index) const
std::pair< bool, T > getValue (size_t x, size_t y) const
 not very efficient function. Implemented mainly for test purposes.

Detailed Description

template<class T>
class TransportSolver::List2D< T >

Definition at line 32 of file transportationsolver.hxx.


Member Typedef Documentation

template<class T>
typedef std::vector<bufferElement> TransportSolver::List2D< T >::Buffer

Definition at line 120 of file transportationsolver.hxx.

template<class T>
typedef iterator_template<typename List1D::const_iterator,const T> TransportSolver::List2D< T >::const_iterator

Definition at line 83 of file transportationsolver.hxx.

template<class T>
typedef iterator_template<typename List1D::iterator,T> TransportSolver::List2D< T >::iterator

Definition at line 82 of file transportationsolver.hxx.

template<class T>
typedef std::list<listElement> TransportSolver::List2D< T >::List1D

Definition at line 48 of file transportationsolver.hxx.

template<class T>
typedef std::vector<List1D> TransportSolver::List2D< T >::List1DSeq

Definition at line 85 of file transportationsolver.hxx.


Constructor & Destructor Documentation

template<class T >
TransportSolver::List2D< T >::List2D ( size_t  xsize,
size_t  ysize,
size_t  nnz 
) [inline]

Definition at line 206 of file transportationsolver.hxx.

template<class T >
TransportSolver::List2D< T >::List2D ( const List2D< T > &  lst  )  [inline]

Definition at line 215 of file transportationsolver.hxx.


Member Function Documentation

template<class T>
const T& TransportSolver::List2D< T >::buffer ( size_t  index  )  const [inline]

Definition at line 185 of file transportationsolver.hxx.

template<class T>
T& TransportSolver::List2D< T >::buffer ( size_t  index  )  [inline]

Definition at line 184 of file transportationsolver.hxx.

template<class T >
void TransportSolver::List2D< T >::clear (  )  [inline]

Definition at line 373 of file transportationsolver.hxx.

Here is the call graph for this function:

template<class T>
const_iterator TransportSolver::List2D< T >::colBegin ( size_t  x  )  const [inline]

Definition at line 168 of file transportationsolver.hxx.

template<class T>
iterator TransportSolver::List2D< T >::colBegin ( size_t  x  )  [inline]

Definition at line 167 of file transportationsolver.hxx.

Here is the caller graph for this function:

template<class T>
const_iterator TransportSolver::List2D< T >::colEnd ( size_t  x  )  const [inline]

Definition at line 171 of file transportationsolver.hxx.

template<class T>
iterator TransportSolver::List2D< T >::colEnd ( size_t  x  )  [inline]

Definition at line 170 of file transportationsolver.hxx.

Here is the caller graph for this function:

template<class T >
void TransportSolver::List2D< T >::colErase ( size_t  x  )  [inline]

Definition at line 366 of file transportationsolver.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
size_t TransportSolver::List2D< T >::colSize ( size_t  x  )  const [inline]

Definition at line 157 of file transportationsolver.hxx.

template<class T>
void TransportSolver::List2D< T >::erase ( size_t  index  )  [inline]

Definition at line 150 of file transportationsolver.hxx.

Here is the caller graph for this function:

template<class T >
void TransportSolver::List2D< T >::erase ( iterator  it  )  [inline]

Definition at line 349 of file transportationsolver.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
template<class BinaryTable2D >
void TransportSolver::List2D< T >::get2DTable ( BinaryTable2D *  pbin  )  const [inline]

Definition at line 487 of file transportationsolver.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
std::pair< bool, T > TransportSolver::List2D< T >::getValue ( size_t  x,
size_t  y 
) const [inline]

not very efficient function. Implemented mainly for test purposes.

Definition at line 427 of file transportationsolver.hxx.

template<class T >
template<class BinaryTable1D >
T TransportSolver::List2D< T >::inner_product1D ( const BinaryTable1D &  bin  )  const [inline]

Definition at line 387 of file transportationsolver.hxx.

Here is the call graph for this function:

template<class T>
template<class BinaryTable2D >
T TransportSolver::List2D< T >::inner_product2D ( const BinaryTable2D &  bin,
T *  pprecision = 0 
) const [inline]

Definition at line 401 of file transportationsolver.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
bool TransportSolver::List2D< T >::insert ( size_t  x,
size_t  y,
const T &  val 
) [inline]

Definition at line 279 of file transportationsolver.hxx.

template<class T>
size_t TransportSolver::List2D< T >::nnz (  )  const [inline]

Definition at line 159 of file transportationsolver.hxx.

template<class T >
List2D< T > & TransportSolver::List2D< T >::operator= ( const List2D< T > &  lst  )  [inline]

Definition at line 268 of file transportationsolver.hxx.

template<class T>
bool TransportSolver::List2D< T >::push ( size_t  x,
size_t  y,
const T &  val 
) [inline]

Definition at line 291 of file transportationsolver.hxx.

template<class T >
void TransportSolver::List2D< T >::resize ( size_t  xsize,
size_t  ysize,
size_t  nnz 
) [inline]

Definition at line 221 of file transportationsolver.hxx.

Here is the caller graph for this function:

template<class T>
const_iterator TransportSolver::List2D< T >::rowBegin ( size_t  y  )  const [inline]

Definition at line 162 of file transportationsolver.hxx.

template<class T>
iterator TransportSolver::List2D< T >::rowBegin ( size_t  y  )  [inline]

Definition at line 161 of file transportationsolver.hxx.

template<class T>
const_iterator TransportSolver::List2D< T >::rowEnd ( size_t  y  )  const [inline]

Definition at line 165 of file transportationsolver.hxx.

template<class T>
iterator TransportSolver::List2D< T >::rowEnd ( size_t  y  )  [inline]

Definition at line 164 of file transportationsolver.hxx.

template<class T >
void TransportSolver::List2D< T >::rowErase ( size_t  y  )  [inline]

Definition at line 359 of file transportationsolver.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
size_t TransportSolver::List2D< T >::rowSize ( size_t  y  )  const [inline]

Definition at line 155 of file transportationsolver.hxx.

template<class T>
size_t TransportSolver::List2D< T >::xsize (  )  const [inline]

Definition at line 156 of file transportationsolver.hxx.

Here is the caller graph for this function:

template<class T>
size_t TransportSolver::List2D< T >::ysize (  )  const [inline]

Definition at line 158 of file transportationsolver.hxx.

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:13 2013 for OpenGM by  doxygen 1.6.3