Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <NodeAttributes.hpp>
Public Member Functions | |
NodeAttributes () | |
std::vector< double > & | rGetAttributes () |
void | AddAttribute (double attribute) |
unsigned | GetRegion () |
void | SetRegion (unsigned region) |
c_vector< double, SPACE_DIM > & | rGetAppliedForce () |
void | AddAppliedForceContribution (const c_vector< double, SPACE_DIM > &rForceContribution) |
void | ClearAppliedForce () |
void | AddNeighbour (unsigned index) |
void | ClearNeighbours () |
void | RemoveDuplicateNeighbours () |
bool | NeighboursIsEmpty () |
void | SetNeighboursSetUp (bool flag) |
bool | GetNeighboursSetUp () |
std::vector< unsigned > & | rGetNeighbours () |
bool | IsParticle () |
void | SetIsParticle (bool isParticle) |
double | GetRadius () |
void | SetRadius (double radius) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
std::vector< double > | mAttributes |
unsigned | mRegion |
c_vector< double, SPACE_DIM > | mAppliedForce |
double | mRadius |
std::vector< unsigned > | mNeighbourIndices |
bool | mNeighboursSetUp |
bool | mIsParticle |
Friends | |
class | boost::serialization::access |
A container for attributes associated with the Node class.
Definition at line 47 of file NodeAttributes.hpp.
NodeAttributes< SPACE_DIM >::NodeAttributes | ( | ) |
Defaults all variables.
Definition at line 42 of file NodeAttributes.cpp.
void NodeAttributes< SPACE_DIM >::AddAppliedForceContribution | ( | const c_vector< double, SPACE_DIM > & | rForceContribution | ) |
Add a contribution to the force vector
rForceContribution | the contribution to add to mAppliedForce |
Definition at line 84 of file NodeAttributes.cpp.
void NodeAttributes< SPACE_DIM >::AddAttribute | ( | double | attribute | ) |
Push an attribute back onto mAttributes
attribute | the value of the attribute. |
Definition at line 60 of file NodeAttributes.cpp.
void NodeAttributes< SPACE_DIM >::AddNeighbour | ( | unsigned | index | ) |
Add a neighbour to this node's vector of neighbouring node indices.
index | of the node to add. |
Definition at line 99 of file NodeAttributes.cpp.
void NodeAttributes< SPACE_DIM >::ClearAppliedForce | ( | ) |
Set mAppliedForce to a zero vector.
Definition at line 90 of file NodeAttributes.cpp.
void NodeAttributes< SPACE_DIM >::ClearNeighbours | ( | ) |
Clear this node's vector of neighbour indices.
Definition at line 105 of file NodeAttributes.cpp.
bool NodeAttributes< SPACE_DIM >::GetNeighboursSetUp | ( | ) |
Definition at line 130 of file NodeAttributes.cpp.
double NodeAttributes< SPACE_DIM >::GetRadius | ( | ) |
Return the radius associated with the Node
Definition at line 155 of file NodeAttributes.cpp.
unsigned NodeAttributes< SPACE_DIM >::GetRegion | ( | ) |
bool NodeAttributes< SPACE_DIM >::IsParticle | ( | ) |
Get whether this node is a particle, or not.
Definition at line 143 of file NodeAttributes.cpp.
bool NodeAttributes< SPACE_DIM >::NeighboursIsEmpty | ( | ) |
Check whether the node neighbours collection is empty.
Definition at line 118 of file NodeAttributes.cpp.
void NodeAttributes< SPACE_DIM >::RemoveDuplicateNeighbours | ( | ) |
Remove duplicates from the vector of node neighbour indices.
Definition at line 111 of file NodeAttributes.cpp.
c_vector< double, SPACE_DIM > & NodeAttributes< SPACE_DIM >::rGetAppliedForce | ( | ) |
Get the current value of the applied force on the node.
Definition at line 78 of file NodeAttributes.cpp.
std::vector< double > & NodeAttributes< SPACE_DIM >::rGetAttributes | ( | ) |
Definition at line 54 of file NodeAttributes.cpp.
std::vector< unsigned > & NodeAttributes< SPACE_DIM >::rGetNeighbours | ( | ) |
Definition at line 136 of file NodeAttributes.cpp.
|
inlineprivate |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Definition at line 82 of file NodeAttributes.hpp.
References NodeAttributes< SPACE_DIM >::mAppliedForce, NodeAttributes< SPACE_DIM >::mAttributes, NodeAttributes< SPACE_DIM >::mIsParticle, NodeAttributes< SPACE_DIM >::mNeighbourIndices, NodeAttributes< SPACE_DIM >::mNeighboursSetUp, NodeAttributes< SPACE_DIM >::mRadius, and NodeAttributes< SPACE_DIM >::mRegion.
void NodeAttributes< SPACE_DIM >::SetIsParticle | ( | bool | isParticle | ) |
Set the flag mIsParticle.
isParticle | whether this node is particle or not. |
Definition at line 149 of file NodeAttributes.cpp.
void NodeAttributes< SPACE_DIM >::SetNeighboursSetUp | ( | bool | flag | ) |
Sets a flag to indicate that the neighbours of this node have/have not been updated.
flag | whether the neighbours are set up or not |
Definition at line 124 of file NodeAttributes.cpp.
void NodeAttributes< SPACE_DIM >::SetRadius | ( | double | radius | ) |
Set the value of the radius.
radius | the value to assign to mRadius. Must be >= 0.0 |
Definition at line 161 of file NodeAttributes.cpp.
References EXCEPTION.
void NodeAttributes< SPACE_DIM >::SetRegion | ( | unsigned | region | ) |
Set the region ID
region | the value to to assign to mRegion. |
Definition at line 72 of file NodeAttributes.cpp.
|
friend |
Needed for serialization.
Definition at line 73 of file NodeAttributes.hpp.
|
private |
For mutable nodes in OffLatticeSimulations, a container for the force accumulated on this node.
Definition at line 58 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::serialize().
|
private |
Arbitrary attributes that a user gives meaning to
Definition at line 52 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::serialize().
|
private |
Whether the node represents a particle or not: Used for NodeBasedCellPopulationWithParticles
Definition at line 70 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::serialize().
|
private |
Vector of indices corresponding to neighbouring nodes.
Definition at line 64 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::serialize().
|
private |
A bool indicating whether the neighbours of this node have been calculated yet.
Definition at line 67 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::serialize().
|
private |
The radius associated with the Node
Definition at line 61 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::serialize().
|
private |
The ID of the region of mesh in which the Node lies
Definition at line 55 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::serialize().