OpenSceneGraph  3.5.1
Public Types | Public Member Functions | Friends | List of all members
osg::MixinVector< ValueT > Class Template Reference

MixinVector is a base class that allows inheritance to be used to easily emulate derivation from std::vector but without introducing undefined behaviour through violation of virtual destructor rules. More...

Inheritance diagram for osg::MixinVector< ValueT >:
Inheritance graph
[legend]

Public Types

typedef vector_type::allocator_type allocator_type
 
typedef vector_type::value_type value_type
 
typedef vector_type::const_pointer const_pointer
 
typedef vector_type::pointer pointer
 
typedef vector_type::const_reference const_reference
 
typedef vector_type::reference reference
 
typedef vector_type::const_iterator const_iterator
 
typedef vector_type::iterator iterator
 
typedef vector_type::const_reverse_iterator const_reverse_iterator
 
typedef vector_type::reverse_iterator reverse_iterator
 
typedef vector_type::size_type size_type
 
typedef vector_type::difference_type difference_type
 

Public Member Functions

 MixinVector ()
 
 MixinVector (size_type initial_size, const value_type &fill_value=value_type())
 
template<class InputIterator >
 MixinVector (InputIterator first, InputIterator last)
 
 MixinVector (const vector_type &other)
 
 MixinVector (const MixinVector &other)
 
MixinVectoroperator= (const vector_type &other)
 
MixinVectoroperator= (const MixinVector &other)
 
virtual ~MixinVector ()
 
void clear ()
 
void resize (size_type new_size, const value_type &fill_value=value_type())
 
void reserve (size_type new_capacity)
 
void swap (vector_type &other)
 
void swap (MixinVector &other)
 
bool empty () const
 
size_type size () const
 
size_type capacity () const
 
size_type max_size () const
 
allocator_type get_allocator () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
const_reference operator[] (size_type index) const
 
reference operator[] (size_type index)
 
const_reference at (size_type index) const
 
reference at (size_type index)
 
void assign (size_type count, const value_type &value)
 
template<class Iter >
void assign (Iter first, Iter last)
 
void push_back (const value_type &value)
 
void pop_back ()
 
iterator erase (iterator where)
 
iterator erase (iterator first, iterator last)
 
iterator insert (iterator where, const value_type &value)
 
template<class InputIterator >
void insert (iterator where, InputIterator first, InputIterator last)
 
void insert (iterator where, size_type count, const value_type &value)
 
const_reference back () const
 
reference back ()
 
const_reference front () const
 
reference front ()
 
vector_type & asVector ()
 
const vector_type & asVector () const
 

Friends

bool operator== (const MixinVector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator== (const MixinVector< ValueT > &left, const std::vector< ValueT > &right)
 
bool operator== (const std::vector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator!= (const MixinVector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator!= (const MixinVector< ValueT > &left, const std::vector< ValueT > &right)
 
bool operator!= (const std::vector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator< (const MixinVector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator< (const MixinVector< ValueT > &left, const std::vector< ValueT > &right)
 
bool operator< (const std::vector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator> (const MixinVector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator> (const MixinVector< ValueT > &left, const std::vector< ValueT > &right)
 
bool operator> (const std::vector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator<= (const MixinVector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator<= (const MixinVector< ValueT > &left, const std::vector< ValueT > &right)
 
bool operator<= (const std::vector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator>= (const MixinVector< ValueT > &left, const MixinVector< ValueT > &right)
 
bool operator>= (const MixinVector< ValueT > &left, const std::vector< ValueT > &right)
 
bool operator>= (const std::vector< ValueT > &left, const MixinVector< ValueT > &right)
 

Detailed Description

template<class ValueT>
class osg::MixinVector< ValueT >

MixinVector is a base class that allows inheritance to be used to easily emulate derivation from std::vector but without introducing undefined behaviour through violation of virtual destructor rules.

Author
Neil Groves

Member Typedef Documentation

template<class ValueT>
typedef vector_type::allocator_type osg::MixinVector< ValueT >::allocator_type
template<class ValueT>
typedef vector_type::const_iterator osg::MixinVector< ValueT >::const_iterator
template<class ValueT>
typedef vector_type::const_pointer osg::MixinVector< ValueT >::const_pointer
template<class ValueT>
typedef vector_type::const_reference osg::MixinVector< ValueT >::const_reference
template<class ValueT>
typedef vector_type::const_reverse_iterator osg::MixinVector< ValueT >::const_reverse_iterator
template<class ValueT>
typedef vector_type::difference_type osg::MixinVector< ValueT >::difference_type
template<class ValueT>
typedef vector_type::iterator osg::MixinVector< ValueT >::iterator
template<class ValueT>
typedef vector_type::pointer osg::MixinVector< ValueT >::pointer
template<class ValueT>
typedef vector_type::reference osg::MixinVector< ValueT >::reference
template<class ValueT>
typedef vector_type::reverse_iterator osg::MixinVector< ValueT >::reverse_iterator
template<class ValueT>
typedef vector_type::size_type osg::MixinVector< ValueT >::size_type
template<class ValueT>
typedef vector_type::value_type osg::MixinVector< ValueT >::value_type

Constructor & Destructor Documentation

template<class ValueT>
osg::MixinVector< ValueT >::MixinVector ( )
inlineexplicit
template<class ValueT>
osg::MixinVector< ValueT >::MixinVector ( size_type  initial_size,
const value_type fill_value = value_type() 
)
inlineexplicit
template<class ValueT>
template<class InputIterator >
osg::MixinVector< ValueT >::MixinVector ( InputIterator  first,
InputIterator  last 
)
inline
template<class ValueT>
osg::MixinVector< ValueT >::MixinVector ( const vector_type &  other)
inline
template<class ValueT>
osg::MixinVector< ValueT >::MixinVector ( const MixinVector< ValueT > &  other)
inline
template<class ValueT>
virtual osg::MixinVector< ValueT >::~MixinVector ( )
inlinevirtual

Member Function Documentation

template<class ValueT>
void osg::MixinVector< ValueT >::assign ( size_type  count,
const value_type value 
)
inline
template<class ValueT>
template<class Iter >
void osg::MixinVector< ValueT >::assign ( Iter  first,
Iter  last 
)
inline
template<class ValueT>
vector_type& osg::MixinVector< ValueT >::asVector ( )
inline
template<class ValueT>
const vector_type& osg::MixinVector< ValueT >::asVector ( ) const
inline
template<class ValueT>
const_reference osg::MixinVector< ValueT >::at ( size_type  index) const
inline
template<class ValueT>
reference osg::MixinVector< ValueT >::at ( size_type  index)
inline
template<class ValueT>
const_reference osg::MixinVector< ValueT >::back ( ) const
inline
template<class ValueT>
reference osg::MixinVector< ValueT >::back ( )
inline
template<class ValueT>
const_iterator osg::MixinVector< ValueT >::begin ( ) const
inline
template<class ValueT>
iterator osg::MixinVector< ValueT >::begin ( )
inline
template<class ValueT>
size_type osg::MixinVector< ValueT >::capacity ( ) const
inline
template<class ValueT>
void osg::MixinVector< ValueT >::clear ( )
inline
template<class ValueT>
bool osg::MixinVector< ValueT >::empty ( ) const
inline
template<class ValueT>
const_iterator osg::MixinVector< ValueT >::end ( ) const
inline
template<class ValueT>
iterator osg::MixinVector< ValueT >::end ( )
inline
template<class ValueT>
iterator osg::MixinVector< ValueT >::erase ( iterator  where)
inline
template<class ValueT>
iterator osg::MixinVector< ValueT >::erase ( iterator  first,
iterator  last 
)
inline
template<class ValueT>
const_reference osg::MixinVector< ValueT >::front ( ) const
inline
template<class ValueT>
reference osg::MixinVector< ValueT >::front ( )
inline
template<class ValueT>
allocator_type osg::MixinVector< ValueT >::get_allocator ( ) const
inline
template<class ValueT>
iterator osg::MixinVector< ValueT >::insert ( iterator  where,
const value_type value 
)
inline
template<class ValueT>
template<class InputIterator >
void osg::MixinVector< ValueT >::insert ( iterator  where,
InputIterator  first,
InputIterator  last 
)
inline
template<class ValueT>
void osg::MixinVector< ValueT >::insert ( iterator  where,
size_type  count,
const value_type value 
)
inline
template<class ValueT>
size_type osg::MixinVector< ValueT >::max_size ( ) const
inline
template<class ValueT>
MixinVector& osg::MixinVector< ValueT >::operator= ( const vector_type &  other)
inline
template<class ValueT>
MixinVector& osg::MixinVector< ValueT >::operator= ( const MixinVector< ValueT > &  other)
inline
template<class ValueT>
const_reference osg::MixinVector< ValueT >::operator[] ( size_type  index) const
inline
template<class ValueT>
reference osg::MixinVector< ValueT >::operator[] ( size_type  index)
inline
template<class ValueT>
void osg::MixinVector< ValueT >::pop_back ( )
inline
template<class ValueT>
void osg::MixinVector< ValueT >::push_back ( const value_type value)
inline
template<class ValueT>
const_reverse_iterator osg::MixinVector< ValueT >::rbegin ( ) const
inline
template<class ValueT>
reverse_iterator osg::MixinVector< ValueT >::rbegin ( )
inline
template<class ValueT>
const_reverse_iterator osg::MixinVector< ValueT >::rend ( ) const
inline
template<class ValueT>
reverse_iterator osg::MixinVector< ValueT >::rend ( )
inline
template<class ValueT>
void osg::MixinVector< ValueT >::reserve ( size_type  new_capacity)
inline
template<class ValueT>
void osg::MixinVector< ValueT >::resize ( size_type  new_size,
const value_type fill_value = value_type() 
)
inline
template<class ValueT>
size_type osg::MixinVector< ValueT >::size ( ) const
inline
template<class ValueT>
void osg::MixinVector< ValueT >::swap ( vector_type &  other)
inline
template<class ValueT>
void osg::MixinVector< ValueT >::swap ( MixinVector< ValueT > &  other)
inline

Friends And Related Function Documentation

template<class ValueT>
bool operator!= ( const MixinVector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator!= ( const MixinVector< ValueT > &  left,
const std::vector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator!= ( const std::vector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator< ( const MixinVector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator< ( const MixinVector< ValueT > &  left,
const std::vector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator< ( const std::vector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator<= ( const MixinVector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator<= ( const MixinVector< ValueT > &  left,
const std::vector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator<= ( const std::vector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator== ( const MixinVector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator== ( const MixinVector< ValueT > &  left,
const std::vector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator== ( const std::vector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator> ( const MixinVector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator> ( const MixinVector< ValueT > &  left,
const std::vector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator> ( const std::vector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator>= ( const MixinVector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator>= ( const MixinVector< ValueT > &  left,
const std::vector< ValueT > &  right 
)
friend
template<class ValueT>
bool operator>= ( const std::vector< ValueT > &  left,
const MixinVector< ValueT > &  right 
)
friend

The documentation for this class was generated from the following file:

osg logo
Generated at Wed Nov 11 2015 22:14:37 for the OpenSceneGraph by doxygen 1.8.10.