Thyra::VectorSpaceFactoryBase< Scalar > Class Template Reference
[C++ code for foundational Thyra operator/vector interfaces]

Abstract interface for objects that can create vector spaces of a specified dimension. More...

#include <Thyra_VectorSpaceFactoryBaseDecl.hpp>

Inheritance diagram for Thyra::VectorSpaceFactoryBase< Scalar >:

[legend]
List of all members.

Public pure virtual functions that must be overridden

virtual Teuchos::RefCountPtr<
const VectorSpaceBase< Scalar > > 
createVecSpc (int dim) const =0
 Create a vector space of the given dimension.

Public Member Functions

virtual ~VectorSpaceFactoryBase ()
 

Detailed Description

template<class Scalar>
class Thyra::VectorSpaceFactoryBase< Scalar >

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 49 of file Thyra_VectorSpaceFactoryBaseDecl.hpp.


Constructor & Destructor Documentation

template<class Scalar>
virtual Thyra::VectorSpaceFactoryBase< Scalar >::~VectorSpaceFactoryBase  )  [inline, virtual]
 

Definition at line 53 of file Thyra_VectorSpaceFactoryBaseDecl.hpp.


Member Function Documentation

template<class Scalar>
virtual Teuchos::RefCountPtr< const VectorSpaceBase<Scalar> > Thyra::VectorSpaceFactoryBase< Scalar >::createVecSpc int  dim  )  const [pure virtual]
 

Create a vector space of the given dimension.

Parameters:
dim [in] The dimension of the vector space to create.
Preconditions:
  • dim > 0 (throw std::invalid_argument).

Postconditions:

  • return.get() != NULL
  • return->dim() == dim

Returns:
Returns a smart reference-counted pointer to a dynamically allocated vector space object that can be used to create vectors and multi-vectors.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:32:11 2008 for Fundamental Thyra ANA Operator/Vector Interfaces by doxygen 1.3.9.1