36#ifndef FIXEDCENTREBASEDDIVISIONRULE_HPP_
37#define FIXEDCENTREBASEDDIVISIONRULE_HPP_
40#include <boost/serialization/base_object.hpp>
41#include <boost/serialization/vector.hpp>
43#include "AbstractCentreBasedDivisionRule.hpp"
44#include "AbstractCentreBasedCellPopulation.hpp"
58template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM=ELEMENT_DIM>
69 friend class boost::serialization::access;
76 template<
class Archive>
77 void serialize(Archive & archive,
const unsigned int version)
79 archive & boost::serialization::base_object<AbstractCentreBasedDivisionRule<ELEMENT_DIM, SPACE_DIM> >(*this);
120namespace serialization
125template<
class Archive,
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
126inline void save_construct_data(
130 c_vector<double, SPACE_DIM> location = t->rGetDaughterLocation();
131 for (
unsigned i=0; i<SPACE_DIM; i++)
140template<
class Archive,
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
141inline void load_construct_data(
145 c_vector<double, SPACE_DIM> location;
146 for (
unsigned i=0; i<SPACE_DIM; i++)
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
c_vector< double, SPACE_DIM > mDaughterLocation
const c_vector< double, SPACE_DIM > & rGetDaughterLocation() const
void serialize(Archive &archive, const unsigned int version)
virtual std::pair< c_vector< double, SPACE_DIM >, c_vector< double, SPACE_DIM > > CalculateCellDivisionVector(CellPtr pParentCell, AbstractCentreBasedCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation)
virtual ~FixedCentreBasedDivisionRule()