concepts::IndexRange Struct Reference

Class for a range of global indices. More...

#include <space.hh>

Public Member Functions

uint dim () const
 Number of indices. More...
 
 IndexRange ()
 Default constructor. More...
 
 IndexRange (uint idx)
 Constructor, where is only on index assigned. More...
 
 IndexRange (uint idxBegin, uint idxEnd)
 Constructor for several successive indices. More...
 
std::set< uint > operator() ()
 Returns a set of the indices. More...
 
bool operator< (const IndexRange &i) const
 Comparison of beginning indices. More...
 
IndexRangeoperator= (const IndexRange &i)
 Assigment operator. More...
 
IndexRangeoperator= (IndexRange &i)
 
IndexRangeoperator= (uint i)
 Assigment operator. More...
 
bool operator== (const IndexRange &i) const
 Comparison. More...
 
bool operator== (uint i) const
 Comparison with beginning index. More...
 

Public Attributes

uint idx_ [2]
 Begin and end of a unique range of indices of element. More...
 

Detailed Description

Class for a range of global indices.

Basis functions assigned to an edge, face or cell get successive indices. The number of basis functions per entity differs from the particular elements, and wouldn't be ascertainable from assigned polynomial degree alone.

Author
Kersten Schmidt, 2005

Definition at line 226 of file space.hh.

Constructor & Destructor Documentation

◆ IndexRange() [1/3]

concepts::IndexRange::IndexRange ( )
inline

Default constructor.

Definition at line 235 of file space.hh.

◆ IndexRange() [2/3]

concepts::IndexRange::IndexRange ( uint  idx)

Constructor, where is only on index assigned.

◆ IndexRange() [3/3]

concepts::IndexRange::IndexRange ( uint  idxBegin,
uint  idxEnd 
)

Constructor for several successive indices.

Member Function Documentation

◆ dim()

uint concepts::IndexRange::dim ( ) const
inline

Number of indices.

Definition at line 254 of file space.hh.

◆ operator()()

std::set<uint> concepts::IndexRange::operator() ( )

Returns a set of the indices.

◆ operator<()

bool concepts::IndexRange::operator< ( const IndexRange i) const

Comparison of beginning indices.

◆ operator=() [1/3]

IndexRange& concepts::IndexRange::operator= ( const IndexRange i)

Assigment operator.

◆ operator=() [2/3]

IndexRange& concepts::IndexRange::operator= ( IndexRange i)

◆ operator=() [3/3]

IndexRange& concepts::IndexRange::operator= ( uint  i)

Assigment operator.

◆ operator==() [1/2]

bool concepts::IndexRange::operator== ( const IndexRange i) const

Comparison.

◆ operator==() [2/2]

bool concepts::IndexRange::operator== ( uint  i) const

Comparison with beginning index.

Member Data Documentation

◆ idx_

uint concepts::IndexRange::idx_[2]

Begin and end of a unique range of indices of element.

They are used when assembling different elements of a space and used to enforce continuity of global basis functions across element boundaries.

Definition at line 232 of file space.hh.


The documentation for this struct was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich