Flow123d  release_3.0.0-1166-g21aa698
Public Member Functions | Private Attributes | Friends | List of all members
DHCellSide Class Reference

Side accessor allows to iterate over sides of DOF handler cell. More...

#include <dh_cell_accessor.hh>

Collaboration diagram for DHCellSide:
Collaboration graph
[legend]

Public Member Functions

 DHCellSide ()
 Default invalid accessor. More...
 
 DHCellSide (const DHCellAccessor &dh_cell_accessor, unsigned int side_idx)
 
virtual bool is_valid () const
 Check validity of accessor (see default constructor) More...
 
Side side () const
 Return Side of given cell and side_idx. More...
 
const DHCellAccessor cell () const
 Return DHCellAccessor appropriate to the side. More...
 
unsigned int dim () const
 Return dimension of element appropriate to the side. More...
 
arma::vec3 centre () const
 Side centre. More...
 
ElementAccessor< 3 > element () const
 
unsigned int elem_idx () const
 
Boundarycond () const
 
unsigned int side_idx () const
 
double measure () const
 
double diameter () const
 
RangeConvert< DHEdgeSide, DHCellSideedge_sides () const
 Returns range of all sides looped over common Edge. More...
 
unsigned int n_edge_sides () const
 
virtual void inc ()
 Iterates to next local element. More...
 
bool operator== (const DHCellSide &other)
 Comparison of accessors. More...
 
bool operator!= (const DHCellSide &other)
 

Private Attributes

DHCellAccessor dh_cell_accessor_
 Appropriate DHCellAccessor. More...
 
unsigned int side_idx_
 Index of side. More...
 

Friends

class DHEdgeSide
 

Detailed Description

Side accessor allows to iterate over sides of DOF handler cell.

Iterator is defined by:

Definition at line 158 of file dh_cell_accessor.hh.

Constructor & Destructor Documentation

DHCellSide::DHCellSide ( )
inline

Default invalid accessor.

Create invalid dh_cell_accessor_.

Definition at line 166 of file dh_cell_accessor.hh.

DHCellSide::DHCellSide ( const DHCellAccessor dh_cell_accessor,
unsigned int  side_idx 
)
inline

DOF cell side accessor.

Definition at line 171 of file dh_cell_accessor.hh.

Member Function Documentation

const DHCellAccessor DHCellSide::cell ( ) const
inline

Return DHCellAccessor appropriate to the side.

Definition at line 186 of file dh_cell_accessor.hh.

arma::vec3 DHCellSide::centre ( ) const
inline

Side centre.

Definition at line 196 of file dh_cell_accessor.hh.

Boundary* DHCellSide::cond ( ) const
inline

Definition at line 208 of file dh_cell_accessor.hh.

double DHCellSide::diameter ( ) const
inline

Definition at line 220 of file dh_cell_accessor.hh.

unsigned int DHCellSide::dim ( ) const
inline

Return dimension of element appropriate to the side.

Definition at line 191 of file dh_cell_accessor.hh.

RangeConvert< DHEdgeSide, DHCellSide > DHCellSide::edge_sides ( ) const
inline

Returns range of all sides looped over common Edge.

Definition at line 446 of file dh_cell_accessor.hh.

Here is the caller graph for this function:

unsigned int DHCellSide::elem_idx ( ) const
inline

Definition at line 204 of file dh_cell_accessor.hh.

Here is the caller graph for this function:

ElementAccessor<3> DHCellSide::element ( ) const
inline

Definition at line 200 of file dh_cell_accessor.hh.

virtual void DHCellSide::inc ( )
inlinevirtual

Iterates to next local element.

Definition at line 236 of file dh_cell_accessor.hh.

virtual bool DHCellSide::is_valid ( ) const
inlinevirtual

Check validity of accessor (see default constructor)

Definition at line 175 of file dh_cell_accessor.hh.

double DHCellSide::measure ( ) const
inline

Definition at line 216 of file dh_cell_accessor.hh.

unsigned int DHCellSide::n_edge_sides ( ) const
inline

Returns total number of sides appropriate to Edge that owns actual cell side.

return empty range if no element connected to Edge is local

Definition at line 452 of file dh_cell_accessor.hh.

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

Definition at line 245 of file dh_cell_accessor.hh.

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

Comparison of accessors.

Definition at line 241 of file dh_cell_accessor.hh.

Side DHCellSide::side ( ) const
inline

Return Side of given cell and side_idx.

Definition at line 180 of file dh_cell_accessor.hh.

unsigned int DHCellSide::side_idx ( ) const
inline

Definition at line 212 of file dh_cell_accessor.hh.

Friends And Related Function Documentation

friend class DHEdgeSide
friend

Definition at line 255 of file dh_cell_accessor.hh.

Member Data Documentation

DHCellAccessor DHCellSide::dh_cell_accessor_
private

Appropriate DHCellAccessor.

Definition at line 251 of file dh_cell_accessor.hh.

unsigned int DHCellSide::side_idx_
private

Index of side.

Definition at line 253 of file dh_cell_accessor.hh.


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