equal
deleted
inserted
replaced
260 |
260 |
261 int dimension(Arc arc) const { |
261 int dimension(Arc arc) const { |
262 return arc._id >> _dim; |
262 return arc._id >> _dim; |
263 } |
263 } |
264 |
264 |
265 int index(Node node) const { |
265 static int index(Node node) { |
266 return node._id; |
266 return node._id; |
267 } |
267 } |
268 |
268 |
269 Node operator()(int ix) const { |
269 Node operator()(int ix) const { |
270 return Node(ix); |
270 return Node(ix); |
335 |
335 |
336 /// \brief The index of a node. |
336 /// \brief The index of a node. |
337 /// |
337 /// |
338 /// Gives back the index of the given node. |
338 /// Gives back the index of the given node. |
339 /// The lower bits of the integer describes the node. |
339 /// The lower bits of the integer describes the node. |
340 int index(Node node) const { |
340 static int index(Node node) { |
341 return Parent::index(node); |
341 return Parent::index(node); |
342 } |
342 } |
343 |
343 |
344 /// \brief Gives back a node by its index. |
344 /// \brief Gives back a node by its index. |
345 /// |
345 /// |