SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::helper::WriteAccessorVectorId< T > Class Template Reference

#include <integer_id.h>

WriteAccessor implementation class for vector_id types. More...

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

Detailed Description

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

WriteAccessor implementation class for vector_id types.

Protected Attributes

container_typevref
 

Public Member Functions

 WriteAccessorVectorId (container_type &container)
 
 ~WriteAccessorVectorId ()
 
const container_typeref () const
 
container_typewref ()
 
bool empty () const
 
size_type size () const
 
const_reference operator[] (index_type i) const
 
const_reference operator() (index_type i) const
 
reference operator[] (index_type i)
 
reference operator() (index_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)
 
index_type push_back (const_reference v)
 

Friends

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

Attribute details

template<class T>
container_type& sofa::helper::WriteAccessorVectorId< T >::vref
protected

Constructor details

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

Function details

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

Related details

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