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