#include <element.hpp>
Public Types | |
typedef size_t | count_type |
typedef element::ElementData *const | ElementDataConstPtr |
typedef element::ElementData * | ElementDataPtr |
typedef unsigned int | index_type |
typedef double | real_type |
typedef PhysicalElement * | TPhysicalElementPtr |
typedef std::vector< Edge * > | Type_EdgePtrVector |
typedef boost::weak_ptr < element::ET > | Type_element_typePtr |
typedef element::ET * | Type_element_typePtr2 |
typedef std::vector< Face * > | Type_FacePtrVector |
typedef std::vector< unsigned short > | Type_LocalIndexVector |
typedef std::vector < element::MaterialIntptData > | Type_materialintpt_vector |
typedef std::vector< std::pair < element::IntegrationNode *, unsigned int > > | Type_MaterialNodeReference |
typedef Point * | Type_NodePtr |
typedef std::vector< Type_NodePtr > | Type_NodePtrVector |
typedef boost::weak_ptr< Section > | Type_SectionPtr |
typedef unsigned int | uint |
Public Member Functions | |
Element (const index_type &part_index, const index_type &the_index, const Type_element_typePtr &the_type, const Type_NodePtrVector &the_nodes) | |
const Type_EdgePtrVector & | elementEdges () const |
returns the edges of the element | |
const Type_FacePtrVector & | elementFaces () const |
returns the faces of the element | |
const Type_NodePtrVector & | elementNodes () const |
returns the nodes of the element | |
const element::ET & | elementType () const |
returns the element type: | |
const std::string & | getIdent () const |
returns the ident of this point: | |
index_type & | getIndex () |
sets the index of this element: | |
const index_type & | getIndex () const |
returns the element index: | |
const Type_LocalIndexVector & | getLocalElementAtNode () const |
a getter for local_element_at_node | |
void | init (const bool &checkOnSurface=false) |
This method initializes the element. Must be called after creation. | |
index_type & | part_index () |
sets the index of this element: | |
const index_type & | part_index () const |
returns the part index: | |
TPhysicalElementPtr & | physical_element () |
const TPhysicalElementPtr & | physical_element () const |
void | prepareDeletion () |
This is called prior deleting the boost::shared_ptr of this object. It removes this element from asoociated nodes/edges/faces. It must be called before destrying the shared_ptr because all references belong to this shared_ptr! | |
void | prepareDeletionByCleaningTopologicalContainers () |
prepares deletion of the element (special) It cleans all containers which collect topological neighbours, i.e. faces and edges, but without deleting their instances. When calling this method before the destructor, the destructor won't update the topological information of the neighbours | |
Type_element_typePtr2 & | setElementType () |
a setter for the element type (careful!) | |
void | setIdent (std::string &s) |
sets the ident of this point: | |
Type_LocalIndexVector & | setLocalElementAtNode () |
a setter for local_element_at_node | |
Protected Attributes | |
Type_EdgePtrVector | edges |
the edges being part of this element | |
Type_FacePtrVector | faces |
the faces being part of this element | |
std::string | ident |
a possible identifier string | |
index_type | index |
the element index (ident): | |
Type_LocalIndexVector | local_element_at_node |
index_type | m_part_index |
the index of the associated Part: | |
TPhysicalElementPtr | m_physical_element |
a pointer (reference) to the physicalElement incarnation (is zero if not set) | |
Type_NodePtrVector | nodes |
the nodes of the element | |
Type_element_typePtr2 | type |
the element type |
void sfem::mesh::Element::init | ( | const bool & | checkOnSurface = false |
) |
This method initializes the element. Must be called after creation.
checkOnSurface | ... if true, then it automatically updates all adjacent topological neighbours regarding on_surface_flag |
Type_LocalIndexVector sfem::mesh::Element::local_element_at_node [protected] |