45#include "ChastePoint.hpp"
46#include "NodeAttributes.hpp"
51template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
57template<
unsigned SPACE_DIM>
91 friend class TestNode;
98 template<
class Archive>
99 void serialize(Archive & archive,
const unsigned int version)
152 Node(
unsigned index, std::vector<double> coords,
bool isBoundaryNode=
false);
161 Node(
unsigned index, c_vector<double, SPACE_DIM> location,
bool isBoundaryNode=
false);
172 Node(
unsigned index,
bool isBoundaryNode=
false,
double v1=0,
double v2=0,
double v3=0);
182 Node(
unsigned index,
double *location,
bool isBoundaryNode=
false);
231 const c_vector<double, SPACE_DIM>&
rGetLocation()
const;
574namespace serialization
579template<
class Archive,
unsigned SPACE_DIM>
580inline void save_construct_data(
581 Archive & ar,
const Node<SPACE_DIM> * t,
const unsigned int file_version)
585 for (
unsigned i = 0; i < SPACE_DIM; i++)
589 double coord = t->rGetLocation()[i];
592 unsigned index = t->GetIndex();
595 bool is_boundary = t->IsBoundaryNode();
602template<
class Archive,
unsigned SPACE_DIM>
603inline void load_construct_data(
607 c_vector<double,SPACE_DIM> location;
608 for (
unsigned i=0; i<SPACE_DIM; i++)
612 location[i] = coordinate;
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
bool operator!=(const ContainingBoundaryElementIterator &rOther) const
ContainingBoundaryElementIterator & operator++()
std::set< unsigned >::const_iterator mIndexIterator
const unsigned & operator*() const
bool operator==(const ContainingBoundaryElementIterator &rOther) const
ContainingBoundaryElementIterator(std::set< unsigned >::const_iterator indexIterator)
bool operator!=(const ContainingElementIterator &rOther) const
ContainingElementIterator & operator++()
ContainingElementIterator(std::set< unsigned >::const_iterator indexIterator)
bool operator==(const ContainingElementIterator &rOther) const
const unsigned & operator*() const
std::set< unsigned >::const_iterator mIndexIterator
void SetPoint(ChastePoint< SPACE_DIM > point)
ContainingElementIterator ContainingElementsEnd() const
std::set< unsigned > & rGetContainingElementIndices()
void SetRegion(unsigned region)
void AddNodeAttribute(double attribute)
c_vector< double, SPACE_DIM > & rGetAppliedForce()
std::set< unsigned > mBoundaryElementIndices
std::vector< double > & rGetNodeAttributes()
c_vector< double, SPACE_DIM > & rGetModifiableLocation()
void AddNeighbour(unsigned index)
std::set< unsigned > mElementIndices
void SetIndex(unsigned index)
void RemoveDuplicateNeighbours()
void SetRadius(double radius)
ContainingBoundaryElementIterator ContainingBoundaryElementsEnd() const
unsigned GetNumContainingElements() const
std::set< unsigned > & rGetContainingBoundaryElementIndices()
void AddElement(unsigned index)
ContainingElementIterator ContainingElementsBegin() const
void CommonConstructor(unsigned index, bool isBoundaryNode)
unsigned GetNumBoundaryElements() const
void AddBoundaryElement(unsigned index)
NodeAttributes< SPACE_DIM > * mpNodeAttributes
void RemoveBoundaryElement(unsigned index)
const c_vector< double, SPACE_DIM > & rGetLocation() const
bool GetNeighboursSetUp()
bool IsBoundaryNode() const
ChastePoint< SPACE_DIM > GetPoint() const
unsigned GetIndex() const
void SetAsBoundaryNode(bool value=true)
void AddAppliedForceContribution(const c_vector< double, SPACE_DIM > &rForceContribution)
unsigned GetNumNodeAttributes()
friend class boost::serialization::access
void SetIsParticle(bool isParticle)
std::vector< unsigned > & rGetNeighbours()
void SetNeighboursSetUp(bool flag)
void ConstructNodeAttributes()
void CheckForNodeAttributes() const
void serialize(Archive &archive, const unsigned int version)
unsigned GetRegion() const
c_vector< double, SPACE_DIM > mLocation
void RemoveElement(unsigned index)
ContainingBoundaryElementIterator ContainingBoundaryElementsBegin() const