#include <AbstractForce.hpp>
Public Member Functions | |
AbstractForce () | |
virtual | ~AbstractForce () |
virtual void | AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractTissue< DIM > &rTissue)=0 |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Definition at line 40 of file AbstractForce.hpp.
AbstractForce< DIM >::AbstractForce | ( | ) | [inline] |
Default constructor.
Definition at line 89 of file AbstractForce.hpp.
AbstractForce< DIM >::~AbstractForce | ( | ) | [inline, virtual] |
Destructor.
Definition at line 94 of file AbstractForce.hpp.
void AbstractForce< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the object and its member variables.
Serialization of singleton objects must be done with care. Before the object is serialized via a pointer, it *MUST* be serialized directly, or an assertion will trip when a second instance of the class is created on de-serialization.
archive | the archive | |
version | the current version of this class |
Reimplemented in AbstractTwoBodyInteractionForce< DIM >, GeneralisedLinearSpringForce< DIM >, and LinearSpringWithVariableSpringConstantsForce< DIM >.
Definition at line 56 of file AbstractForce.hpp.
References TissueConfig::Instance().
virtual void AbstractForce< DIM >::AddForceContribution | ( | std::vector< c_vector< double, DIM > > & | rForces, | |
AbstractTissue< DIM > & | rTissue | |||
) | [pure virtual] |
Calculates the force on each node.
This method must be overridden in concrete classes.
rForces | reference to vector of forces on nodes | |
rTissue | reference to the tissue |
Implemented in AbstractTwoBodyInteractionForce< DIM >, and LinearSpringWithVariableSpringConstantsForce< DIM >.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented in AbstractTwoBodyInteractionForce< DIM >, GeneralisedLinearSpringForce< DIM >, and LinearSpringWithVariableSpringConstantsForce< DIM >.
Definition at line 43 of file AbstractForce.hpp.