SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::simulation::Node::Single< T, duplicate > Class Template Reference

#include <Node.h>

Inheritance diagram for sofa::simulation::Node::Single< T, duplicate >:

Detailed Description

template<class T, bool duplicate = true>
class sofa::simulation::Node::Single< T, duplicate >

Class to hold 0-or-1 object. Public access is only readonly using an interface similar to std::vector (size/[]/begin/end), plus an automatic convertion to one pointer. UPDATE: it is now an alias for the Link pointer container

Public Member Functions

 Single (const BaseLink::InitLink< Node > &init)
 
T * operator-> () const
 
T & operator* () const
 
 operator T * () const
 

Additional Inherited Members

Constructor details

template<class T, bool duplicate = true>
sofa::simulation::Node::Single< T, duplicate >::Single ( const BaseLink::InitLink< Node > &  init)
inline

Function details

template<class T, bool duplicate = true>
sofa::simulation::Node::Single< T, duplicate >::operator T * ( ) const
inline
template<class T, bool duplicate = true>
T& sofa::simulation::Node::Single< T, duplicate >::operator* ( ) const
inline
template<class T, bool duplicate = true>
T* sofa::simulation::Node::Single< T, duplicate >::operator-> ( ) const
inline