16 #if !defined(KRATOS_NEIGHBOURS_H_INCLUDED )
17 #define KRATOS_NEIGHBOURS_H_INCLUDED
61 template<
class TNodeType,
class TElementType>
92 : mIndex(rOther.mIndex)
93 , mpNeighbourElements(rOther.mpNeighbourElements)
94 , mpNeighbourNodes(rOther.mpNeighbourNodes)
99 typename NeighbourElementsArrayType::Pointer pNewNeighbourElements,
100 typename NeighbourNodesArrayType::Pointer pNewNeighbourNodes)
102 , mpNeighbourElements(pNewNeighbourElements)
103 , mpNeighbourNodes(pNewNeighbourNodes)
123 mIndex = rOther.mIndex;
124 mpNeighbourElements = rOther.mpNeighbourElements;
125 mpNeighbourNodes = rOther.mpNeighbourNodes;
140 return Neighbours(mIndex, p_neighbour_elements, p_neighbour_nodes);
156 return mpNeighbourElements;
161 return mpNeighbourElements;
166 return *mpNeighbourElements;
171 return *mpNeighbourElements;
176 return mpNeighbourNodes;
181 return mpNeighbourNodes;
186 return *mpNeighbourNodes;
191 return *mpNeighbourNodes;
204 virtual std::string
Info()
const
218 rOStream <<
"Number of neighbour nodes : " << mpNeighbourNodes->size() << std::endl;
219 rOStream <<
"Number of neighbour elements : " << mpNeighbourElements->size() << std::endl;
282 typename NeighbourElementsArrayType::Pointer mpNeighbourElements;
284 typename NeighbourNodesArrayType::Pointer mpNeighbourNodes;
327 template<
class TNodeType,
class TElementType>
332 template<
class TNodeType,
class TElementType>
337 rOStream << std::endl;
This class is a vector which stores global pointers.
Definition: global_pointers_vector.h:61
Short class definition.
Definition: neighbours.h:63
KRATOS_CLASS_POINTER_DEFINITION(Neighbours)
Pointer definition of Neighbours.
IndexType Index()
Definition: neighbours.h:148
virtual ~Neighbours()
Destructor.
Definition: neighbours.h:113
Neighbours Clone()
Definition: neighbours.h:135
Kratos::weak_ptr< TElementType > ElementWeakPointer
Definition: neighbours.h:75
std::size_t IndexType
Definition: neighbours.h:71
const NeighbourElementsArrayType::Pointer pNeighbourElements() const
Definition: neighbours.h:154
Neighbours(IndexType NewIndex, typename NeighbourElementsArrayType::Pointer pNewNeighbourElements, typename NeighbourNodesArrayType::Pointer pNewNeighbourNodes)
Definition: neighbours.h:98
GlobalPointersVector< TNodeType > NeighbourNodesArrayType
Definition: neighbours.h:81
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: neighbours.h:210
const NeighbourNodesArrayType::Pointer pNeighbourNodes() const
Definition: neighbours.h:174
NeighbourElementsArrayType::Pointer pNeighbourElements()
Definition: neighbours.h:159
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: neighbours.h:216
Neighbours(IndexType NewIndex)
Definition: neighbours.h:107
NeighbourNodesArrayType::Pointer pNeighbourNodes()
Definition: neighbours.h:179
Neighbours()
Default constructor.
Definition: neighbours.h:88
Neighbours & operator=(const Neighbours &rOther)
Assignment operator.
Definition: neighbours.h:121
Kratos::weak_ptr< TNodeType > NodeWeakPointer
Definition: neighbours.h:73
NeighbourNodesArrayType const & NeighbourNodes() const
Definition: neighbours.h:184
GlobalPointersVector< TElementType > NeighbourElementsArrayType
Definition: neighbours.h:78
NeighbourNodesArrayType & NeighbourNodes()
Definition: neighbours.h:189
NeighbourElementsArrayType const & NeighbourElements() const
Definition: neighbours.h:164
Neighbours(const Neighbours &rOther)
Copy constructor.
Definition: neighbours.h:91
NeighbourElementsArrayType & NeighbourElements()
Definition: neighbours.h:169
virtual std::string Info() const
Turn back information as a string.
Definition: neighbours.h:204
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::weak_ptr< T > weak_ptr
Definition: smart_pointers.h:30
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432