LifeV
|
#include <MatrixContainer.hpp>
Public Member Functions | |
MatrixContainer () | |
Empty constructor. More... | |
Private Attributes | |
Container | M_container |
map containing the matrices More... | |
std::shared_ptr< Teuchos::ParameterList > | M_pList |
list for additional parameters More... | |
Public Typedef | |
typedef KEYTYPE | KeyType |
typedef std::shared_ptr< MatrixEpetra< double > > | MatrixType_ptr |
typedef std::shared_ptr< Epetra_CrsMatrix > | MatrixRawType_ptr |
typedef std::map< KeyType, MatrixType_ptr > | Container |
typedef Container::iterator | Iterator |
typedef Container::const_iterator | CIterator |
typedef Container::value_type | ValuePair |
setters | |
void | set (const KeyType &_name, const MatrixType_ptr &_matrix) |
template<typename T > | |
void | setParameter (const std::string &_name, const T &par) |
getters | |
MatrixType_ptr | getMatrix (const KeyType &_name) const |
MatrixRawType_ptr | get (const KeyType &_name) const |
template<typename T > | |
T | getParameter (const std::string &_name, const T &dpar) const |
This class is a container for matrices and other parameters (stored in a Teuchos::ParameterList).
Definition at line 28 of file MatrixContainer.hpp.
typedef KEYTYPE KeyType |
Definition at line 34 of file MatrixContainer.hpp.
typedef std::shared_ptr<MatrixEpetra<double> > MatrixType_ptr |
Definition at line 36 of file MatrixContainer.hpp.
typedef std::shared_ptr<Epetra_CrsMatrix> MatrixRawType_ptr |
Definition at line 37 of file MatrixContainer.hpp.
typedef std::map<KeyType, MatrixType_ptr > Container |
Definition at line 38 of file MatrixContainer.hpp.
typedef Container::iterator Iterator |
Definition at line 39 of file MatrixContainer.hpp.
typedef Container::const_iterator CIterator |
Definition at line 40 of file MatrixContainer.hpp.
typedef Container::value_type ValuePair |
Definition at line 41 of file MatrixContainer.hpp.
|
inline |
Empty constructor.
Definition at line 45 of file MatrixContainer.hpp.
void set | ( | const KeyType & | _name, |
const MatrixType_ptr & | _matrix | ||
) |
Definition at line 69 of file MatrixContainer.hpp.
void setParameter | ( | const std::string & | _name, |
const T & | par | ||
) |
Definition at line 95 of file MatrixContainer.hpp.
std::shared_ptr< MatrixEpetra< double > > getMatrix | ( | const KeyType & | _name | ) | const |
Definition at line 77 of file MatrixContainer.hpp.
std::shared_ptr< Epetra_CrsMatrix > get | ( | const KeyType & | _name | ) | const |
Definition at line 85 of file MatrixContainer.hpp.
T getParameter | ( | const std::string & | _name, |
const T & | dpar | ||
) | const |
Definition at line 102 of file MatrixContainer.hpp.
|
private |
map containing the matrices
Definition at line 63 of file MatrixContainer.hpp.
|
private |
list for additional parameters
Definition at line 65 of file MatrixContainer.hpp.