MOOCHO (Single Doxygen Collection)
Version of the Day
|
Abstract interface for objects that can create vector spaces of a specified dimension. More...
#include <AbstractLinAlgPack_VectorSpaceFactory.hpp>
Public Types | |
typedef Teuchos::RCP< const InnerProduct > | inner_prod_ptr_t |
typedef Teuchos::RCP< const VectorSpace > | space_ptr_t |
Private Attributes | |
InnerProduct * | inner_prod |
Constructors / initializers | |
virtual | ~VectorSpaceFactory () |
VectorSpaceFactory (const inner_prod_ptr_t &inner_prod=Teuchos::null) | |
Calls inner_prod() More... | |
virtual void | inner_prod (const inner_prod_ptr_t &inner_prod) |
Initialize with an inner product object that will be given to vector. More... | |
virtual const inner_prod_ptr_t | inner_prod () const |
Return the smart pointer to the inner product strategy object. More... | |
Pure virtual functions that must be overridden | |
virtual space_ptr_t | create_vec_spc (index_type 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.
ToDo: Finish documentation!
Definition at line 54 of file AbstractLinAlgPack_VectorSpaceFactory.hpp.
Definition at line 59 of file AbstractLinAlgPack_VectorSpaceFactory.hpp.
Definition at line 61 of file AbstractLinAlgPack_VectorSpaceFactory.hpp.
|
virtual |
Definition at line 49 of file AbstractLinAlgPack_VectorSpaceFactory.cpp.
AbstractLinAlgPack::VectorSpaceFactory::VectorSpaceFactory | ( | const inner_prod_ptr_t & | inner_prod = Teuchos::null | ) |
Calls inner_prod()
Definition at line 52 of file AbstractLinAlgPack_VectorSpaceFactory.cpp.
|
virtual |
Initialize with an inner product object that will be given to vector.
inner_prod | [in] Smart pointer to inner product strategy object. If inner_prod.get()==NULL then an InnerProductDot object will be used instead. |
Postconditions:
inner_prod.get() != NULL
] this->inner_prod().get() == inner_prod.get()
inner_prod.get() == NULL
] dynamic_cast<InnerProductDot*>(this->inner_prod().get()) != NULL
|
virtual |
Return the smart pointer to the inner product strategy object.
Postconditions:
return.get() != NULL
|
pure virtual |
Create a vector space of the given dimension.
Postconditions:
return.get() != NULL
return->dim() == dim
this->inner_prod().get() != NULL
] this->inner_prod().get() == return->inner_prod().get()
this->inner_prod().get() == NULL
] dynamic_cast<InnerProductDot*>(return->inner_prod().get()) != NULL
Implemented in AbstractLinAlgPack::VectorSpaceFactoryThyra, and AbstractLinAlgPack::VectorSpaceFactorySerial.
|
private |
Definition at line 116 of file AbstractLinAlgPack_VectorSpaceFactory.hpp.