MED.TCSlice< TContainer > Class Template Reference

This class intends to provide an uniform way to handle multy-dimention data (const version). More...

#include <MED_SliceArray.hxx>

Inheritance diagram for MED.TCSlice< TContainer >:

Inheritance graph

Public Types

typedef TContainer::value_type value_type

Public Member Functions

 TCSlice (const TContainer &theContainer, const std::slice &theSlice)
 Construct the class.
 TCSlice ()
 Default constructor (dangerous).
const value_typeoperator[] (size_t theId) const
 Get element by its number (const version).
const value_typeat (size_t theId) const
size_t size () const
 Get range of the order numbers.

Protected Member Functions

void check_id (size_t theId) const
size_t calculate_id (size_t theId) const
 Calculate internal index to get proper element from the source multy-dimension data.
size_t get_id (size_t theId) const
size_t get_id_at (size_t theId) const

Private Types

typedef const TContainer * PCContainer

Private Attributes

PCContainer myCContainer
 Reference to source multy-dimension data.
std::slice mySlice
 Defines algorithm of index calculation.

Detailed Description

template<class TContainer>
class MED::TCSlice< TContainer >

This class intends to provide an uniform way to handle multy-dimention data (const version).

It just contains pointer to real sequence and implement proper calcultion of its indexes. This class deal with constant pointer to the sources data and provide const method to read the them (data).


Member Typedef Documentation

template<class TContainer>
typedef const TContainer* MED.TCSlice< TContainer >.PCContainer [private]
 

template<class TContainer>
typedef TContainer::value_type MED.TCSlice< TContainer >.value_type
 

Reimplemented in MED.TSlice< TContainer >.


Constructor & Destructor Documentation

template<class TContainer>
MED.TCSlice< TContainer >.TCSlice const TContainer &  theContainer,
const std::slice &  theSlice
 

Construct the class.

template<class TContainer>
MED.TCSlice< TContainer >.TCSlice  ) 
 

Default constructor (dangerous).


Member Function Documentation

template<class TContainer>
void MED.TCSlice< TContainer >.check_id size_t  theId  )  const [protected]
 

template<class TContainer>
size_t MED.TCSlice< TContainer >.calculate_id size_t  theId  )  const [protected]
 

Calculate internal index to get proper element from the source multy-dimension data.

template<class TContainer>
size_t MED.TCSlice< TContainer >.get_id size_t  theId  )  const [protected]
 

template<class TContainer>
size_t MED.TCSlice< TContainer >.get_id_at size_t  theId  )  const [protected]
 

template<class TContainer>
const value_type& MED.TCSlice< TContainer >.operator[] size_t  theId  )  const
 

Get element by its number (const version).

template<class TContainer>
const value_type& MED.TCSlice< TContainer >.at size_t  theId  )  const
 

template<class TContainer>
size_t MED.TCSlice< TContainer >.size  )  const
 

Get range of the order numbers.


Field Documentation

template<class TContainer>
PCContainer MED.TCSlice< TContainer >.myCContainer [private]
 

Reference to source multy-dimension data.

template<class TContainer>
std::slice MED.TCSlice< TContainer >.mySlice [private]
 

Defines algorithm of index calculation.