SOFA API  82c4ea2a
Open source framework for multi-physics simuation
sofa::simulation::NodeSingle< T, duplicate > Class Template Reference

#include <Node.h>

Inheritance diagram for sofa::simulation::NodeSingle< T, duplicate >:

Detailed Description

template<class T, bool duplicate = true>
class sofa::simulation::NodeSingle< 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 conversion to one pointer. UPDATE: it is now an alias for the Link pointer container

Public Member Functions

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

Additional Inherited Members

Constructor details

◆ NodeSingle()

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

Function details

◆ operator T*()

template<class T , bool duplicate = true>
sofa::simulation::NodeSingle< T, duplicate >::operator T* ( ) const
inline

◆ operator*()

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

◆ operator->()

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