Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
UA_CoMP::Container Namespace Reference

Namespaces

 Impl_
 

Classes

class  SegmentedVector
 Container that stores objects "almost contiguously" and guarantees that pointers/iterators are not invalidated when the container grows, either through push_back/emplace_back of elements or resevation of capacity. More...
 
class  SVIterator
 Implementation of iterator for SegmentedVector. More...
 

Typedefs

template<typename T >
using CircularIterator = Impl_::CircularIterator< T, typename T::value_type >
 Alias template defines non-const circular iterator. More...
 
template<typename T >
using ConstCircularIterator = Impl_::CircularIterator< T, typename std::add_const< typename T::value_type >::type, typename std::add_const< typename T::value_type >::type *, typename std::add_const< typename T::value_type >::type & >
 Alias template defines const circular iterator. More...
 

Functions

template<typename T >
CircularIterator< typename
T::iterator > 
make_circular (T &c)
 Helper produces non-const circular iterator whose range corresponds to the begin and end iterators of a container. More...
 
template<typename T >
CircularIterator< typename
T::iterator > 
make_circular (T &c, typename T::iterator i)
 Helper produces non-const circular iterator whose range corresponds to the begin and end iterators of a container. More...
 
template<typename T >
CircularIterator< T > make_circular (T b, T e, T i)
 Helper produces non-const circular iterator with specified range and initial value. More...
 
template<typename T >
CircularIterator< T > make_circular (T b, T e)
 Helper produces non-const circular iterator with specified range with initial value at start of the range. More...
 
template<typename T >
CircularIterator< T > next (CircularIterator< T > i)
 Helper yields the position the iterator would have if moved forward (in circular fashion) by 1 position. More...
 
template<typename T >
CircularIterator< T > prev (CircularIterator< T > i)
 Helper yields the position the iterator would have if moved backward (in circular fashion) by 1 position. More...
 
template<typename T >
ConstCircularIterator
< typename T::const_iterator > 
make_const_circular (const T &c)
 Helper produces const circular iterator whose range corresponds to the begin and end iterators of a container. More...
 
template<typename T >
ConstCircularIterator
< typename T::const_iterator > 
make_const_circular (const T &c, typename T::const_iterator i)
 Helper produces const circular iterator whose range corresponds to the begin and end iterators of a container. More...
 
template<typename T >
ConstCircularIterator< T > make_const_circular (T b, T e, T i)
 Helper produces non-const circular iterator with specified range and initial value. More...
 
template<typename T >
ConstCircularIterator< T > make_const_circular (T b, T e)
 Helper produces non-const circular iterator with specified range, with initial value at the start of the range. More...
 
template<typename T >
ConstCircularIterator< T > next (ConstCircularIterator< T > c)
 Helper yields the position the iterator would have if moved forward (in circular fashion) by 1 position. More...
 
template<typename T >
ConstCircularIterator< T > prev (ConstCircularIterator< T > c)
 Helper yields the position the iterator would have if moved backward (in circular fashion) by 1 position. More...
 

Typedef Documentation

template<typename T >
using UA_CoMP::Container::CircularIterator = typedef Impl_::CircularIterator<T, typename T::value_type>

Alias template defines non-const circular iterator.

See Also
Impl_::CircularIterator

Definition at line 33 of file CircularIterator.h.

template<typename T >
using UA_CoMP::Container::ConstCircularIterator = typedef Impl_::CircularIterator<T, typename std::add_const<typename T::value_type>::type, typename std::add_const<typename T::value_type>::type*, typename std::add_const<typename T::value_type>::type&>

Alias template defines const circular iterator.

See Also
Impl_::CircularIterator

Definition at line 36 of file ConstCircularIterator.h.

Function Documentation

template<typename T >
CircularIterator<typename T::iterator> UA_CoMP::Container::make_circular ( T &  c)

Helper produces non-const circular iterator whose range corresponds to the begin and end iterators of a container.

Parameters
ccontainer
Returns
CircularIterator pointing to beginning of container

Definition at line 42 of file CircularIterator.h.

template<typename T >
CircularIterator<typename T::iterator> UA_CoMP::Container::make_circular ( T &  c,
typename T::iterator  i 
)

Helper produces non-const circular iterator whose range corresponds to the begin and end iterators of a container.

Parameters
ccontainer
Returns
CircularIterator pointing to beginning of container

Definition at line 54 of file CircularIterator.h.

template<typename T >
CircularIterator<T> UA_CoMP::Container::make_circular ( b,
e,
i 
)

Helper produces non-const circular iterator with specified range and initial value.

Parameters
biterator pointing to beginning of range
eiterator pointing to end of range
iinitial position of the iterator

Definition at line 67 of file CircularIterator.h.

template<typename T >
CircularIterator<T> UA_CoMP::Container::make_circular ( b,
e 
)

Helper produces non-const circular iterator with specified range with initial value at start of the range.

Parameters
biterator pointing to beginning of range
eiterator pointing to end of range

Definition at line 79 of file CircularIterator.h.

template<typename T >
CircularIterator<T> UA_CoMP::Container::next ( CircularIterator< T >  i)

Helper yields the position the iterator would have if moved forward (in circular fashion) by 1 position.

Parameters
icurrent iterator position
Returns
one position forward

Definition at line 91 of file CircularIterator.h.

template<typename T >
CircularIterator<T> UA_CoMP::Container::prev ( CircularIterator< T >  i)

Helper yields the position the iterator would have if moved backward (in circular fashion) by 1 position.

Parameters
icurrent iterator position
Returns
one position backward

Definition at line 104 of file CircularIterator.h.

template<typename T >
ConstCircularIterator<typename T::const_iterator> UA_CoMP::Container::make_const_circular ( const T &  c)

Helper produces const circular iterator whose range corresponds to the begin and end iterators of a container.

Parameters
ccontainer
Returns
CircularIterator pointing to beginning of container

Definition at line 45 of file ConstCircularIterator.h.

template<typename T >
ConstCircularIterator<typename T::const_iterator> UA_CoMP::Container::make_const_circular ( const T &  c,
typename T::const_iterator  i 
)

Helper produces const circular iterator whose range corresponds to the begin and end iterators of a container.

Parameters
ccontainer
Returns
CircularIterator pointing to beginning of container

Definition at line 57 of file ConstCircularIterator.h.

template<typename T >
ConstCircularIterator<T> UA_CoMP::Container::make_const_circular ( b,
e,
i 
)

Helper produces non-const circular iterator with specified range and initial value.

Parameters
biterator pointing to beginning of range
eiterator pointing to end of range
iinitial position of the iterator

Definition at line 70 of file ConstCircularIterator.h.

template<typename T >
ConstCircularIterator<T> UA_CoMP::Container::make_const_circular ( b,
e 
)

Helper produces non-const circular iterator with specified range, with initial value at the start of the range.

Parameters
biterator pointing to beginning of range
eiterator pointing to end of range

Definition at line 82 of file ConstCircularIterator.h.

template<typename T >
ConstCircularIterator<T> UA_CoMP::Container::next ( ConstCircularIterator< T >  c)

Helper yields the position the iterator would have if moved forward (in circular fashion) by 1 position.

Parameters
icurrent iterator position
Returns
one position forward

Definition at line 94 of file ConstCircularIterator.h.

template<typename T >
ConstCircularIterator<T> UA_CoMP::Container::prev ( ConstCircularIterator< T >  c)

Helper yields the position the iterator would have if moved backward (in circular fashion) by 1 position.

Parameters
icurrent iterator position
Returns
one position backward

Definition at line 107 of file ConstCircularIterator.h.