AbstractLinAlgPack::VectorSpaceThyra Class Reference

VectorSpace adapter subclass for Thyra::VectorSpaceBase<value_type> . More...

#include <AbstractLinAlgPack_VectorSpaceThyra.hpp>

Inheritance diagram for AbstractLinAlgPack::VectorSpaceThyra:

[legend]
List of all members.

Constructors / initializers

 VectorSpaceThyra ()
 Construct to uninitialized.
 VectorSpaceThyra (const Teuchos::RefCountPtr< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc, const inner_prod_ptr_t &inner_prod=Teuchos::null)
 Calls this->initialize().
void initialize (const Teuchos::RefCountPtr< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc, const inner_prod_ptr_t &inner_prod=Teuchos::null)
 Initalize given a smart pointer to a Thyra::VetorSpace object.
Teuchos::RefCountPtr< const
Thyra::VectorSpaceBase< value_type > > 
set_uninitialized ()
 Set to uninitialized and return smart pointer to the internal Thyra::VectorSpaceBase<value_type> object.
const Teuchos::RefCountPtr<
const Thyra::VectorSpaceBase<
value_type > > & 
thyra_vec_spc () const
 Return a (converted) smart pointer to the internal smart pointer to the Thyra::VectorSpaceBase<value_type> object.

Overridden from VectorSpace

space_ptr_t clone () const
 
bool is_compatible (const VectorSpace &vec_spc) const
 
bool is_in_core () const
 
index_type dim () const
 
vec_mut_ptr_t create_member () const
 
space_fcty_ptr_t small_vec_spc_fcty () const
 
multi_vec_mut_ptr_t create_members (size_type num_vecs) const
 

Detailed Description

VectorSpace adapter subclass for Thyra::VectorSpaceBase<value_type> .

Note that the default copy constructor and assignment operators are allowed which yield in shallow copy, not deep copy.

Definition at line 42 of file AbstractLinAlgPack_VectorSpaceThyra.hpp.


Constructor & Destructor Documentation

AbstractLinAlgPack::VectorSpaceThyra::VectorSpaceThyra  ) 
 

Construct to uninitialized.

Postconditioins:

  • this->thyra_vec().get() == NULL

Definition at line 43 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

AbstractLinAlgPack::VectorSpaceThyra::VectorSpaceThyra const Teuchos::RefCountPtr< const Thyra::VectorSpaceBase< value_type > > &  thyra_vec_spc,
const inner_prod_ptr_t inner_prod = Teuchos::null
 

Calls this->initialize().

Definition at line 46 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.


Member Function Documentation

void AbstractLinAlgPack::VectorSpaceThyra::initialize const Teuchos::RefCountPtr< const Thyra::VectorSpaceBase< value_type > > &  thyra_vec_spc,
const inner_prod_ptr_t inner_prod = Teuchos::null
 

Initalize given a smart pointer to a Thyra::VetorSpace object.

Parameters:
thyra_vec_spc [in] Smart pointer to Thyra vector this will adapt.
inner_prod [in] Smart pointer to an inner product. If inner_prod.get()==NULL then a InnerProductThyra object will be used which will point to this.
Preconditioins:
  • thyra_vec_spc.get() != NULL (throw std::invalid_argument)

Postconditioins:

Definition at line 54 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

Teuchos::RefCountPtr< const Thyra::VectorSpaceBase< value_type > > AbstractLinAlgPack::VectorSpaceThyra::set_uninitialized  ) 
 

Set to uninitialized and return smart pointer to the internal Thyra::VectorSpaceBase<value_type> object.

Postconditioins:

Definition at line 72 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

const Teuchos::RefCountPtr< const Thyra::VectorSpaceBase< value_type > > & AbstractLinAlgPack::VectorSpaceThyra::thyra_vec_spc  )  const [inline]
 

Return a (converted) smart pointer to the internal smart pointer to the Thyra::VectorSpaceBase<value_type> object.

If this->thyra_vec_spc().count() == 1, then this has sole ownership of the *this->thyra_vec_spc() object.

Definition at line 135 of file AbstractLinAlgPack_VectorSpaceThyra.hpp.

VectorSpace::space_ptr_t AbstractLinAlgPack::VectorSpaceThyra::clone  )  const [virtual]
 

Implements AbstractLinAlgPack::VectorSpace.

Definition at line 82 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

bool AbstractLinAlgPack::VectorSpaceThyra::is_compatible const VectorSpace vec_spc  )  const [virtual]
 

Implements AbstractLinAlgPack::VectorSpace.

Definition at line 87 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

bool AbstractLinAlgPack::VectorSpaceThyra::is_in_core  )  const [virtual]
 

Reimplemented from AbstractLinAlgPack::VectorSpace.

Definition at line 98 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

index_type AbstractLinAlgPack::VectorSpaceThyra::dim  )  const [virtual]
 

Implements AbstractLinAlgPack::VectorSpace.

Definition at line 103 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

VectorSpace::vec_mut_ptr_t AbstractLinAlgPack::VectorSpaceThyra::create_member  )  const [virtual]
 

Implements AbstractLinAlgPack::VectorSpace.

Definition at line 109 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

VectorSpace::space_fcty_ptr_t AbstractLinAlgPack::VectorSpaceThyra::small_vec_spc_fcty  )  const [virtual]
 

Reimplemented from AbstractLinAlgPack::VectorSpace.

Definition at line 115 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.

VectorSpace::multi_vec_mut_ptr_t AbstractLinAlgPack::VectorSpaceThyra::create_members size_type  num_vecs  )  const [virtual]
 

Reimplemented from AbstractLinAlgPack::VectorSpace.

Definition at line 121 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:34:38 2008 for MOOCHO/Thyra Adapter Software by doxygen 1.3.9.1