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