SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::helper::WriteAccessorVector< T > Class Template Reference

#include <WriteAccessorVector.h>

WriteAccessor implementation class for vector types. More...

Inheritance diagram for sofa::helper::WriteAccessorVector< T >:

Detailed Description

template<class T>
class sofa::helper::WriteAccessorVector< T >

WriteAccessor implementation class for vector types.

Protected Attributes

container_typevref
 

Public Member Functions

 WriteAccessorVector (container_type &container)
 
bool empty () const
 
Size size () const
 
void reserve (Size s)
 
reference operator[] (Size pos)
 
const_reference operator[] (Size pos) const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
void clear ()
 
void resize (Size s)
 
iterator insert (const_iterator pos, const T &value)
 
iterator erase (iterator pos)
 
iterator erase (const_iterator pos)
 
void push_back (const value_type &v)
 
template<class... Args>
reference emplace_back (Args &&... args)
 
void pop_back ()
 
 operator container_type ()
 
container_typeoperator-> ()
 
container_typeoperator* ()
 
container_typewref ()
 
 operator const_container_type () const
 
const_container_typeoperator-> () const
 
const_container_typeoperator* () const
 
const container_typeref () const
 this one duplicate operator* More...
 

Attribute details

◆ vref

template<class T >
container_type* sofa::helper::WriteAccessorVector< T >::vref
protected

Constructor details

◆ WriteAccessorVector()

template<class T >
sofa::helper::WriteAccessorVector< T >::WriteAccessorVector ( container_type container)
inline

Function details

◆ back() [1/2]

template<class T >
reference sofa::helper::WriteAccessorVector< T >::back ( )
inline

◆ back() [2/2]

template<class T >
const_reference sofa::helper::WriteAccessorVector< T >::back ( ) const
inline

◆ begin() [1/2]

template<class T >
iterator sofa::helper::WriteAccessorVector< T >::begin ( )
inline

◆ begin() [2/2]

template<class T >
const_iterator sofa::helper::WriteAccessorVector< T >::begin ( ) const
inline

◆ clear()

template<class T >
void sofa::helper::WriteAccessorVector< T >::clear ( )
inline

◆ emplace_back()

template<class T >
template<class... Args>
reference sofa::helper::WriteAccessorVector< T >::emplace_back ( Args &&...  args)
inline

◆ empty()

template<class T >
bool sofa::helper::WriteAccessorVector< T >::empty ( ) const
inline

◆ end() [1/2]

template<class T >
iterator sofa::helper::WriteAccessorVector< T >::end ( )
inline

◆ end() [2/2]

template<class T >
const_iterator sofa::helper::WriteAccessorVector< T >::end ( ) const
inline

◆ erase() [1/2]

template<class T >
iterator sofa::helper::WriteAccessorVector< T >::erase ( const_iterator  pos)
inline

◆ erase() [2/2]

template<class T >
iterator sofa::helper::WriteAccessorVector< T >::erase ( iterator  pos)
inline

◆ front() [1/2]

template<class T >
reference sofa::helper::WriteAccessorVector< T >::front ( )
inline

◆ front() [2/2]

template<class T >
const_reference sofa::helper::WriteAccessorVector< T >::front ( ) const
inline

◆ insert()

template<class T >
iterator sofa::helper::WriteAccessorVector< T >::insert ( const_iterator  pos,
const T &  value 
)
inline

◆ operator const_container_type()

template<class T >
sofa::helper::WriteAccessorVector< T >::operator const_container_type ( ) const
inline

◆ operator container_type()

template<class T >
sofa::helper::WriteAccessorVector< T >::operator container_type ( )
inline

◆ operator*() [1/2]

template<class T >
container_type& sofa::helper::WriteAccessorVector< T >::operator* ( )
inline

◆ operator*() [2/2]

template<class T >
const_container_type& sofa::helper::WriteAccessorVector< T >::operator* ( ) const
inline

◆ operator->() [1/2]

template<class T >
container_type* sofa::helper::WriteAccessorVector< T >::operator-> ( )
inline

◆ operator->() [2/2]

template<class T >
const_container_type* sofa::helper::WriteAccessorVector< T >::operator-> ( ) const
inline

◆ operator[]() [1/2]

template<class T >
reference sofa::helper::WriteAccessorVector< T >::operator[] ( Size  pos)
inline

◆ operator[]() [2/2]

template<class T >
const_reference sofa::helper::WriteAccessorVector< T >::operator[] ( Size  pos) const
inline

◆ pop_back()

template<class T >
void sofa::helper::WriteAccessorVector< T >::pop_back ( )
inline

◆ push_back()

template<class T >
void sofa::helper::WriteAccessorVector< T >::push_back ( const value_type v)
inline

◆ ref()

template<class T >
const container_type& sofa::helper::WriteAccessorVector< T >::ref ( ) const
inline

this one duplicate operator*

◆ reserve()

template<class T >
void sofa::helper::WriteAccessorVector< T >::reserve ( Size  s)
inline

◆ resize()

template<class T >
void sofa::helper::WriteAccessorVector< T >::resize ( Size  s)
inline

◆ size()

template<class T >
Size sofa::helper::WriteAccessorVector< T >::size ( ) const
inline

◆ wref()

template<class T >
container_type& sofa::helper::WriteAccessorVector< T >::wref ( )
inline