Thyra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Thyra_DefaultSpmdVectorSpaceFactory_decl.hpp
1 // @HEADER
2 // *****************************************************************************
3 // Thyra: Interfaces and Support for Abstract Numerical Algorithms
4 //
5 // Copyright 2004 NTESS and the Thyra contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef THYRA_SPMD_VECTOR_SPACE_FACTORY_STD_DECL_HPP
11 #define THYRA_SPMD_VECTOR_SPACE_FACTORY_STD_DECL_HPP
12 
13 #include "Thyra_VectorSpaceFactoryBase.hpp"
14 
15 namespace Teuchos { template<typename Ordinal> class Comm; }
16 
17 namespace Thyra {
18 
34 template<class Scalar>
36 public:
37 
40 
43 
61 
63 
64 private:
65 
67 
68 public:
69 
72  const Teuchos::RCP<const Teuchos::Comm<Ordinal> > &comm = Teuchos::null
73  );
74 
75 }; // end class DefaultSpmdVectorSpaceFactory
76 
77 
90 template<class Scalar>
93  const Teuchos::RCP<const Teuchos::Comm<Ordinal> > &comm = Teuchos::null
94  )
95 {
97 }
98 
99 
100 // ///////////////////////////
101 // Inline members
102 
103 
104 template<class Scalar>
105 inline
108 {
109  return comm_;
110 }
111 
112 } // end namespace Thyra
113 
114 #endif // THYRA_SPMD_VECTOR_SPACE_FACTORY_STD_DECL_HPP
Teuchos::RCP< const Teuchos::Comm< Ordinal > > getComm() const
Return the Spmd communicator.
Teuchos::RCP< const VectorSpaceBase< Scalar > > createVecSpc(int dim) const
Create a new locally-replicated DefaultSpmdVectorSpace object given its dimension! ...
Abstract interface for objects that can create vector spaces of a specified dimension.
DefaultSpmdVectorSpaceFactory(const Teuchos::RCP< const Teuchos::Comm< Ordinal > > &comm=Teuchos::null)
Depreciated .
Concrete implementation of a vector-space factory for a locally-replicated distributed DefaultSpmdVec...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
RCP< DefaultSpmdVectorSpaceFactory< Scalar > > defaultSpmdVectorSpaceFactory(const Teuchos::RCP< const Teuchos::Comm< Ordinal > > &comm=Teuchos::null)
Construct with a Teuchos::Comm object.