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

#include <accessor.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)
 
const container_typeref () const
 
container_typewref ()
 
bool empty () const
 
size_type size () const
 
const_reference operator[] (size_type i) const
 
reference operator[] (size_type i)
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
void clear ()
 
void resize (size_type s, bool=true)
 
void reserve (size_type s)
 
void push_back (const value_type &v)
 

Friends

std::ostream & operator<< (std::ostream &os, const WriteAccessorVector< T > &vec)
 
std::istream & operator>> (std::istream &in, WriteAccessorVector< T > &vec)
 

Attribute details

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

Constructor details

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

Function details

template<class T>
const_iterator sofa::helper::WriteAccessorVector< T >::begin ( ) const
inline
template<class T>
iterator sofa::helper::WriteAccessorVector< T >::begin ( )
inline
template<class T>
void sofa::helper::WriteAccessorVector< T >::clear ( )
inline
template<class T>
bool sofa::helper::WriteAccessorVector< T >::empty ( ) const
inline
template<class T>
const_iterator sofa::helper::WriteAccessorVector< T >::end ( ) const
inline
template<class T>
iterator sofa::helper::WriteAccessorVector< T >::end ( )
inline
template<class T>
const_reference sofa::helper::WriteAccessorVector< T >::operator[] ( size_type  i) const
inline
template<class T>
reference sofa::helper::WriteAccessorVector< T >::operator[] ( size_type  i)
inline
template<class T>
void sofa::helper::WriteAccessorVector< T >::push_back ( const value_type v)
inline
template<class T>
const container_type& sofa::helper::WriteAccessorVector< T >::ref ( ) const
inline
template<class T>
void sofa::helper::WriteAccessorVector< T >::reserve ( size_type  s)
inline
template<class T>
void sofa::helper::WriteAccessorVector< T >::resize ( size_type  s,
bool  = true 
)
inline
template<class T>
size_type sofa::helper::WriteAccessorVector< T >::size ( void  ) const
inline
template<class T>
container_type& sofa::helper::WriteAccessorVector< T >::wref ( )
inline

Related details

template<class T>
std::ostream& operator<< ( std::ostream &  os,
const WriteAccessorVector< T > &  vec 
)
friend
template<class T>
std::istream& operator>> ( std::istream &  in,
WriteAccessorVector< T > &  vec 
)
friend