sfem::mesh::Element Class Reference

... the base class for mesh points More...

#include <element.hpp>

Collaboration diagram for sfem::mesh::Element:

Collaboration graph
[legend]

List of all members.

Public Types

typedef size_t count_type
typedef element::ElementData *const ElementDataConstPtr
typedef element::ElementDataElementDataPtr
typedef unsigned int index_type
typedef double real_type
typedef PhysicalElementTPhysicalElementPtr
typedef std::vector< Edge * > Type_EdgePtrVector
typedef boost::weak_ptr
< element::ET
Type_element_typePtr
typedef element::ETType_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 PointType_NodePtr
typedef std::vector< Type_NodePtrType_NodePtrVector
typedef boost::weak_ptr< SectionType_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::ETelementType () 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:
TPhysicalElementPtrphysical_element ()
const TPhysicalElementPtrphysical_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_typePtr2setElementType ()
 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


Detailed Description

... the base class for mesh points

Member Function Documentation

void sfem::mesh::Element::init ( const bool &  checkOnSurface = false  ) 

This method initializes the element. Must be called after creation.

Parameters:
checkOnSurface ... if true, then it automatically updates all adjacent topological neighbours regarding on_surface_flag


Member Data Documentation

Type_LocalIndexVector sfem::mesh::Element::local_element_at_node [protected]

is the index of this element at the given node. For example, given local node 'i', the node is nodes[i]. nodes[i] contains a list of connected elements. local_element_at_node[i] is the index of this element within that list.


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

Generated on Wed Nov 17 17:35:54 2010 for 'sfem' Module Programming Interface by  doxygen 1.5.6