osgEarth 2.1.1
Public Types | Public Member Functions | Private Types | Private Attributes | Friends

osgEarth::MixinVector< ValueT, SuperClass > Class Template Reference

List of all members.

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_typeasVector ()
const vector_typeasVector () const

Private Types

typedef std::vector< ValueT > vector_type

Private Attributes

vector_type _impl

Friends

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

Detailed Description

template<class ValueT, class SuperClass>
class osgEarth::MixinVector< ValueT, SuperClass >

Same of osg::MixinVector, but with a superclass template parameter.

Definition at line 252 of file Utils.


Member Typedef Documentation

template<class ValueT, class SuperClass>
typedef vector_type::allocator_type osgEarth::MixinVector< ValueT, SuperClass >::allocator_type

Definition at line 256 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::const_iterator osgEarth::MixinVector< ValueT, SuperClass >::const_iterator

Definition at line 262 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::const_pointer osgEarth::MixinVector< ValueT, SuperClass >::const_pointer

Definition at line 258 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::const_reference osgEarth::MixinVector< ValueT, SuperClass >::const_reference

Definition at line 260 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::const_reverse_iterator osgEarth::MixinVector< ValueT, SuperClass >::const_reverse_iterator

Definition at line 264 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::difference_type osgEarth::MixinVector< ValueT, SuperClass >::difference_type

Definition at line 267 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::iterator osgEarth::MixinVector< ValueT, SuperClass >::iterator

Definition at line 263 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::pointer osgEarth::MixinVector< ValueT, SuperClass >::pointer

Definition at line 259 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::reference osgEarth::MixinVector< ValueT, SuperClass >::reference

Definition at line 261 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::reverse_iterator osgEarth::MixinVector< ValueT, SuperClass >::reverse_iterator

Definition at line 265 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::size_type osgEarth::MixinVector< ValueT, SuperClass >::size_type

Definition at line 266 of file Utils.

template<class ValueT, class SuperClass>
typedef vector_type::value_type osgEarth::MixinVector< ValueT, SuperClass >::value_type

Definition at line 257 of file Utils.

template<class ValueT, class SuperClass>
typedef std::vector<ValueT> osgEarth::MixinVector< ValueT, SuperClass >::vector_type [private]

Definition at line 254 of file Utils.


Constructor & Destructor Documentation

template<class ValueT, class SuperClass>
osgEarth::MixinVector< ValueT, SuperClass >::MixinVector ( ) [inline, explicit]

Definition at line 269 of file Utils.

                               : _impl()
        {
        }
template<class ValueT, class SuperClass>
osgEarth::MixinVector< ValueT, SuperClass >::MixinVector ( size_type  initial_size,
const value_type fill_value = value_type() 
) [inline, explicit]

Definition at line 273 of file Utils.

        : _impl(initial_size, fill_value)
        {
        }
template<class ValueT, class SuperClass>
template<class InputIterator >
osgEarth::MixinVector< ValueT, SuperClass >::MixinVector ( InputIterator  first,
InputIterator  last 
) [inline]

Definition at line 279 of file Utils.

        : _impl(first, last)
        {
        }
template<class ValueT, class SuperClass>
osgEarth::MixinVector< ValueT, SuperClass >::MixinVector ( const vector_type other) [inline]

Definition at line 284 of file Utils.

        : _impl(other)
        {
        }
template<class ValueT, class SuperClass>
osgEarth::MixinVector< ValueT, SuperClass >::MixinVector ( const MixinVector< ValueT, SuperClass > &  other) [inline]

Definition at line 289 of file Utils.

        : _impl(other._impl)
        {
        }
template<class ValueT, class SuperClass>
virtual osgEarth::MixinVector< ValueT, SuperClass >::~MixinVector ( ) [inline, virtual]

Definition at line 306 of file Utils.

{}

Member Function Documentation

template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::assign ( size_type  count,
const value_type value 
) [inline]

Definition at line 337 of file Utils.

{ _impl.assign(count, value); }
template<class ValueT, class SuperClass>
template<class Iter >
void osgEarth::MixinVector< ValueT, SuperClass >::assign ( Iter  first,
Iter  last 
) [inline]

Definition at line 339 of file Utils.

{ _impl.assign(first, last); }
template<class ValueT, class SuperClass>
vector_type& osgEarth::MixinVector< ValueT, SuperClass >::asVector ( ) [inline]

Definition at line 365 of file Utils.

{ return _impl; }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
const vector_type& osgEarth::MixinVector< ValueT, SuperClass >::asVector ( ) const [inline]

Definition at line 366 of file Utils.

{ return _impl; }
template<class ValueT, class SuperClass>
const_reference osgEarth::MixinVector< ValueT, SuperClass >::at ( size_type  index) const [inline]

Definition at line 334 of file Utils.

{ return _impl.at(index); }
template<class ValueT, class SuperClass>
reference osgEarth::MixinVector< ValueT, SuperClass >::at ( size_type  index) [inline]

Definition at line 335 of file Utils.

{ return _impl.at(index); }
template<class ValueT, class SuperClass>
const_reference osgEarth::MixinVector< ValueT, SuperClass >::back ( ) const [inline]

Definition at line 360 of file Utils.

{ return _impl.back(); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
reference osgEarth::MixinVector< ValueT, SuperClass >::back ( ) [inline]

Definition at line 361 of file Utils.

{ return _impl.back(); }
template<class ValueT, class SuperClass>
const_iterator osgEarth::MixinVector< ValueT, SuperClass >::begin ( ) const [inline]

Definition at line 321 of file Utils.

{ return _impl.begin(); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
iterator osgEarth::MixinVector< ValueT, SuperClass >::begin ( ) [inline]

Definition at line 322 of file Utils.

{ return _impl.begin(); }
template<class ValueT, class SuperClass>
size_type osgEarth::MixinVector< ValueT, SuperClass >::capacity ( ) const [inline]

Definition at line 317 of file Utils.

{ return _impl.capacity(); }
template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::clear ( ) [inline]

Definition at line 308 of file Utils.

{ _impl.clear(); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
bool osgEarth::MixinVector< ValueT, SuperClass >::empty ( ) const [inline]

Definition at line 315 of file Utils.

{ return _impl.empty(); }
template<class ValueT, class SuperClass>
iterator osgEarth::MixinVector< ValueT, SuperClass >::end ( ) [inline]

Definition at line 324 of file Utils.

{ return _impl.end(); }
template<class ValueT, class SuperClass>
const_iterator osgEarth::MixinVector< ValueT, SuperClass >::end ( ) const [inline]

Definition at line 323 of file Utils.

{ return _impl.end(); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
iterator osgEarth::MixinVector< ValueT, SuperClass >::erase ( iterator  where) [inline]

Definition at line 344 of file Utils.

{ return _impl.erase(where); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
iterator osgEarth::MixinVector< ValueT, SuperClass >::erase ( iterator  first,
iterator  last 
) [inline]

Definition at line 345 of file Utils.

{ return _impl.erase(first, last); }
template<class ValueT, class SuperClass>
reference osgEarth::MixinVector< ValueT, SuperClass >::front ( ) [inline]

Definition at line 363 of file Utils.

{ return _impl.front(); }
template<class ValueT, class SuperClass>
const_reference osgEarth::MixinVector< ValueT, SuperClass >::front ( ) const [inline]

Definition at line 362 of file Utils.

{ return _impl.front(); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
allocator_type osgEarth::MixinVector< ValueT, SuperClass >::get_allocator ( ) const [inline]

Definition at line 319 of file Utils.

{ return _impl.get_allocator(); }
template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::insert ( iterator  where,
size_type  count,
const value_type value 
) [inline]

Definition at line 355 of file Utils.

        {
            _impl.insert(where, count, value);
        }
template<class ValueT, class SuperClass>
template<class InputIterator >
void osgEarth::MixinVector< ValueT, SuperClass >::insert ( iterator  where,
InputIterator  first,
InputIterator  last 
) [inline]

Definition at line 350 of file Utils.

        {
            _impl.insert(where, first, last);
        }
template<class ValueT, class SuperClass>
iterator osgEarth::MixinVector< ValueT, SuperClass >::insert ( iterator  where,
const value_type value 
) [inline]

Definition at line 347 of file Utils.

{ return _impl.insert(where, value); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
size_type osgEarth::MixinVector< ValueT, SuperClass >::max_size ( ) const [inline]

Definition at line 318 of file Utils.

{ return _impl.max_size(); }
template<class ValueT, class SuperClass>
MixinVector& osgEarth::MixinVector< ValueT, SuperClass >::operator= ( const MixinVector< ValueT, SuperClass > &  other) [inline]

Definition at line 300 of file Utils.

        {
            _impl = other._impl;
            return *this;
        }
template<class ValueT, class SuperClass>
MixinVector& osgEarth::MixinVector< ValueT, SuperClass >::operator= ( const vector_type other) [inline]

Definition at line 294 of file Utils.

        {
            _impl = other;
            return *this;
        }
template<class ValueT, class SuperClass>
const_reference osgEarth::MixinVector< ValueT, SuperClass >::operator[] ( size_type  index) const [inline]

Definition at line 331 of file Utils.

{ return _impl[index]; }
template<class ValueT, class SuperClass>
reference osgEarth::MixinVector< ValueT, SuperClass >::operator[] ( size_type  index) [inline]

Definition at line 332 of file Utils.

{ return _impl[index]; }
template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::pop_back ( ) [inline]

Definition at line 342 of file Utils.

{ _impl.pop_back(); }
template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::push_back ( const value_type value) [inline]

Definition at line 341 of file Utils.

{ _impl.push_back(value); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
const_reverse_iterator osgEarth::MixinVector< ValueT, SuperClass >::rbegin ( ) const [inline]

Definition at line 326 of file Utils.

{ return _impl.rbegin(); }
template<class ValueT, class SuperClass>
reverse_iterator osgEarth::MixinVector< ValueT, SuperClass >::rbegin ( ) [inline]

Definition at line 327 of file Utils.

{ return _impl.rbegin(); }
template<class ValueT, class SuperClass>
reverse_iterator osgEarth::MixinVector< ValueT, SuperClass >::rend ( ) [inline]

Definition at line 329 of file Utils.

{ return _impl.rend(); }
template<class ValueT, class SuperClass>
const_reverse_iterator osgEarth::MixinVector< ValueT, SuperClass >::rend ( ) const [inline]

Definition at line 328 of file Utils.

{ return _impl.rend(); }
template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::reserve ( size_type  new_capacity) [inline]

Definition at line 310 of file Utils.

{ _impl.reserve(new_capacity); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::resize ( size_type  new_size,
const value_type fill_value = value_type() 
) [inline]

Definition at line 309 of file Utils.

{ _impl.resize(new_size, fill_value); }
template<class ValueT, class SuperClass>
size_type osgEarth::MixinVector< ValueT, SuperClass >::size ( ) const [inline]

Definition at line 316 of file Utils.

{ return _impl.size(); }

Here is the caller graph for this function:

template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::swap ( MixinVector< ValueT, SuperClass > &  other) [inline]

Definition at line 313 of file Utils.

{ _impl.swap(other._impl); }
template<class ValueT, class SuperClass>
void osgEarth::MixinVector< ValueT, SuperClass >::swap ( vector_type other) [inline]

Definition at line 312 of file Utils.

{ _impl.swap(other); }

Friends And Related Function Documentation

template<class ValueT, class SuperClass>
bool operator!= ( const MixinVector< ValueT, SuperClass > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 372 of file Utils.

{ return left._impl != right._impl; }
template<class ValueT, class SuperClass>
bool operator!= ( const MixinVector< ValueT, SuperClass > &  left,
const std::vector< ValueT > &  right 
) [friend]

Definition at line 373 of file Utils.

{ return left._impl != right; }
template<class ValueT, class SuperClass>
bool operator!= ( const std::vector< ValueT > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 374 of file Utils.

{ return left != right._impl; }
template<class ValueT, class SuperClass>
bool operator< ( const MixinVector< ValueT, SuperClass > &  left,
const std::vector< ValueT > &  right 
) [friend]

Definition at line 377 of file Utils.

{ return left._impl < right; }
template<class ValueT, class SuperClass>
bool operator< ( const std::vector< ValueT > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 378 of file Utils.

{ return left < right._impl; }
template<class ValueT, class SuperClass>
bool operator< ( const MixinVector< ValueT, SuperClass > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 376 of file Utils.

{ return left._impl < right._impl; }
template<class ValueT, class SuperClass>
bool operator<= ( const std::vector< ValueT > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 386 of file Utils.

{ return left <= right._impl; }
template<class ValueT, class SuperClass>
bool operator<= ( const MixinVector< ValueT, SuperClass > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 384 of file Utils.

{ return left._impl <= right._impl; }
template<class ValueT, class SuperClass>
bool operator<= ( const MixinVector< ValueT, SuperClass > &  left,
const std::vector< ValueT > &  right 
) [friend]

Definition at line 385 of file Utils.

{ return left._impl <= right; }
template<class ValueT, class SuperClass>
bool operator== ( const MixinVector< ValueT, SuperClass > &  left,
const std::vector< ValueT > &  right 
) [friend]

Definition at line 369 of file Utils.

{ return left._impl == right; }
template<class ValueT, class SuperClass>
bool operator== ( const MixinVector< ValueT, SuperClass > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 368 of file Utils.

{ return left._impl == right._impl; }
template<class ValueT, class SuperClass>
bool operator== ( const std::vector< ValueT > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 370 of file Utils.

{ return left == right._impl; }
template<class ValueT, class SuperClass>
bool operator> ( const std::vector< ValueT > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 382 of file Utils.

{ return left > right._impl; }
template<class ValueT, class SuperClass>
bool operator> ( const MixinVector< ValueT, SuperClass > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 380 of file Utils.

{ return left._impl > right._impl; }
template<class ValueT, class SuperClass>
bool operator> ( const MixinVector< ValueT, SuperClass > &  left,
const std::vector< ValueT > &  right 
) [friend]

Definition at line 381 of file Utils.

{ return left._impl > right; }
template<class ValueT, class SuperClass>
bool operator>= ( const MixinVector< ValueT, SuperClass > &  left,
const std::vector< ValueT > &  right 
) [friend]

Definition at line 389 of file Utils.

{ return left._impl >= right; }
template<class ValueT, class SuperClass>
bool operator>= ( const std::vector< ValueT > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 390 of file Utils.

{ return left >= right._impl; }
template<class ValueT, class SuperClass>
bool operator>= ( const MixinVector< ValueT, SuperClass > &  left,
const MixinVector< ValueT, SuperClass > &  right 
) [friend]

Definition at line 388 of file Utils.

{ return left._impl >= right._impl; }

Member Data Documentation

template<class ValueT, class SuperClass>
vector_type osgEarth::MixinVector< ValueT, SuperClass >::_impl [private]

Definition at line 393 of file Utils.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines