SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::simulation::Node::Sequence< T, strong > Class Template Reference

#include <Node.h>

Inheritance diagram for sofa::simulation::Node::Sequence< T, strong >:

Detailed Description

template<class T, bool strong = false>
class sofa::simulation::Node::Sequence< T, strong >

Sequence class to hold a list of objects. Public access is only readonly using an interface similar to std::vector (size/[]/begin/end). UPDATE: it is now an alias for the Link pointer container

Public Member Functions

 Sequence (const BaseLink::InitLink< Node > &init)
 
value_type operator[] (unsigned int i) const
 
void swap (iterator a, iterator b)
 Swap two values in the list. Uses a const_cast to violate the read-only iterators. More...
 

Additional Inherited Members

Constructor details

template<class T, bool strong = false>
sofa::simulation::Node::Sequence< T, strong >::Sequence ( const BaseLink::InitLink< Node > &  init)
inline

Function details

template<class T, bool strong = false>
value_type sofa::simulation::Node::Sequence< T, strong >::operator[] ( unsigned int  i) const
inline
template<class T, bool strong = false>
void sofa::simulation::Node::Sequence< T, strong >::swap ( iterator  a,
iterator  b 
)
inline

Swap two values in the list. Uses a const_cast to violate the read-only iterators.