Go to the documentation of this file.
20 #ifndef LIBMESH_NODE_H
21 #define LIBMESH_NODE_H
24 #include "libmesh/point.h"
25 #include "libmesh/dof_object.h"
26 #include "libmesh/reference_counted_object.h"
27 #include "libmesh/auto_ptr.h"
76 #ifdef LIBMESH_ENABLE_DEPRECATED
113 #ifdef LIBMESH_ENABLE_DEPRECATED
114 static std::unique_ptr<Node>
build (
const Node & n);
120 static std::unique_ptr<Node>
build (
const Point & p,
127 static std::unique_ptr<Node>
build (
const Real x,
156 #ifdef LIBMESH_HAVE_MPI
159 const unsigned int header_size = 2;
162 static const unsigned int idtypes_per_Real =
165 return header_size + LIBMESH_DIM*idtypes_per_Real +
169 #endif // #ifdef LIBMESH_HAVE_MPI
178 #ifdef LIBMESH_ENABLE_NODE_VALENCE
181 libmesh_not_implemented();
206 #ifdef LIBMESH_ENABLE_NODE_VALENCE
243 #ifdef LIBMESH_ENABLE_NODE_VALENCE
253 #ifdef LIBMESH_ENABLE_DEPRECATED
259 #ifdef LIBMESH_ENABLE_NODE_VALENCE
264 libmesh_deprecated();
274 #ifdef LIBMESH_ENABLE_NODE_VALENCE
312 #ifdef LIBMESH_ENABLE_DEPRECATED
316 libmesh_deprecated();
317 return libmesh_make_unique<Node>(n);
327 return libmesh_make_unique<Node>(p,
id);
338 return libmesh_make_unique<Node>(x,y,z,
id);
351 #ifdef LIBMESH_ENABLE_NODE_VALENCE
356 _valence = cast_int<valence_idx_t>(val);
364 libmesh_not_implemented();
367 #endif // #ifdef LIBMESH_ENABLE_NODE_VALENCE
372 #endif // LIBMESH_NODE_H
const unsigned int invalid_uint
A number which is used quite often to represent an invalid or uninitialized value.
This class implements reference counting.
The libMesh namespace provides an interface to certain functionality in the library.
std::ostream & operator<<(std::ostream &os, const OrderWrapper &order)
Overload stream operators.
bool operator==(const Node &rhs) const
The DofObject defines an abstract base class for objects that have degrees of freedom associated with...
unsigned int packed_indexing_size() const
If we pack our indices into an buffer for communications, how many ints do we need?
unsigned char valence_idx_t
Type used to store node valence.
Implements (adaptive) mesh refinement algorithms for a MeshBase.
static const dof_id_type invalid_id
An invalid id to distinguish an uninitialized DofObject.
A Point defines a location in LIBMESH_DIM dimensional Real space.
uint8_t processor_id_type
processor_id_type choose_processor_id(processor_id_type pid1, processor_id_type pid2) const
Return which of pid1 and pid2 would be preferred by the current load-balancing heuristic applied to t...
static std::unique_ptr< Node > build(const Node &n)
A Node is like a Point, but with more information.
valence_idx_t _valence
The number of nodes connected with this node.
void print_info(std::ostream &os=libMesh::out) const
Prints relevant information about the node.
unsigned int valence() const
unsigned int packed_size() const
Node & operator=(const Point &p)
Assign to a node from a point.
This is the base class from which all geometric element types are derived.
std::string get_info() const
Prints relevant information about the node to a string.
Node(const T x)
Disambiguate constructing from non-Real scalars.
Node(const Real x=0, const Real y=0, const Real z=0, const dof_id_type id=invalid_id)
Constructor.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void set_valence(unsigned int val)
Sets the number of nodes connected with this node.