Public Member Functions | Public Attributes | List of all members
MoFEM::RefEntity_change_right_shift Struct Reference

ref mofem entity, right shift More...

#include <src/multi_indices/EntsMultiIndices.hpp>

Public Member Functions

 RefEntity_change_right_shift (const int _shift, const BitRefLevel _mask=BitRefLevel().set())
void operator() (boost::shared_ptr< RefEntity > &e)

Public Attributes

int shift
BitRefLevel mask

Detailed Description

ref mofem entity, right shift

Definition at line 555 of file EntsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ RefEntity_change_right_shift()

MoFEM::RefEntity_change_right_shift::RefEntity_change_right_shift ( const int  _shift,
const BitRefLevel  _mask = BitRefLevel().set() 

Definition at line 558 of file EntsMultiIndices.hpp.

Member Function Documentation

◆ operator()()

void MoFEM::RefEntity_change_right_shift::operator() ( boost::shared_ptr< RefEntity > &  e)

Definition at line 561 of file EntsMultiIndices.hpp.

561  {
562  BitRefLevel bit = *(e->getBitRefLevelPtr());
563  *(e->getBitRefLevelPtr()) = ((bit & mask) >> shift) | (bit & ~mask);
564  };
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition: Types.hpp:50

Member Data Documentation

◆ mask

BitRefLevel MoFEM::RefEntity_change_right_shift::mask

Definition at line 557 of file EntsMultiIndices.hpp.

◆ shift

int MoFEM::RefEntity_change_right_shift::shift

Definition at line 556 of file EntsMultiIndices.hpp.

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