9 #ifndef CMZN_NODE_HPP__ 10 #define CMZN_NODE_HPP__ 12 #include "opencmiss/zinc/node.h" 46 explicit Node(cmzn_node_id node_id) : id(node_id)
50 id(cmzn_node_access(node.id))
104 cmzn_node_id temp_id = cmzn_node_access(node.id);
107 cmzn_node_destroy(&
id);
117 cmzn_node_destroy(&
id);
150 return cmzn_node_get_identifier(
id);
163 return cmzn_node_set_identifier(
id, identifier);
177 inline bool operator==(
const Node& a,
const Node& b)
191 cmzn_nodeiterator_id id;
199 explicit Nodeiterator(cmzn_nodeiterator_id node_iterator_id) :
204 id(cmzn_nodeiterator_access(nodeIterator.id))
209 cmzn_nodeiterator_id temp_id = cmzn_nodeiterator_access(nodeIterator.id);
212 cmzn_nodeiterator_destroy(&
id);
222 cmzn_nodeiterator_destroy(&
id);
245 return Node(cmzn_nodeiterator_next(
id));
252 #endif // CMZN_NODE_HPP__ An iterator for looping through all the nodes in a nodeset.
Definition: node.hpp:187
A description of field parameters to define at a node.
Definition: nodetemplate.hpp:29
ValueLabel
Definition: node.hpp:80
int getIdentifier()
Definition: node.hpp:148
Node next()
Definition: node.hpp:243
ChangeFlag
Definition: node.hpp:56
int setIdentifier(int identifier)
Definition: node.hpp:161
bool isValid() const
Definition: node.hpp:231
Nodeset getNodeset() const
Definition: nodeset.hpp:255
cmzn_node_id getId() const
Definition: node.hpp:136
bool isValid() const
Definition: node.hpp:126
int ChangeFlags
Definition: node.hpp:75
The OpenCMISS namespace.
Definition: context.hpp:20
Point object used to represent finite element nodes.
Definition: node.hpp:34
A set of nodes or points.
Definition: nodeset.hpp:29