DART
6.10.1
|
AccessoryNode provides an interface for Nodes to get their index within the list of Nodes, as well as detach and reattach. More...
#include <Node.hpp>
Public Member Functions | |
virtual | ~AccessoryNode ()=default |
Virtual destructor. More... | |
std::size_t | getIndexInBodyNode () const |
Get the index of this Node within its BodyNode. More... | |
std::size_t | getIndexInSkeleton () const |
Get the index of this Node within its Skeleton. More... | |
std::size_t | getIndexInTree () const |
Get the index of this Node within its tree. More... | |
std::size_t | getTreeIndex () const |
Get the index of this Node's tree within its Skeleton. More... | |
void | remove () |
Stage the Node for removal. More... | |
void | reattach () |
Undo the effectos of calling remove(). More... | |
Protected Member Functions | |
AccessoryNode ()=default | |
Prevent a non-inheriting class from constructing one. More... | |
AccessoryNode provides an interface for Nodes to get their index within the list of Nodes, as well as detach and reattach.
This uses CRTP to get around the diamond of death problem.
|
virtualdefault |
Virtual destructor.
|
protecteddefault |
Prevent a non-inheriting class from constructing one.
std::size_t dart::dynamics::AccessoryNode< NodeType >::getIndexInBodyNode |
std::size_t dart::dynamics::AccessoryNode< NodeType >::getIndexInSkeleton |
std::size_t dart::dynamics::AccessoryNode< NodeType >::getIndexInTree |
Get the index of this Node within its tree.
std::size_t dart::dynamics::AccessoryNode< NodeType >::getTreeIndex |
void dart::dynamics::AccessoryNode< NodeType >::reattach |
void dart::dynamics::AccessoryNode< NodeType >::remove |