AbstractForce< DIM > Class Template Reference

#include <AbstractForce.hpp>

Inherited by AbstractTwoBodyInteractionForce< DIM >.

List of all members.

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

Detailed Description

template<unsigned DIM>
class AbstractForce< DIM >

An abstract force class.

Definition at line 40 of file AbstractForce.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
AbstractForce< DIM >::AbstractForce (  )  [inline]

Default constructor.

Definition at line 89 of file AbstractForce.hpp.

template<unsigned DIM>
AbstractForce< DIM >::~AbstractForce (  )  [inline, virtual]

Destructor.

Definition at line 94 of file AbstractForce.hpp.


Member Function Documentation

template<unsigned DIM>
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.

Parameters:
rForces reference to vector of forces on nodes
rTissue reference to the tissue

Implemented in AbstractTwoBodyInteractionForce< DIM >, and LinearSpringWithVariableSpringConstantsForce< DIM >.

template<unsigned DIM>
template<class Archive >
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.

Parameters:
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().


Friends And Related Function Documentation

template<unsigned DIM>
friend class boost::serialization::access [friend]

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2