www.mooseframework.org
Public Member Functions | List of all members
EFAFragment Class Referenceabstract

#include <EFAFragment.h>

Inheritance diagram for EFAFragment:
[legend]

Public Member Functions

 EFAFragment ()
 
virtual ~EFAFragment ()
 
virtual void switchNode (EFANode *new_node, EFANode *old_node)=0
 
virtual bool containsNode (EFANode *node) const =0
 
virtual unsigned int getNumCuts () const =0
 
virtual unsigned int getNumCutNodes () const =0
 
virtual std::set< EFANode * > getAllNodes () const =0
 
virtual bool isConnected (EFAFragment *other_fragment) const =0
 
virtual void removeInvalidEmbeddedNodes (std::map< unsigned int, EFANode * > &EmbeddedNodes)=0
 
std::vector< EFANode * > getCommonNodes (EFAFragment *other) const
 

Detailed Description

Definition at line 17 of file EFAFragment.h.

Constructor & Destructor Documentation

EFAFragment::EFAFragment ( )

Definition at line 13 of file EFAFragment.C.

13 {}
EFAFragment::~EFAFragment ( )
virtual

Definition at line 15 of file EFAFragment.C.

15 {}

Member Function Documentation

virtual bool EFAFragment::containsNode ( EFANode node) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

virtual std::set<EFANode *> EFAFragment::getAllNodes ( ) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

Referenced by getCommonNodes().

std::vector< EFANode * > EFAFragment::getCommonNodes ( EFAFragment other) const

Definition at line 18 of file EFAFragment.C.

Referenced by EFAElement2D::willCrackTipExtend(), and EFAElement3D::willCrackTipExtend().

19 {
20  std::set<EFANode *> frag1_nodes = getAllNodes();
21  std::set<EFANode *> frag2_nodes = other->getAllNodes();
22  std::vector<EFANode *> common_nodes = Efa::getCommonElems(frag1_nodes, frag2_nodes);
23  return common_nodes;
24 }
std::vector< T > getCommonElems(std::set< T > &v1, std::set< T > &v2)
Definition: EFAFuncs.h:68
virtual std::set< EFANode * > getAllNodes() const =0
virtual unsigned int EFAFragment::getNumCutNodes ( ) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

virtual unsigned int EFAFragment::getNumCuts ( ) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

virtual bool EFAFragment::isConnected ( EFAFragment other_fragment) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

virtual void EFAFragment::removeInvalidEmbeddedNodes ( std::map< unsigned int, EFANode * > &  EmbeddedNodes)
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

virtual void EFAFragment::switchNode ( EFANode new_node,
EFANode old_node 
)
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.


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