Flow123d  release_2.2.0-914-gf1a3a4f
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
RegionIdx Class Reference

#include <region.hh>

Inheritance diagram for RegionIdx:
Inheritance graph
[legend]

Public Member Functions

 RegionIdx ()
 Default region is undefined/invalid. More...
 
bool is_boundary () const
 Returns true if it is a Boundary region and false if it is a Bulk region. More...
 
bool is_valid () const
 Returns false if the region has undefined/invalid value. More...
 
unsigned int idx () const
 Returns a global index of the region. More...
 
unsigned int boundary_idx () const
 Returns index of the region in the boundary set. More...
 
unsigned int bulk_idx () const
 Returns index of the region in the bulk set. More...
 
bool operator== (const RegionIdx &other) const
 Equality comparison operators for regions. More...
 
bool operator!= (const RegionIdx &other) const
 Equality comparison operators for regions. More...
 

Protected Member Functions

 RegionIdx (unsigned int index)
 

Protected Attributes

unsigned int idx_
 

Static Protected Attributes

static const unsigned int undefined =0xffffffff
 index for undefined region More...
 

Friends

class Region
 

Detailed Description

Base class that contains information about region: 1) contains integer value that specifies region 2) detects if region is valid 3) detects if the region is the bulk or boundary 4) detects boundary index of boundary region or bulk index of bulk region

Definition at line 66 of file region.hh.

Constructor & Destructor Documentation

RegionIdx::RegionIdx ( )
inline

Default region is undefined/invalid.

Definition at line 70 of file region.hh.

RegionIdx::RegionIdx ( unsigned int  index)
inlineprotected

Create accessor from the index. Should be private since implementation specific. We need some way how to iterate over: all regions, boundary regions, bulk regions - solution: have specific RegionSets for these three cases.

Definition at line 109 of file region.hh.

Member Function Documentation

unsigned int RegionIdx::boundary_idx ( ) const
inline

Returns index of the region in the boundary set.

Definition at line 85 of file region.hh.

Here is the caller graph for this function:

unsigned int RegionIdx::bulk_idx ( ) const
inline

Returns index of the region in the bulk set.

Definition at line 90 of file region.hh.

Here is the caller graph for this function:

unsigned int RegionIdx::idx ( ) const
inline

Returns a global index of the region.

Definition at line 81 of file region.hh.

Here is the caller graph for this function:

bool RegionIdx::is_boundary ( ) const
inline

Returns true if it is a Boundary region and false if it is a Bulk region.

Definition at line 73 of file region.hh.

Here is the caller graph for this function:

bool RegionIdx::is_valid ( ) const
inline

Returns false if the region has undefined/invalid value.

Definition at line 77 of file region.hh.

Here is the caller graph for this function:

bool RegionIdx::operator!= ( const RegionIdx other) const
inline

Equality comparison operators for regions.

Definition at line 99 of file region.hh.

bool RegionIdx::operator== ( const RegionIdx other) const
inline

Equality comparison operators for regions.

Definition at line 95 of file region.hh.

Friends And Related Function Documentation

friend class Region
friend

Definition at line 120 of file region.hh.

Member Data Documentation

unsigned int RegionIdx::idx_
protected

Internal region index. Regions of one RegionDB (corresponding to one mesh) forms more or less continuous sequence.

Definition at line 115 of file region.hh.

const unsigned int RegionIdx::undefined =0xffffffff
staticprotected

index for undefined region

Definition at line 118 of file region.hh.


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