37 #ifndef CHASTENODESLIST_HPP_
38 #define CHASTENODESLIST_HPP_
41 #include <boost/serialization/base_object.hpp>
43 #include "AbstractChasteRegion.hpp"
45 #include "ChastePoint.hpp"
53 template <
unsigned SPACE_DIM>
57 friend class boost::serialization::access;
64 template<
class Archive>
65 void serialize(Archive & archive,
const unsigned int version)
67 archive & boost::serialization::base_object<AbstractChasteRegion<SPACE_DIM> >(*this);
95 const std::vector< Node<SPACE_DIM>*>& rGetNodesList()
const;
107 unsigned GetSize()
const;
116 namespace serialization
119 template<
class Archive,
unsigned SPACE_DIM>
120 inline void save_construct_data(
123 const std::vector<Node<SPACE_DIM>*>& node_list = t->
rGetNodesList();
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];
152 template<
class Archive,
unsigned SPACE_DIM>
153 inline 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);
void serialize(Archive &archive, const unsigned int version)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
const std::vector< Node< SPACE_DIM > * > & rGetNodesList() const
gcov doesn't like this file...
std::vector< Node< SPACE_DIM > * > mListOfNodes