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/RefEntsMultiIndices.hpp>

Collaboration diagram for MoFEM::RefEntity_change_right_shift:

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 840 of file RefEntsMultiIndices.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 843 of file RefEntsMultiIndices.hpp.

845  : shift(_shift), mask(_mask) {}

Member Function Documentation

◆ operator()()

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

Definition at line 846 of file RefEntsMultiIndices.hpp.

846  {
847  BitRefLevel bit = *(e->getBitRefLevelPtr());
848  *(e->getBitRefLevelPtr()) = ((bit & mask) >> shift) | (bit & ~mask);
849  };

Member Data Documentation

◆ mask

BitRefLevel MoFEM::RefEntity_change_right_shift::mask

Definition at line 842 of file RefEntsMultiIndices.hpp.

◆ shift

int MoFEM::RefEntity_change_right_shift::shift

Definition at line 841 of file RefEntsMultiIndices.hpp.

The documentation for this struct was generated from the following file:
auto bit
set bit
Definition: hanging_node_approx.cpp:75
int shift
Definition: RefEntsMultiIndices.hpp:841
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition: Types.hpp:40
BitRefLevel mask
Definition: RefEntsMultiIndices.hpp:842