DART
6.10.1
|
TemplateBodyNodePtr is a templated class that enables users to create a reference-counting BodyNodePtr. More...
#include <BodyNodePtr.hpp>
Public Member Functions | |
TemplateBodyNodePtr () | |
Default constructor. More... | |
TemplateBodyNodePtr (BodyNodeT *_ptr) | |
Typical constructor. More... | |
TemplateBodyNodePtr (const TemplateBodyNodePtr &_bnp) | |
User defined copy-constructor. More... | |
template<class OtherBodyNodeT > | |
TemplateBodyNodePtr (const TemplateBodyNodePtr< OtherBodyNodeT > &_bnp) | |
Templated constructor for copying other BodyNodePtrs. More... | |
~TemplateBodyNodePtr () | |
Destructor. Releases the BodyNode reference before being destroyed. More... | |
TemplateBodyNodePtr & | operator= (const TemplateBodyNodePtr &bnp) |
User defined assignment operator. More... | |
template<class OtherBodyNodeT > | |
TemplateBodyNodePtr & | operator= (const TemplateBodyNodePtr< OtherBodyNodeT > &_bnp) |
Change the BodyNode that this BodyNodePtr references. More... | |
TemplateBodyNodePtr & | operator= (BodyNodeT *_ptr) |
Assignment operator. More... | |
operator BodyNodeT * () const | |
Implicit conversion. More... | |
BodyNodeT & | operator* () const |
Dereferencing operator. More... | |
BodyNodeT * | operator-> () const |
Dereferencing operation. More... | |
BodyNodeT * | get () const |
Get the raw BodyNode pointer. More... | |
void | set (BodyNodeT *_ptr) |
Set the BodyNode for this BodyNodePtr. More... | |
Private Attributes | |
BodyNodeT * | mPtr |
Raw pointer for the BodyNode that this BodyNodePtr references. More... | |
TemplateBodyNodePtr is a templated class that enables users to create a reference-counting BodyNodePtr.
Holding onto a BodyNodePtr will ensure that the BodyNode (and by extension, its Skeleton) does not get deleted. This remains true even if the BodyNode is moved into another Skeleton.
|
inline |
Default constructor.
|
inline |
Typical constructor.
_ptr must be a valid pointer (or a nullptr) when passed to this constructor
|
inline |
User defined copy-constructor.
|
inline |
Templated constructor for copying other BodyNodePtrs.
|
inline |
Destructor. Releases the BodyNode reference before being destroyed.
|
inline |
Get the raw BodyNode pointer.
|
inline |
Implicit conversion.
|
inline |
Dereferencing operator.
|
inline |
Dereferencing operation.
|
inline |
Assignment operator.
|
inline |
User defined assignment operator.
|
inline |
Change the BodyNode that this BodyNodePtr references.
|
inline |
Set the BodyNode for this BodyNodePtr.
|
private |
Raw pointer for the BodyNode that this BodyNodePtr references.