This class intends to provide an uniform way to handle multy-dimention data (const version) More...
#include <MED_SliceArray.hxx>

Public Types | |
| typedef TValueType | value_type |
Public Member Functions | |
| TCSlice (const value_type *theValuePtr, size_t theSourceSize, const std::slice &theSlice) | |
| Construct the class from bare pointer. | |
| TCSlice (const TVector< value_type > &theContainer, const std::slice &theSlice) | |
| Construct the class from corresponding container. | |
| TCSlice () | |
| Default constructor (dangerous) | |
| const value_type & | operator[] (size_t theId) const |
| Get element by its number (const version) | |
| const value_type & | at (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 Attributes | |
| const TValueType * | myCValuePtr |
| Reference to source multy-dimension data. | |
| size_t | mySourceSize |
| Size of the source multy-dimension data. | |
| std::slice | mySlice |
| Defines algorithm of index calculation. | |
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).
| typedef TValueType MED.TCSlice< TValueType >.value_type |
Reimplemented in MED.TSlice< TValueType >.
| MED.TCSlice< TValueType >.TCSlice | ( | const value_type * | theValuePtr, |
| size_t | theSourceSize, | ||
| const std::slice & | theSlice | ||
| ) |
Construct the class from bare pointer.
| MED.TCSlice< TValueType >.TCSlice | ( | const TVector< value_type > & | theContainer, |
| const std::slice & | theSlice | ||
| ) |
Construct the class from corresponding container.
| MED.TCSlice< TValueType >.TCSlice | ( | ) |
Default constructor (dangerous)
| void MED.TCSlice< TValueType >.check_id | ( | size_t | theId | ) | const [protected] |
References MED.TCSlice< TValueType >.mySlice, and MED.TCSlice< TValueType >.mySourceSize.
| size_t MED.TCSlice< TValueType >.calculate_id | ( | size_t | theId | ) | const [protected] |
Calculate internal index to get proper element from the source multy-dimension data.
References MED.TCSlice< TValueType >.mySlice.
| size_t MED.TCSlice< TValueType >.get_id | ( | size_t | theId | ) | const [protected] |
| size_t MED.TCSlice< TValueType >.get_id_at | ( | size_t | theId | ) | const [protected] |
| const value_type& MED.TCSlice< TValueType >.operator[] | ( | size_t | theId | ) | const |
Get element by its number (const version)
References MED.TCSlice< TValueType >.get_id(), and MED.TCSlice< TValueType >.myCValuePtr.
| const value_type& MED.TCSlice< TValueType >.at | ( | size_t | theId | ) | const |
| size_t MED.TCSlice< TValueType >.size | ( | ) | const |
Get range of the order numbers.
References MED.TCSlice< TValueType >.mySlice.
const TValueType* MED.TCSlice< TValueType >.myCValuePtr [private] |
Reference to source multy-dimension data.
size_t MED.TCSlice< TValueType >.mySourceSize [private] |
Size of the source multy-dimension data.
std::slice MED.TCSlice< TValueType >.mySlice [private] |
Defines algorithm of index calculation.