#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 (c_vector< double, SPACE_DIM > &appliedForceContribution) |
| void | ClearAppliedForce () |
| 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 |
| 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 | ( | ) | [inline] |
Defaults all variables.
Definition at line 42 of file NodeAttributes.cpp.
| void NodeAttributes< SPACE_DIM >::AddAppliedForceContribution | ( | c_vector< double, SPACE_DIM > & | appliedForceContribution | ) | [inline] |
Add a contribution to the force vector
| appliedForceContribution | the contribution to add to mAppliedForce |
Definition at line 83 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mAppliedForce.
| void NodeAttributes< SPACE_DIM >::AddAttribute | ( | double | attribute | ) | [inline] |
Push an attribute back onto mAttributes
| attribute | the value of the attribute. |
Definition at line 59 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mAttributes.
| void NodeAttributes< SPACE_DIM >::ClearAppliedForce | ( | ) | [inline] |
Set mAppliedForce to a zero vector.
Definition at line 89 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mAppliedForce.
| double NodeAttributes< SPACE_DIM >::GetRadius | ( | ) | [inline] |
Return the radius associated with the Node
Definition at line 110 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mRadius.
| unsigned NodeAttributes< SPACE_DIM >::GetRegion | ( | ) | [inline] |
Get the region ID
Definition at line 65 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mRegion.
| bool NodeAttributes< SPACE_DIM >::IsParticle | ( | ) | [inline] |
Get whether this node is a particle, or not.
Definition at line 98 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mIsParticle.
| c_vector< double, SPACE_DIM > & NodeAttributes< SPACE_DIM >::rGetAppliedForce | ( | ) | [inline] |
Get the current value of the applied force on the node.
Definition at line 77 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mAppliedForce.
| std::vector< double > & NodeAttributes< SPACE_DIM >::rGetAttributes | ( | ) | [inline] |
Definition at line 53 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mAttributes.
| void NodeAttributes< SPACE_DIM >::serialize | ( | Archive & | archive, | |
| const unsigned int | version | |||
| ) | [inline, private] |
Archive the member variables.
| archive | the archive | |
| version | the current version of this class |
Definition at line 76 of file NodeAttributes.hpp.
References NodeAttributes< SPACE_DIM >::mAppliedForce, NodeAttributes< SPACE_DIM >::mAttributes, NodeAttributes< SPACE_DIM >::mIsParticle, NodeAttributes< SPACE_DIM >::mRadius, and NodeAttributes< SPACE_DIM >::mRegion.
| void NodeAttributes< SPACE_DIM >::SetIsParticle | ( | bool | isParticle | ) | [inline] |
Set the flag mIsParticle.
| isParticle | whether this node is particle or not. |
Definition at line 104 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mIsParticle.
| void NodeAttributes< SPACE_DIM >::SetRadius | ( | double | radius | ) | [inline] |
Set the value of the radius.
| radius | the value to assign to mRadius. Must be >= 0.0 |
Definition at line 116 of file NodeAttributes.cpp.
References EXCEPTION, and NodeAttributes< SPACE_DIM >::mRadius.
| void NodeAttributes< SPACE_DIM >::SetRegion | ( | unsigned | region | ) | [inline] |
Set the region ID
| region | the value to to assign to mRegion. |
Definition at line 71 of file NodeAttributes.cpp.
References NodeAttributes< SPACE_DIM >::mRegion.
friend class boost::serialization::access [friend] |
Needed for serialization.
Definition at line 67 of file NodeAttributes.hpp.
c_vector<double, SPACE_DIM> NodeAttributes< SPACE_DIM >::mAppliedForce [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 >::AddAppliedForceContribution(), NodeAttributes< SPACE_DIM >::ClearAppliedForce(), NodeAttributes< SPACE_DIM >::rGetAppliedForce(), and NodeAttributes< SPACE_DIM >::serialize().
std::vector<double> NodeAttributes< SPACE_DIM >::mAttributes [private] |
Arbitrary attributes that a user gives meaning to
Definition at line 52 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::AddAttribute(), NodeAttributes< SPACE_DIM >::rGetAttributes(), and NodeAttributes< SPACE_DIM >::serialize().
bool NodeAttributes< SPACE_DIM >::mIsParticle [private] |
Whether the node represents a particle or not: Used for NodeBasedCellPopulationWithParticles
Definition at line 64 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::IsParticle(), NodeAttributes< SPACE_DIM >::serialize(), and NodeAttributes< SPACE_DIM >::SetIsParticle().
double NodeAttributes< SPACE_DIM >::mRadius [private] |
The radius associated with the Node
Definition at line 61 of file NodeAttributes.hpp.
Referenced by NodeAttributes< SPACE_DIM >::GetRadius(), NodeAttributes< SPACE_DIM >::serialize(), and NodeAttributes< SPACE_DIM >::SetRadius().
unsigned NodeAttributes< SPACE_DIM >::mRegion [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 >::GetRegion(), NodeAttributes< SPACE_DIM >::serialize(), and NodeAttributes< SPACE_DIM >::SetRegion().
1.6.2