10 #ifndef THYRA_MULTI_VECTOR_ALLOCATOR_HPP
11 #define THYRA_MULTI_VECTOR_ALLOCATOR_HPP
13 #include "Thyra_VectorSpaceBase.hpp"
14 #include "Teuchos_Assert.hpp"
21 template<
class Scalar>
30 : vs_(vs), numMembers_(numMembers)
37 const ptr_t allocate()
const {
return vs_->createMembers(numMembers_); }
45 #endif // THYRA_MULTI_VECTOR_ALLOCATOR_HPP
Teuchos::RCP< MultiVectorBase< Scalar > > ptr_t
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Allocator class to be used with Teuchos::AbstractFactoryStd to create MultiVectorBase objects of a gi...
Abstract interface for objects that represent a space for vectors.
const ptr_t allocate() const
MultiVectorAllocator(const Teuchos::RCP< const VectorSpaceBase< Scalar > > &vs, int numMembers)