OpenGM  2.3.x
Discrete Graphical Model Library
Classes | Public Types | Public Member Functions | List of all members
TransportSolver::List2D< T > Class Template Reference

#include <transportationsolver.hxx>

+ Inheritance diagram for TransportSolver::List2D< T >:
+ Collaboration diagram for TransportSolver::List2D< T >:

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< bufferElementBuffer
 

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. More...
 

Detailed Description

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

Definition at line 35 of file transportationsolver.hxx.

Member Typedef Documentation

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

Definition at line 123 of file transportationsolver.hxx.

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

Definition at line 86 of file transportationsolver.hxx.

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

Definition at line 85 of file transportationsolver.hxx.

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

Definition at line 51 of file transportationsolver.hxx.

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

Definition at line 88 of file transportationsolver.hxx.

Constructor & Destructor Documentation

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

Definition at line 209 of file transportationsolver.hxx.

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

Definition at line 218 of file transportationsolver.hxx.

Member Function Documentation

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

Definition at line 187 of file transportationsolver.hxx.

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

Definition at line 188 of file transportationsolver.hxx.

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

Definition at line 376 of file transportationsolver.hxx.

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

Definition at line 170 of file transportationsolver.hxx.

template<class T>
const_iterator TransportSolver::List2D< T >::colBegin ( 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 173 of file transportationsolver.hxx.

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

Definition at line 174 of file transportationsolver.hxx.

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

Definition at line 369 of file transportationsolver.hxx.

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

Definition at line 160 of file transportationsolver.hxx.

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

Definition at line 352 of file transportationsolver.hxx.

+ Here is the call graph for this function:

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

Definition at line 153 of file transportationsolver.hxx.

+ Here is the caller graph for this function:

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

Definition at line 490 of file transportationsolver.hxx.

+ Here is the call graph for this function:

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

not very efficient function. Implemented mainly for test purposes.

Definition at line 430 of file transportationsolver.hxx.

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

Definition at line 390 of file transportationsolver.hxx.

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

Definition at line 404 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 
)

Definition at line 282 of file transportationsolver.hxx.

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

Definition at line 162 of file transportationsolver.hxx.

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

Definition at line 271 of file transportationsolver.hxx.

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

Definition at line 294 of file transportationsolver.hxx.

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

Definition at line 224 of file transportationsolver.hxx.

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

Definition at line 164 of file transportationsolver.hxx.

template<class T>
const_iterator TransportSolver::List2D< T >::rowBegin ( 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 167 of file transportationsolver.hxx.

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

Definition at line 168 of file transportationsolver.hxx.

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

Definition at line 362 of file transportationsolver.hxx.

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

Definition at line 158 of file transportationsolver.hxx.

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

Definition at line 159 of file transportationsolver.hxx.

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

Definition at line 161 of file transportationsolver.hxx.