Thyra
Version of the Day
|
Abstract interface for objects that can create vector spaces of a specified dimension. More...
#include <Thyra_VectorSpaceFactoryBase.hpp>
Public Member Functions | |
virtual | ~VectorSpaceFactoryBase () |
Public pure virtual functions that must be overridden | |
virtual RCP< const VectorSpaceBase< Scalar > > | createVecSpc (int dim) const =0 |
Create a vector space of the given dimension. More... | |
Abstract interface for objects that can create vector spaces of a specified dimension.
The primary role that a VectorSpaceFactoryBase
object takes is defined in the documentation for the class VectorSpaceBase
and is related to the domain space of MultiVectorBase
objects. However, this is a general factory interface class that can be used to create almost any VectorSpaceBase
object just given a dimension.
Definition at line 334 of file Thyra_OperatorVectorTypes.hpp.
|
inlinevirtual |
Definition at line 34 of file Thyra_VectorSpaceFactoryBase.hpp.
|
pure virtual |
Create a vector space of the given dimension.
dim | [in] The dimension of the vector space to create. |
Preconditions:
dim > 0
(throw std::invalid_argument
). Postconditions:
return.get() != NULL
return->dim() == dim
Implemented in Thyra::DefaultSpmdVectorSpaceFactory< Scalar >.