37#ifndef CHASTENODESLIST_HPP_
38#define CHASTENODESLIST_HPP_
41#include <boost/serialization/base_object.hpp>
43#include "AbstractChasteRegion.hpp"
45#include "ChastePoint.hpp"
53template <
unsigned SPACE_DIM>
64 template<
class Archive>
65 void serialize(Archive & archive,
const unsigned int version)
67 archive & boost::serialization::base_object<AbstractChasteRegion<SPACE_DIM> >(*this);
116namespace serialization
119template<
class Archive,
unsigned SPACE_DIM>
120inline void save_construct_data(
123 const std::vector<Node<SPACE_DIM>*>& node_list = t->rGetNodesList();
126 unsigned size = t->GetSize();
130 std::vector <ChastePoint<SPACE_DIM>* > point_list;
132 for (
unsigned i = 0; i < node_list.size(); i++)
134 c_vector<double, SPACE_DIM> loc = node_list[i]->rGetLocation();
137 unsigned index = node_list[i]->GetIndex();
142 for (
unsigned i = 0; i < point_list.size(); i++)
144 delete point_list[i];
152template<
class Archive,
unsigned SPACE_DIM>
153inline void load_construct_data(
161 std::vector<Node<SPACE_DIM>* > node_list;
162 for (
unsigned i = 0; i < size; i++)
170 node_list.push_back(p_node);
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
void serialize(Archive &archive, const unsigned int version)
const std::vector< Node< SPACE_DIM > * > & rGetNodesList() const
friend class boost::serialization::access
bool DoesContain(const ChastePoint< SPACE_DIM > &rPointToCheck) const
std::vector< Node< SPACE_DIM > * > mListOfNodes