Xpetra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xpetra::BlockReorderManager Class Reference

#include <Xpetra_BlockReorderManager.hpp>

Inheritance diagram for Xpetra::BlockReorderManager:
Xpetra::BlockReorderLeaf

Public Member Functions

virtual Teuchos::RCP
< BlockReorderManager
Copy () const
 returns copy of this object More...
 
virtual void SetNumBlocks (size_t sz)
 Sets number of subblocks. More...
 
virtual size_t GetNumBlocks () const
 Returns number of subblocks. More...
 
virtual void SetBlock (int blockIndex, int reorder)
 Sets the subblock to a specific index value. More...
 
virtual void SetBlock (int blockIndex, const Teuchos::RCP< BlockReorderManager > &reorder)
 Sets the subblock to a specific index value. More...
 
virtual const Teuchos::RCP
< BlockReorderManager
GetBlock (int blockIndex)
 Get a particular block. If there is no block at this index location return a new one. More...
 
virtual const Teuchos::RCP
< const BlockReorderManager
GetBlock (int blockIndex) const
 Get a particular block. If there is no block at this index location return a new one. More...
 
virtual std::string toString () const
 for sanities sake, print a readable string More...
 
virtual int LargestIndex () const
 returns largest index in this BlockReorderManager class More...
 

Protected Attributes

std::vector< Teuchos::RCP
< BlockReorderManager > > 
children_
 definitions of the subblocks More...
 

Constructors

 BlockReorderManager ()
 Basic empty constructor. More...
 
 BlockReorderManager (const BlockReorderManager &bmm)
 Copy constructor. More...
 
virtual ~BlockReorderManager ()
 empty destructor More...
 

Detailed Description

Definition at line 18 of file Xpetra_BlockReorderManager.hpp.

Constructor & Destructor Documentation

Xpetra::BlockReorderManager::BlockReorderManager ( )
inline

Basic empty constructor.

Definition at line 23 of file Xpetra_BlockReorderManager.hpp.

Xpetra::BlockReorderManager::BlockReorderManager ( const BlockReorderManager bmm)
inline

Copy constructor.

Definition at line 27 of file Xpetra_BlockReorderManager.hpp.

virtual Xpetra::BlockReorderManager::~BlockReorderManager ( )
inlinevirtual

empty destructor

Definition at line 33 of file Xpetra_BlockReorderManager.hpp.

Member Function Documentation

virtual Teuchos::RCP<BlockReorderManager> Xpetra::BlockReorderManager::Copy ( ) const
inlinevirtual

returns copy of this object

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 38 of file Xpetra_BlockReorderManager.hpp.

virtual void Xpetra::BlockReorderManager::SetNumBlocks ( size_t  sz)
inlinevirtual

Sets number of subblocks.

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 43 of file Xpetra_BlockReorderManager.hpp.

virtual size_t Xpetra::BlockReorderManager::GetNumBlocks ( ) const
inlinevirtual

Returns number of subblocks.

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 49 of file Xpetra_BlockReorderManager.hpp.

void Xpetra::BlockReorderManager::SetBlock ( int  blockIndex,
int  reorder 
)
virtual

Sets the subblock to a specific index value.

Sets the subblock to a specific index value

Parameters
[in]blockIndex,:the subblock to be set
[in]reorder,:the value of the index of this subblock

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 14 of file Xpetra_BlockReorderManager.cpp.

void Xpetra::BlockReorderManager::SetBlock ( int  blockIndex,
const Teuchos::RCP< BlockReorderManager > &  reorder 
)
virtual

Sets the subblock to a specific index value.

Sets the subblock to a specific index value

Parameters
[in]blockIndex,:the subblock to be set
[in]reorder,:reorder manager for nested reordering

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 20 of file Xpetra_BlockReorderManager.cpp.

virtual const Teuchos::RCP<BlockReorderManager> Xpetra::BlockReorderManager::GetBlock ( int  blockIndex)
inlinevirtual

Get a particular block. If there is no block at this index location return a new one.

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 77 of file Xpetra_BlockReorderManager.hpp.

virtual const Teuchos::RCP<const BlockReorderManager> Xpetra::BlockReorderManager::GetBlock ( int  blockIndex) const
inlinevirtual

Get a particular block. If there is no block at this index location return a new one.

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 86 of file Xpetra_BlockReorderManager.hpp.

virtual std::string Xpetra::BlockReorderManager::toString ( ) const
inlinevirtual

for sanities sake, print a readable string

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 92 of file Xpetra_BlockReorderManager.hpp.

virtual int Xpetra::BlockReorderManager::LargestIndex ( ) const
inlinevirtual

returns largest index in this BlockReorderManager class

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 107 of file Xpetra_BlockReorderManager.hpp.

Member Data Documentation

std::vector<Teuchos::RCP<BlockReorderManager> > Xpetra::BlockReorderManager::children_
protected

definitions of the subblocks

Definition at line 120 of file Xpetra_BlockReorderManager.hpp.


The documentation for this class was generated from the following files: