www.mooseframework.org
Public Member Functions | List of all members
BndNodeCompare Class Reference

Helper class for sorting Boundary Nodes so that we always get the same order of application for boundary conditions. More...

Public Member Functions

 BndNodeCompare ()
 
bool operator() (const BndNode *const &lhs, const BndNode *const &rhs)
 

Detailed Description

Helper class for sorting Boundary Nodes so that we always get the same order of application for boundary conditions.

Definition at line 604 of file MooseMesh.C.

Constructor & Destructor Documentation

BndNodeCompare::BndNodeCompare ( )
inline

Definition at line 607 of file MooseMesh.C.

607 {}

Member Function Documentation

bool BndNodeCompare::operator() ( const BndNode *const &  lhs,
const BndNode *const &  rhs 
)
inline

Definition at line 609 of file MooseMesh.C.

610  {
611  if (lhs->_bnd_id < rhs->_bnd_id)
612  return true;
613 
614  if (lhs->_bnd_id > rhs->_bnd_id)
615  return false;
616 
617  if (lhs->_node->id() < rhs->_node->id())
618  return true;
619 
620  if (lhs->_node->id() > rhs->_node->id())
621  return false;
622 
623  return false;
624  }
BoundaryID _bnd_id
boundary id for the node
Definition: BndNode.h:28
Node * _node
pointer to the node
Definition: BndNode.h:26

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