42#include <boost/serialization/serialization.hpp>
43#include <boost/serialization/set.hpp>
44#include <boost/serialization/vector.hpp>
50template<
unsigned SPACE_DIM>
62 std::vector<Node<SPACE_DIM>*>
mNodes;
66 friend class boost::serialization::access;
73 template<
class Archive>
74 void serialize(Archive & archive,
const unsigned int version)
88 explicit Edge(
unsigned index);
107 static std::pair<unsigned, unsigned>
GenerateMapIndex(
unsigned index1,
unsigned index2);
243namespace serialization
248template<
class Archive,
unsigned SPACE_DIM>
249inline void save_construct_data(
250 Archive & ar,
const Edge<SPACE_DIM> * t,
const unsigned int file_version)
257 unsigned index = t->GetIndex();
264template<
class Archive,
unsigned SPACE_DIM>
265inline void load_construct_data(
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
bool ContainsNode(Node< SPACE_DIM > *pNode) const
void SetNodes(Node< SPACE_DIM > *pNodeA, Node< SPACE_DIM > *pNodeB)
void RemoveElement(unsigned elementIndex)
void serialize(Archive &archive, const unsigned int version)
c_vector< double, SPACE_DIM > rGetCentreLocation()
std::set< unsigned > GetNeighbouringElementIndices()
unsigned GetIndex() const
Node< SPACE_DIM > * GetNode(unsigned index) const
static std::pair< unsigned, unsigned > GenerateMapIndex(unsigned index1, unsigned index2)
std::set< unsigned > GetOtherElements(unsigned elementIndex)
bool operator==(const Edge< SPACE_DIM > &rEdge) const
std::set< unsigned > mElementIndices
void ReplaceNode(Node< SPACE_DIM > *pOldNode, Node< SPACE_DIM > *pNewNode)
void SetIndex(unsigned index)
unsigned GetNumElements()
bool IsBoundaryEdge() const
void AddElement(unsigned elementIndex)
std::vector< Node< SPACE_DIM > * > mNodes
std::pair< unsigned, unsigned > GetMapIndex()