Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <ChasteNodesList.hpp>
Public Member Functions | |
ChasteNodesList (const std::vector< Node< SPACE_DIM > * > rNodesList, bool ownNodes=false) | |
~ChasteNodesList () | |
const std::vector< Node< SPACE_DIM > * > & | rGetNodesList () const |
bool | DoesContain (const ChastePoint< SPACE_DIM > &rPointToCheck) const |
unsigned | GetSize () const |
Public Member Functions inherited from AbstractChasteRegion< SPACE_DIM > | |
AbstractChasteRegion () | |
virtual void | Destroy () |
virtual | ~AbstractChasteRegion () |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
std::vector< Node< SPACE_DIM > * > | mListOfNodes |
bool | mOwnNodes |
Friends | |
class | boost::serialization::access |
This class defines a list of nodes and provides a method to check whether a point is contained in the list.
Definition at line 54 of file ChasteNodesList.hpp.
ChasteNodesList< SPACE_DIM >::ChasteNodesList | ( | const std::vector< Node< SPACE_DIM > * > | rNodesList, |
bool | ownNodes = false |
||
) |
Constructor
rNodesList | a standard vector of (pointer to) nodes |
ownNodes | whether we own the Node objects and should free the memory on destruction |
Definition at line 39 of file ChasteNodesList.cpp.
ChasteNodesList< SPACE_DIM >::~ChasteNodesList | ( | ) |
Clean the memory used by the nodes in this node list
Definition at line 46 of file ChasteNodesList.cpp.
|
virtual |
rPointToCheck | Point to be checked whether it is a node in the list. |
Implements AbstractChasteRegion< SPACE_DIM >.
Definition at line 58 of file ChasteNodesList.cpp.
unsigned ChasteNodesList< SPACE_DIM >::GetSize | ( | ) | const |
Definition at line 80 of file ChasteNodesList.cpp.
const std::vector< Node< SPACE_DIM > * > & ChasteNodesList< SPACE_DIM >::rGetNodesList | ( | ) | const |
Definition at line 74 of file ChasteNodesList.cpp.
|
inlineprivate |
Archive the member variables.
archive | |
version |
Definition at line 65 of file ChasteNodesList.hpp.
|
friend |
Needed for serialization.
Definition at line 57 of file ChasteNodesList.hpp.
|
private |
A vector to store the list of nodes
Definition at line 73 of file ChasteNodesList.hpp.
|
private |
Whether we own the Node objects and should free the memory on destruction
Definition at line 76 of file ChasteNodesList.hpp.