Choreonoid  1.5
Classes | Public Types | Public Member Functions | List of all members
cnoid::Array2D< ElementType, Allocator > Class Template Reference

#include <Array2D.h>

Classes

class  Column
 
class  Row
 

Public Types

typedef ElementType Element
 
typedef std::vector< ElementType, Allocator > Container
 
typedef Container::iterator iterator
 

Public Member Functions

 Array2D ()
 
 Array2D (int rowSize, int colSize)
 
 Array2D (const Array2DType &org)
 
Array2DTypeoperator= (const Array2DType &rhs)
 
virtual ~Array2D ()
 
bool empty () const
 
void resize (int newRowSize, int newColSize)
 
void clear ()
 
void resizeColumn (int newColSize)
 
int rowSize () const
 
void resizeRow (int newRowSize)
 
int colSize () const
 
const ElementType & operator() (int rowIndex, int colIndex) const
 
ElementType & operator() (int rowIndex, int colIndex)
 
const ElementType & at (int rowIndex, int colIndex) const
 
ElementType & at (int rowIndex, int colIndex)
 
Row operator[] (int rowIndex)
 
const Row operator[] (int rowIndex) const
 
Row row (int rowIndex)
 
const Row row (int rowIndex) const
 
Column column (int colIndex)
 
const Column column (int colIndex) const
 
iterator begin ()
 
iterator end ()
 

Member Typedef Documentation

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
typedef std::vector<ElementType, Allocator> cnoid::Array2D< ElementType, Allocator >::Container
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
typedef ElementType cnoid::Array2D< ElementType, Allocator >::Element
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
typedef Container::iterator cnoid::Array2D< ElementType, Allocator >::iterator

Constructor & Destructor Documentation

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
cnoid::Array2D< ElementType, Allocator >::Array2D ( )
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
cnoid::Array2D< ElementType, Allocator >::Array2D ( int  rowSize,
int  colSize 
)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
cnoid::Array2D< ElementType, Allocator >::Array2D ( const Array2DType org)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual cnoid::Array2D< ElementType, Allocator >::~Array2D ( )
inlinevirtual

Member Function Documentation

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
const ElementType& cnoid::Array2D< ElementType, Allocator >::at ( int  rowIndex,
int  colIndex 
) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
ElementType& cnoid::Array2D< ElementType, Allocator >::at ( int  rowIndex,
int  colIndex 
)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
iterator cnoid::Array2D< ElementType, Allocator >::begin ( )
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
void cnoid::Array2D< ElementType, Allocator >::clear ( )
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
int cnoid::Array2D< ElementType, Allocator >::colSize ( ) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
Column cnoid::Array2D< ElementType, Allocator >::column ( int  colIndex)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
const Column cnoid::Array2D< ElementType, Allocator >::column ( int  colIndex) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
bool cnoid::Array2D< ElementType, Allocator >::empty ( ) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
iterator cnoid::Array2D< ElementType, Allocator >::end ( )
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
const ElementType& cnoid::Array2D< ElementType, Allocator >::operator() ( int  rowIndex,
int  colIndex 
) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
ElementType& cnoid::Array2D< ElementType, Allocator >::operator() ( int  rowIndex,
int  colIndex 
)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
Array2DType& cnoid::Array2D< ElementType, Allocator >::operator= ( const Array2DType rhs)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
Row cnoid::Array2D< ElementType, Allocator >::operator[] ( int  rowIndex)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
const Row cnoid::Array2D< ElementType, Allocator >::operator[] ( int  rowIndex) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
void cnoid::Array2D< ElementType, Allocator >::resize ( int  newRowSize,
int  newColSize 
)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
void cnoid::Array2D< ElementType, Allocator >::resizeColumn ( int  newColSize)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
void cnoid::Array2D< ElementType, Allocator >::resizeRow ( int  newRowSize)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
Row cnoid::Array2D< ElementType, Allocator >::row ( int  rowIndex)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
const Row cnoid::Array2D< ElementType, Allocator >::row ( int  rowIndex) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
int cnoid::Array2D< ElementType, Allocator >::rowSize ( ) const
inline

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