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

#include <Xpetra_BlockReorderManager.hpp>

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

Public Member Functions

 BlockReorderLeaf (int ind)
 
 BlockReorderLeaf (const BlockReorderLeaf &brl)
 
virtual Teuchos::RCP< BlockReorderManagerCopy () const
 returns copy of this object
 
virtual size_t GetNumBlocks () const
 Returns number of subblocks.
 
virtual void SetNumBlocks (size_t)
 Sets number of subblocks.
 
virtual void SetBlock (int, int)
 Sets the subblock to a specific index value.
 
virtual void SetBlock (int, const Teuchos::RCP< BlockReorderManager > &)
 Sets the subblock to a specific index value.
 
virtual const Teuchos::RCP< BlockReorderManagerGetBlock (int)
 Get a particular block. If there is no block at this index location return a new one.
 
virtual const Teuchos::RCP< const BlockReorderManagerGetBlock (int) const
 Get a particular block. If there is no block at this index location return a new one.
 
int GetIndex () const
 Get the index that is stored in this block/leaf.
 
virtual std::string toString () const
 for sanities sake, print a readable string
 
virtual int LargestIndex () const
 returns largest index in this BlockReorderManager class
 
- Public Member Functions inherited from Xpetra::BlockReorderManager
 BlockReorderManager ()
 Basic empty constructor.
 
 BlockReorderManager (const BlockReorderManager &bmm)
 Copy constructor.
 
virtual ~BlockReorderManager ()
 empty destructor
 

Protected Attributes

int value_
 The value of the index for this leaf.
 
- Protected Attributes inherited from Xpetra::BlockReorderManager
std::vector< Teuchos::RCP< BlockReorderManager > > children_
 definitions of the subblocks
 

Private Member Functions

 BlockReorderLeaf ()
 

Detailed Description

Definition at line 158 of file Xpetra_BlockReorderManager.hpp.

Constructor & Destructor Documentation

◆ BlockReorderLeaf() [1/3]

Xpetra::BlockReorderLeaf::BlockReorderLeaf ( int ind)
inline

Definition at line 160 of file Xpetra_BlockReorderManager.hpp.

◆ BlockReorderLeaf() [2/3]

Xpetra::BlockReorderLeaf::BlockReorderLeaf ( const BlockReorderLeaf & brl)
inline

Definition at line 161 of file Xpetra_BlockReorderManager.hpp.

◆ BlockReorderLeaf() [3/3]

Xpetra::BlockReorderLeaf::BlockReorderLeaf ( )
inlineprivate

Definition at line 188 of file Xpetra_BlockReorderManager.hpp.

Member Function Documentation

◆ Copy()

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

returns copy of this object

Reimplemented from Xpetra::BlockReorderManager.

Definition at line 163 of file Xpetra_BlockReorderManager.hpp.

◆ GetNumBlocks()

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

Returns number of subblocks.

Reimplemented from Xpetra::BlockReorderManager.

Definition at line 167 of file Xpetra_BlockReorderManager.hpp.

◆ SetNumBlocks()

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

Sets number of subblocks.

Reimplemented from Xpetra::BlockReorderManager.

Definition at line 168 of file Xpetra_BlockReorderManager.hpp.

◆ SetBlock() [1/2]

virtual void Xpetra::BlockReorderLeaf::SetBlock ( int blockIndex,
int reorder )
inlinevirtual

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 from Xpetra::BlockReorderManager.

Definition at line 169 of file Xpetra_BlockReorderManager.hpp.

◆ SetBlock() [2/2]

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

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 from Xpetra::BlockReorderManager.

Definition at line 170 of file Xpetra_BlockReorderManager.hpp.

◆ GetBlock() [1/2]

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

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

Reimplemented from Xpetra::BlockReorderManager.

Definition at line 171 of file Xpetra_BlockReorderManager.hpp.

◆ GetBlock() [2/2]

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

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

Reimplemented from Xpetra::BlockReorderManager.

Definition at line 174 of file Xpetra_BlockReorderManager.hpp.

◆ GetIndex()

int Xpetra::BlockReorderLeaf::GetIndex ( ) const
inline

Get the index that is stored in this block/leaf.

Definition at line 178 of file Xpetra_BlockReorderManager.hpp.

◆ toString()

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

for sanities sake, print a readable string

Reimplemented from Xpetra::BlockReorderManager.

Definition at line 179 of file Xpetra_BlockReorderManager.hpp.

◆ LargestIndex()

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

returns largest index in this BlockReorderManager class

Reimplemented from Xpetra::BlockReorderManager.

Definition at line 182 of file Xpetra_BlockReorderManager.hpp.

Member Data Documentation

◆ value_

int Xpetra::BlockReorderLeaf::value_
protected

The value of the index for this leaf.

Definition at line 185 of file Xpetra_BlockReorderManager.hpp.


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