Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra::BlockReorderManager Class Reference

#include <Xpetra_BlockReorderManager.hpp>

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

Constructors

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

Detailed Description

Definition at line 55 of file Xpetra_BlockReorderManager.hpp.

Constructor & Destructor Documentation

◆ BlockReorderManager() [1/2]

Xpetra::BlockReorderManager::BlockReorderManager ( )
inline

Basic empty constructor.

Definition at line 60 of file Xpetra_BlockReorderManager.hpp.

◆ BlockReorderManager() [2/2]

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

Copy constructor.

Definition at line 63 of file Xpetra_BlockReorderManager.hpp.

◆ ~BlockReorderManager()

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

empty destructor

Definition at line 69 of file Xpetra_BlockReorderManager.hpp.

Member Function Documentation

◆ Copy()

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

returns copy of this object

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 74 of file Xpetra_BlockReorderManager.hpp.

◆ SetNumBlocks()

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

Sets number of subblocks.

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 79 of file Xpetra_BlockReorderManager.hpp.

◆ GetNumBlocks()

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

Returns number of subblocks.

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 84 of file Xpetra_BlockReorderManager.hpp.

◆ SetBlock() [1/2]

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]blockIndexthe subblock to be set
[in]reorderthe value of the index of this subblock

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 6 of file Xpetra_BlockReorderManager.cpp.

◆ SetBlock() [2/2]

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]blockIndexthe subblock to be set
[in]reorderreorder manager for nested reordering

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 12 of file Xpetra_BlockReorderManager.cpp.

◆ GetBlock() [1/2]

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 112 of file Xpetra_BlockReorderManager.hpp.

◆ GetBlock() [2/2]

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 121 of file Xpetra_BlockReorderManager.hpp.

◆ toString()

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

for sanities sake, print a readable string

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 127 of file Xpetra_BlockReorderManager.hpp.

◆ LargestIndex()

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

returns largest index in this BlockReorderManager class

Reimplemented in Xpetra::BlockReorderLeaf.

Definition at line 142 of file Xpetra_BlockReorderManager.hpp.

Member Data Documentation

◆ children_

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

definitions of the subblocks

Definition at line 155 of file Xpetra_BlockReorderManager.hpp.


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