LifeV
|
VectorBlockStructure - class representing the structure of a vector. More...
#include <VectorBlockStructure.hpp>
Private Attributes | |
std::vector< UInt > | M_blockSize |
std::vector< UInt > | M_blockFirstIndex |
UInt | M_totalSize |
Public Types | |
typedef Real | data_Type |
Type of data stored. More... | |
typedef MapEpetra | map_Type |
Type of the map to be used. More... | |
typedef MapVector< map_Type > | mapVector_Type |
Type of the MapVector to be used with this class. More... | |
typedef MapEpetraType | mapType_Type |
Type of the map (Unique/Repeated) More... | |
typedef Epetra_CombineMode | combine_Type |
Combine mode. More... | |
Constructor & Destructor | |
VectorBlockStructure () | |
Default constructor. More... | |
VectorBlockStructure (const map_Type &map) | |
Constructor with the monolithic map. More... | |
VectorBlockStructure (const mapVector_Type &mapVector) | |
Construction with a map. More... | |
VectorBlockStructure (const VectorBlockStructure &blockStructure) | |
Copy constructor. More... | |
~VectorBlockStructure () | |
Destructor. More... | |
Set Methods | |
void | setBlockStructure (const std::vector< UInt > &blockSizes) |
void | setBlockStructure (const mapVector_Type &mapVector) |
Reset the block structure using the blocks of a vector of map. More... | |
void | setBlockStructure (const VectorBlockStructure &blockStructure) |
Get Methods | |
UInt | blockSize (const UInt &index) const |
Getter for the size of the block index. More... | |
UInt | blockFirstIndex (const UInt &index) const |
UInt | numBlocks () const |
UInt | totalSize () const |
VectorBlockStructure - class representing the structure of a vector.
Definition at line 51 of file VectorBlockStructure.hpp.
Type of data stored.
Definition at line 59 of file VectorBlockStructure.hpp.
Type of the map to be used.
Definition at line 62 of file VectorBlockStructure.hpp.
typedef MapVector<map_Type> mapVector_Type |
Type of the MapVector to be used with this class.
Definition at line 65 of file VectorBlockStructure.hpp.
typedef MapEpetraType mapType_Type |
Type of the map (Unique/Repeated)
Definition at line 68 of file VectorBlockStructure.hpp.
typedef Epetra_CombineMode combine_Type |
Combine mode.
Definition at line 71 of file VectorBlockStructure.hpp.
Default constructor.
Definition at line 45 of file VectorBlockStructure.cpp.
VectorBlockStructure | ( | const map_Type & | map | ) |
Constructor with the monolithic map.
Definition at line 52 of file VectorBlockStructure.cpp.
VectorBlockStructure | ( | const mapVector_Type & | mapVector | ) |
Construction with a map.
With this constructor, the block structure is automatically deduced from the maps in the vector. The monolithic map and vectors are also built by concatenating the different maps in the vector.
Definition at line 59 of file VectorBlockStructure.cpp.
VectorBlockStructure | ( | const VectorBlockStructure & | blockStructure | ) |
Copy constructor.
Definition at line 81 of file VectorBlockStructure.cpp.
|
inline |
Destructor.
Definition at line 97 of file VectorBlockStructure.hpp.
void setBlockStructure | ( | const std::vector< UInt > & | blockSizes | ) |
Set the size of the blocks of the vector
blockSizes | Sizes of the blocks |
Definition at line 95 of file VectorBlockStructure.cpp.
void setBlockStructure | ( | const mapVector_Type & | mapVector | ) |
Reset the block structure using the blocks of a vector of map.
Definition at line 112 of file VectorBlockStructure.cpp.
void setBlockStructure | ( | const VectorBlockStructure & | blockStructure | ) |
Set the block structure using a block structure
blockStructure | Structure of the vector |
Definition at line 131 of file VectorBlockStructure.cpp.
Getter for the size of the block index.
index | Index of the block |
Definition at line 138 of file VectorBlockStructure.hpp.
index | Index of the block |
Definition at line 148 of file VectorBlockStructure.hpp.
|
inline |
Definition at line 157 of file VectorBlockStructure.hpp.
|
inline |
Definition at line 165 of file VectorBlockStructure.hpp.
|
private |
Definition at line 174 of file VectorBlockStructure.hpp.
|
private |
Definition at line 175 of file VectorBlockStructure.hpp.
|
private |
Definition at line 176 of file VectorBlockStructure.hpp.