LifeV
MatrixContainer< KEYTYPE > Class Template Reference

#include <MatrixContainer.hpp>

+ Collaboration diagram for MatrixContainer< KEYTYPE >:

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_ptrContainer
 
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 >
getParameter (const std::string &_name, const T &dpar) const
 

Detailed Description

template<typename KEYTYPE = std::string>
class LifeV::MatrixContainer< KEYTYPE >

This class is a container for matrices and other parameters (stored in a Teuchos::ParameterList).

Definition at line 28 of file MatrixContainer.hpp.

Member Typedef Documentation

◆ KeyType

typedef KEYTYPE KeyType

Definition at line 34 of file MatrixContainer.hpp.

◆ MatrixType_ptr

typedef std::shared_ptr<MatrixEpetra<double> > MatrixType_ptr

Definition at line 36 of file MatrixContainer.hpp.

◆ MatrixRawType_ptr

typedef std::shared_ptr<Epetra_CrsMatrix> MatrixRawType_ptr

Definition at line 37 of file MatrixContainer.hpp.

◆ Container

typedef std::map<KeyType, MatrixType_ptr > Container

Definition at line 38 of file MatrixContainer.hpp.

◆ Iterator

typedef Container::iterator Iterator

Definition at line 39 of file MatrixContainer.hpp.

◆ CIterator

typedef Container::const_iterator CIterator

Definition at line 40 of file MatrixContainer.hpp.

◆ ValuePair

typedef Container::value_type ValuePair

Definition at line 41 of file MatrixContainer.hpp.

Constructor & Destructor Documentation

◆ MatrixContainer()

MatrixContainer ( )
inline

Empty constructor.

Definition at line 45 of file MatrixContainer.hpp.

Member Function Documentation

◆ set()

void set ( const KeyType _name,
const MatrixType_ptr _matrix 
)

Definition at line 69 of file MatrixContainer.hpp.

◆ setParameter()

void setParameter ( const std::string &  _name,
const T &  par 
)

Definition at line 95 of file MatrixContainer.hpp.

◆ getMatrix()

std::shared_ptr< MatrixEpetra< double > > getMatrix ( const KeyType _name) const

Definition at line 77 of file MatrixContainer.hpp.

◆ get()

std::shared_ptr< Epetra_CrsMatrix > get ( const KeyType _name) const

Definition at line 85 of file MatrixContainer.hpp.

◆ getParameter()

T getParameter ( const std::string &  _name,
const T &  dpar 
) const

Definition at line 102 of file MatrixContainer.hpp.

Field Documentation

◆ M_container

Container M_container
private

map containing the matrices

Definition at line 63 of file MatrixContainer.hpp.

◆ M_pList

std::shared_ptr<Teuchos::ParameterList> M_pList
private

list for additional parameters

Definition at line 65 of file MatrixContainer.hpp.


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