Public Member Functions | Private Attributes
vtkPV3blockMesh::arrayRange Class Reference

Bookkeeping for GUI checklists and the multi-block organization. More...

Public Member Functions

 arrayRange (const char *name, const int blockNo=0)
 
int block () const
 Return the block holding these datasets. More...
 
int block (int blockNo)
 Assign block number, return previous value. More...
 
const char * name () const
 Return block name. More...
 
int start () const
 Return array start index. More...
 
int end () const
 Return array end index. More...
 
int size () const
 Return sublist size. More...
 
bool empty () const
 
void reset (const int startAt=0)
 Reset the size to zero and optionally assign a new start. More...
 
void operator+= (const int n)
 Increment the size. More...
 

Private Attributes

const char * name_
 
int block_
 
int start_
 
int size_
 

Detailed Description

Bookkeeping for GUI checklists and the multi-block organization.

Definition at line 89 of file vtkPV3blockMesh.H.

Constructor & Destructor Documentation

◆ arrayRange()

arrayRange ( const char *  name,
const int  blockNo = 0 
)
inline

Definition at line 98 of file vtkPV3blockMesh.H.

Member Function Documentation

◆ block() [1/2]

int block ( ) const
inline

Return the block holding these datasets.

Definition at line 107 of file vtkPV3blockMesh.H.

References vtkPV3blockMesh::arrayRange::block_.

◆ block() [2/2]

int block ( int  blockNo)
inline

Assign block number, return previous value.

Definition at line 113 of file vtkPV3blockMesh.H.

References vtkPV3blockMesh::arrayRange::block_.

◆ name()

const char* name ( ) const
inline

Return block name.

Definition at line 121 of file vtkPV3blockMesh.H.

References vtkPV3blockMesh::arrayRange::name_.

◆ start()

int start ( ) const
inline

Return array start index.

Definition at line 127 of file vtkPV3blockMesh.H.

References vtkPV3blockMesh::arrayRange::start_.

◆ end()

int end ( ) const
inline

Return array end index.

Definition at line 133 of file vtkPV3blockMesh.H.

References vtkPV3blockMesh::arrayRange::size_, and vtkPV3blockMesh::arrayRange::start_.

◆ size()

int size ( ) const
inline

Return sublist size.

Definition at line 139 of file vtkPV3blockMesh.H.

References vtkPV3blockMesh::arrayRange::size_.

◆ empty()

bool empty ( ) const
inline

Definition at line 144 of file vtkPV3blockMesh.H.

References vtkPV3blockMesh::arrayRange::size_.

◆ reset()

void reset ( const int  startAt = 0)
inline

Reset the size to zero and optionally assign a new start.

Definition at line 150 of file vtkPV3blockMesh.H.

References vtkPV3blockMesh::arrayRange::size_, and vtkPV3blockMesh::arrayRange::start_.

◆ operator+=()

void operator+= ( const int  n)
inline

Increment the size.

Definition at line 157 of file vtkPV3blockMesh.H.

References n, and vtkPV3blockMesh::arrayRange::size_.

Field Documentation

◆ name_

const char* name_
private

Definition at line 91 of file vtkPV3blockMesh.H.

Referenced by vtkPV3blockMesh::arrayRange::name().

◆ block_

int block_
private

Definition at line 92 of file vtkPV3blockMesh.H.

Referenced by vtkPV3blockMesh::arrayRange::block().

◆ start_

int start_
private

◆ size_

int size_
private

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