#include <NodeBoxCollection.hpp>
Public Member Functions | |
NodeBox (c_vector< double, 2 *DIM > minAndMaxValues) | |
c_vector< double, 2 *DIM > & | rGetMinAndMaxValues () |
void | AddNode (Node< DIM > *pNode) |
void | RemoveNode (Node< DIM > *pNode) |
std::set< Node< DIM > * > & | rGetNodesContained () |
Private Attributes | |
c_vector< double, 2 *DIM > | mMinAndMaxValues |
std::set< Node< DIM > * > | mNodesContained |
Definition at line 39 of file NodeBoxCollection.hpp.
NodeBox< DIM >::NodeBox | ( | c_vector< double, 2 *DIM > | minAndMaxValues | ) | [inline] |
Constructor just takes in the extremal values of the box.
minAndMaxValues | the extremal values |
Definition at line 36 of file NodeBoxCollection.cpp.
References NodeBox< DIM >::mMinAndMaxValues.
c_vector< double, 2 *DIM > & NodeBox< DIM >::rGetMinAndMaxValues | ( | ) | [inline] |
Get the coordinates of the box, in the form (for 2D) (xmin, xmax, ymin, ymax) (etc).
Definition at line 42 of file NodeBoxCollection.cpp.
References NodeBox< DIM >::mMinAndMaxValues.
Add a node to this box.
pNode | address of the node to be added |
Definition at line 48 of file NodeBoxCollection.cpp.
References NodeBox< DIM >::mNodesContained.
Remove a node from this box.
pNode | address of the node to be removed |
Definition at line 54 of file NodeBoxCollection.cpp.
References NodeBox< DIM >::mNodesContained.
Get all the nodes in this box.
Definition at line 60 of file NodeBoxCollection.cpp.
References NodeBox< DIM >::mNodesContained.
Referenced by NodeBoxCollection< DIM >::CalculateNodePairs().
c_vector<double, 2*DIM> NodeBox< DIM >::mMinAndMaxValues [private] |
Coordinates of the box, in the form (for 2D) (xmin, xmax, ymin, ymax) (etc).
Definition at line 44 of file NodeBoxCollection.hpp.
Referenced by NodeBox< DIM >::NodeBox(), and NodeBox< DIM >::rGetMinAndMaxValues().
std::set< Node<DIM>* > NodeBox< DIM >::mNodesContained [private] |
Nodes contained in this box.
Definition at line 47 of file NodeBoxCollection.hpp.
Referenced by NodeBox< DIM >::AddNode(), NodeBox< DIM >::RemoveNode(), and NodeBox< DIM >::rGetNodesContained().