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

ref mofem entity, left shift More...

#include <src/multi_indices/EntsMultiIndices.hpp>

Collaboration diagram for MoFEM::RefEntity_change_left_shift:

Public Member Functions

 RefEntity_change_left_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, left shift

Definition at line 538 of file EntsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ RefEntity_change_left_shift()

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

Definition at line 541 of file EntsMultiIndices.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 544 of file EntsMultiIndices.hpp.

544  {
545  BitRefLevel bit = *(e->getBitRefLevelPtr());
546  (*e->getBitRefLevelPtr()) = ((bit & mask) << shift) | (bit & ~mask);
547  };
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition: Types.hpp:51

Member Data Documentation

◆ mask

BitRefLevel MoFEM::RefEntity_change_left_shift::mask

Definition at line 540 of file EntsMultiIndices.hpp.

◆ shift

int MoFEM::RefEntity_change_left_shift::shift

Definition at line 539 of file EntsMultiIndices.hpp.

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