Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Classes | Public Member Functions | Protected Member Functions | Private Attributes
concepts::MultiArray< 1, T > Class Template Reference

Container typename for multidimensional Array which is based on std::map. More...

#include <multiArray.hh>

Inheritance diagram for concepts::MultiArray< 1, T >:
Inheritance graph
[legend]
Collaboration diagram for concepts::MultiArray< 1, T >:
Collaboration graph
[legend]

List of all members.

Classes

class  Scanner
 Class for scanning (iterating) over the array in all dimensions. More...

Public Member Functions

void clear ()
 Clears the array.
void erase (uint i)
void erase (const uint i[1])
 Erase entry i.
bool isElm (const uint i[1]) const
 Checks if the element exists.
bool isElm (const uint i) const
 MultiArray (bool commutable=false)
 Constructor.
const T & operator[] (const uint i[1]) const
 Index operator for the container.
T & operator[] (const uint i)
 Index operator for the container.
const T & operator[] (const uint i) const
 Index operator for the container.
T & operator[] (const uint i[1])
 Index operator for the container.
Scanner * scan () const
 Scanner over the entrances.
uint size () const
 Number of entrances.
 ~MultiArray ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Private Attributes

std::map< uint, T > data_
 array of T

Detailed Description

template<typename T>
class concepts::MultiArray< 1, T >

Container typename for multidimensional Array which is based on std::map.

First level, 1-dimensional array

Definition at line 432 of file multiArray.hh.


Constructor & Destructor Documentation

template<typename T >
concepts::MultiArray< 1, T >::MultiArray ( bool  commutable = false) [inline]

Constructor.

Commutability for one-dimensional array not important, its here for the recursive definition.

Definition at line 467 of file multiArray.hh.

template<typename T >
concepts::MultiArray< 1, T >::~MultiArray ( ) [inline]

Definition at line 468 of file multiArray.hh.

Here is the call graph for this function:


Member Function Documentation

template<typename T >
void concepts::MultiArray< 1, T >::clear ( ) [inline]

Clears the array.

Definition at line 512 of file multiArray.hh.

template<typename T >
void concepts::MultiArray< 1, T >::erase ( const uint  i[1]) [inline]

Erase entry i.

Definition at line 503 of file multiArray.hh.

Here is the call graph for this function:

template<typename T >
void concepts::MultiArray< 1, T >::erase ( uint  i) [inline]

Definition at line 504 of file multiArray.hh.

template<typename T >
std::ostream & concepts::MultiArray< 1, T >::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 535 of file multiArray.hh.

Here is the call graph for this function:

template<typename T >
bool concepts::MultiArray< 1, T >::isElm ( const uint  i[1]) const [inline]

Checks if the element exists.

Definition at line 499 of file multiArray.hh.

Here is the call graph for this function:

template<typename T >
bool concepts::MultiArray< 1, T >::isElm ( const uint  i) const

Definition at line 529 of file multiArray.hh.

template<typename T >
const T& concepts::MultiArray< 1, T >::operator[] ( const uint  i[1]) const [inline]

Index operator for the container.

Returns:
The (i[0])th element of the array.

Definition at line 481 of file multiArray.hh.

template<typename T >
const T & concepts::MultiArray< 1, T >::operator[] ( const uint  i) const

Index operator for the container.

Returns:
The i-th element of the array.

Definition at line 521 of file multiArray.hh.

template<typename T >
T& concepts::MultiArray< 1, T >::operator[] ( const uint  i) [inline]

Index operator for the container.

If an item is not existing, it is created, inserted into the array and then returned.

Returns:
The i-th element of the array.

Definition at line 489 of file multiArray.hh.

template<typename T >
T& concepts::MultiArray< 1, T >::operator[] ( const uint  i[1]) [inline]

Index operator for the container.

If an item is not existing, it is created, inserted into the array and then returned.

Returns:
The (i[0])th element of the array.

Definition at line 476 of file multiArray.hh.

template<typename T >
Scanner* concepts::MultiArray< 1, T >::scan ( ) const [inline]

Scanner over the entrances.

Definition at line 496 of file multiArray.hh.

template<typename T >
uint concepts::MultiArray< 1, T >::size ( ) const [inline]

Number of entrances.

Definition at line 509 of file multiArray.hh.


Member Data Documentation

template<typename T >
std::map<uint, T> concepts::MultiArray< 1, T >::data_ [private]

array of T

Definition at line 517 of file multiArray.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)