v0.8.16
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
MoFEM::RefElement Struct Reference

keeps data about abstract refined finite element More...

#include <src/multi_indices/FEMultiIndices.hpp>

Inheritance diagram for MoFEM::RefElement:
[legend]
Collaboration diagram for MoFEM::RefElement:
[legend]

Public Types

typedef interface_RefEntity< RefEntityinterface_type_RefEntity
 

Public Member Functions

 RefElement (const boost::shared_ptr< RefEntity > &ref_ent_ptr)
 
virtual const BitRefEdgesgetBitRefEdges () const
 
virtual int getBitRefEdgesUlong () const
 
SideNumber_multiIndexgetSideNumberTable () const
 
virtual const boost::shared_ptr< SideNumber > & getSideNumberPtr (const EntityHandle ent) const
 
boost::shared_ptr< RefEntity > & getRefEntityPtr () const
 Get pointer to RefEntity. More...
 
- Public Member Functions inherited from MoFEM::interface_RefEntity< RefEntity >
 interface_RefEntity (const boost::shared_ptr< RefEntity > &sptr)
 
 interface_RefEntity (const interface_RefEntity< RefEntity > &interface)
 
virtual ~interface_RefEntity ()
 
boost::shared_ptr< BasicEntityData > & getBasicDataPtr ()
 
const boost::shared_ptr< BasicEntityData > & getBasicDataPtr () const
 
EntityHandle getRefEnt () const
 
EntityType getParentEntType () const
 
EntityHandle getParentEnt () const
 
BitRefLevelgetBitRefLevelPtr () const
 
const BitRefLevelgetBitRefLevel () const
 
unsigned long int getBitRefLevelULong () const
 
EntityType getEntType () const
 
EntityID getEntId () const
 
EntityHandle getOwnerEnt () const
 
EntityHandlegetOwnerEnt ()
 
int getOwnerProc () const
 
intgetOwnerProc ()
 
int getPartProc () const
 
intgetPartProc ()
 
unsigned char getPStatus () const
 
intgetSharingProcsPtr () const
 
EntityHandlegetSharingHandlersPtr () const
 
boost::shared_ptr< RefEntity > & getRefEntityPtr () const
 

Public Attributes

SideNumber_multiIndex side_number_table
 
- Public Attributes inherited from MoFEM::interface_RefEntity< RefEntity >
boost::shared_ptr< RefEntitysPtr
 

Static Public Attributes

static BitRefEdges DummyBitRefEdges = BitRefEdges(0)
 
static const boost::shared_ptr< SideNumber > nullSideNumber
 

Friends

std::ostream & operator<< (std::ostream &os, const RefElement &e)
 

Detailed Description

keeps data about abstract refined finite element

Definition at line 29 of file FEMultiIndices.hpp.

Member Typedef Documentation

◆ interface_type_RefEntity

Definition at line 31 of file FEMultiIndices.hpp.

Constructor & Destructor Documentation

◆ RefElement()

MoFEM::RefElement::RefElement ( const boost::shared_ptr< RefEntity > &  ref_ent_ptr)

Definition at line 39 of file FEMultiIndices.cpp.

40  : interface_RefEntity<RefEntity>(ref_ent_ptr) {}

Member Function Documentation

◆ getBitRefEdges()

virtual const BitRefEdges& MoFEM::RefElement::getBitRefEdges ( ) const
virtual

Reimplemented in MoFEM::RefElement_TET, and MoFEM::RefElement_PRISM.

Definition at line 37 of file FEMultiIndices.hpp.

37 { return DummyBitRefEdges; }
static BitRefEdges DummyBitRefEdges

◆ getBitRefEdgesUlong()

virtual int MoFEM::RefElement::getBitRefEdgesUlong ( ) const
virtual

Reimplemented in MoFEM::RefElement_TET, and MoFEM::RefElement_PRISM.

Definition at line 39 of file FEMultiIndices.hpp.

39 { return 0; }

◆ getRefEntityPtr()

boost::shared_ptr<RefEntity>& MoFEM::RefElement::getRefEntityPtr ( ) const

Get pointer to RefEntity.

Deprecated:
First argument is no longer needed

Definition at line 72 of file FEMultiIndices.hpp.

72  {
73  return this->sPtr;
74  }
boost::shared_ptr< RefEntity > sPtr

◆ getSideNumberPtr()

virtual const boost::shared_ptr<SideNumber>& MoFEM::RefElement::getSideNumberPtr ( const EntityHandle  ent) const
virtual

Reimplemented in MoFEM::RefElement_VERTEX, MoFEM::RefElement_EDGE, MoFEM::RefElement_TRI, MoFEM::RefElement_TET, MoFEM::RefElement_PRISM, and MoFEM::RefElement_MESHSET.

Definition at line 54 of file FEMultiIndices.hpp.

54  {
55  NOT_USED(ent);
56  return nullSideNumber;
57  };
#define NOT_USED(x)
Definition: definitions.h:299
static const boost::shared_ptr< SideNumber > nullSideNumber

◆ getSideNumberTable()

SideNumber_multiIndex& MoFEM::RefElement::getSideNumberTable ( ) const

Definition at line 41 of file FEMultiIndices.hpp.

41  {
42  return const_cast<SideNumber_multiIndex &>(side_number_table);
43  }
SideNumber_multiIndex side_number_table
multi_index_container< boost::shared_ptr< SideNumber >, indexed_by< hashed_unique< member< SideNumber, EntityHandle, &SideNumber::ent > >, ordered_non_unique< composite_key< SideNumber, const_mem_fun< SideNumber, EntityType, &SideNumber::getEntType >, member< SideNumber, char, &SideNumber::side_number > > >, ordered_non_unique< const_mem_fun< SideNumber, EntityType, &SideNumber::getEntType > > > > SideNumber_multiIndex
SideNumber_multiIndex for SideNumber.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const RefElement e 
)
friend

Definition at line 42 of file FEMultiIndices.cpp.

42  {
43  os << " ref egdes " << e.getBitRefEdges();
44  os << " " << *(e.sPtr);
45  return os;
46 }

Member Data Documentation

◆ DummyBitRefEdges

BitRefEdges MoFEM::RefElement::DummyBitRefEdges = BitRefEdges(0)
static

Definition at line 33 of file FEMultiIndices.hpp.

◆ nullSideNumber

const boost::shared_ptr< SideNumber > MoFEM::RefElement::nullSideNumber
static
Initial value:
=
boost::shared_ptr<SideNumber>()
Deprecated:
Use getSideNumberTable() instead

Definition at line 51 of file FEMultiIndices.hpp.

◆ side_number_table

SideNumber_multiIndex MoFEM::RefElement::side_number_table

Definition at line 35 of file FEMultiIndices.hpp.


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