w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

graphite2::Vector< T > Class Template Reference

#include <List.h>

Public Types

typedef Treference
 
typedef const Tconst_reference
 
typedef Titerator
 
typedef const Tconst_iterator
 
typedef Treference
 
typedef const Tconst_reference
 
typedef Titerator
 
typedef const Tconst_iterator
 

Public Member Functions

 Vector ()
 
 Vector (size_t n, const T &value=T())
 
 Vector (const Vector< T > &rhs)
 
template<typename I >
 Vector (I first, const I last)
 
 ~Vector ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
bool empty () const
 
size_t size () const
 
size_t capacity () const
 
void reserve (size_t n)
 
void resize (size_t n, const T &v=T())
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
Vector< T > & operator= (const Vector< T > &rhs)
 
reference operator[] (size_t n)
 
const_reference operator[] (size_t n) const
 
void assign (size_t n, const T &u)
 
void assign (const_iterator first, const_iterator last)
 
iterator insert (iterator p, const T &x)
 
void insert (iterator p, size_t n, const T &x)
 
void insert (iterator p, const_iterator first, const_iterator last)
 
void pop_back ()
 
void push_back (const T &v)
 
void clear ()
 
iterator erase (iterator p)
 
iterator erase (iterator first, iterator last)
 
 Vector ()
 
 Vector (size_t n, const T &value=T())
 
 Vector (const Vector< T > &rhs)
 
template<typename I >
 Vector (I first, const I last)
 
 ~Vector ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
bool empty () const
 
size_t size () const
 
size_t capacity () const
 
void reserve (size_t n)
 
void resize (size_t n, const T &v=T())
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
Vector< T > & operator= (const Vector< T > &rhs)
 
reference operator[] (size_t n)
 
const_reference operator[] (size_t n) const
 
void assign (size_t n, const T &u)
 
void assign (const_iterator first, const_iterator last)
 
iterator insert (iterator p, const T &x)
 
void insert (iterator p, size_t n, const T &x)
 
void insert (iterator p, const_iterator first, const_iterator last)
 
void pop_back ()
 
void push_back (const T &v)
 
void clear ()
 
iterator erase (iterator p)
 
iterator erase (iterator first, iterator last)
 

Private Member Functions

iterator _insert_default (iterator p, size_t n)
 
iterator _insert_default (iterator p, size_t n)
 

Private Attributes

Tm_first
 
Tm_last
 
Tm_end
 

Detailed Description

template<typename T>
class graphite2::Vector< T >

Definition at line 47 of file List.h.

Member Typedef Documentation

◆ const_iterator [1/2]

template<typename T >
typedef const T* graphite2::Vector< T >::const_iterator

Definition at line 54 of file List.h.

◆ const_iterator [2/2]

template<typename T >
typedef const T* graphite2::Vector< T >::const_iterator

Definition at line 54 of file List.h.

◆ const_reference [1/2]

template<typename T >
typedef const T& graphite2::Vector< T >::const_reference

Definition at line 52 of file List.h.

◆ const_reference [2/2]

template<typename T >
typedef const T& graphite2::Vector< T >::const_reference

Definition at line 52 of file List.h.

◆ iterator [1/2]

template<typename T >
typedef T* graphite2::Vector< T >::iterator

Definition at line 53 of file List.h.

◆ iterator [2/2]

template<typename T >
typedef T* graphite2::Vector< T >::iterator

Definition at line 53 of file List.h.

◆ reference [1/2]

template<typename T >
typedef T& graphite2::Vector< T >::reference

Definition at line 51 of file List.h.

◆ reference [2/2]

template<typename T >
typedef T& graphite2::Vector< T >::reference

Definition at line 51 of file List.h.

Constructor & Destructor Documentation

◆ Vector() [1/8]

template<typename T >
graphite2::Vector< T >::Vector ( )
inline

Definition at line 56 of file List.h.

◆ Vector() [2/8]

template<typename T >
graphite2::Vector< T >::Vector ( size_t  n,
const T value = T() 
)
inline

Definition at line 57 of file List.h.

References graphite2::Vector< T >::begin(), graphite2::Vector< T >::insert(), and n.

◆ Vector() [3/8]

◆ Vector() [4/8]

template<typename T >
template<typename I >
graphite2::Vector< T >::Vector ( I  first,
const I  last 
)
inline

Definition at line 60 of file List.h.

References graphite2::Vector< T >::begin(), first, graphite2::Vector< T >::insert(), and last.

◆ ~Vector() [1/2]

template<typename T >
graphite2::Vector< T >::~Vector ( )
inline

Definition at line 61 of file List.h.

References graphite2::Vector< T >::clear(), free, and graphite2::Vector< T >::m_first.

◆ Vector() [5/8]

template<typename T >
graphite2::Vector< T >::Vector ( )
inline

Definition at line 56 of file List.h.

◆ Vector() [6/8]

template<typename T >
graphite2::Vector< T >::Vector ( size_t  n,
const T value = T() 
)
inline

Definition at line 57 of file List.h.

References graphite2::Vector< T >::begin(), graphite2::Vector< T >::insert(), and n.

◆ Vector() [7/8]

◆ Vector() [8/8]

template<typename T >
template<typename I >
graphite2::Vector< T >::Vector ( I  first,
const I  last 
)
inline

Definition at line 60 of file List.h.

References graphite2::Vector< T >::begin(), first, graphite2::Vector< T >::insert(), and last.

◆ ~Vector() [2/2]

template<typename T >
graphite2::Vector< T >::~Vector ( )
inline

Definition at line 61 of file List.h.

References graphite2::Vector< T >::clear(), free, and graphite2::Vector< T >::m_first.

Member Function Documentation

◆ _insert_default() [1/2]

template<typename T >
Vector< T >::iterator Vector< T >::_insert_default ( iterator  p,
size_t  n 
)
inlineprivate

Definition at line 127 of file List.h.

References assert(), begin, graphite2::distance(), end, i, memmove, n, p, size, and T.

Referenced by graphite2::Vector< T >::insert().

◆ _insert_default() [2/2]

template<typename T >
iterator graphite2::Vector< T >::_insert_default ( iterator  p,
size_t  n 
)
private

◆ assign() [1/4]

template<typename T >
void graphite2::Vector< T >::assign ( const_iterator  first,
const_iterator  last 
)
inline

◆ assign() [2/4]

template<typename T >
void graphite2::Vector< T >::assign ( const_iterator  first,
const_iterator  last 
)
inline

◆ assign() [3/4]

template<typename T >
void graphite2::Vector< T >::assign ( size_t  n,
const T u 
)
inline

◆ assign() [4/4]

template<typename T >
void graphite2::Vector< T >::assign ( size_t  n,
const T u 
)
inline

◆ back() [1/4]

template<typename T >
reference graphite2::Vector< T >::back ( )
inline

Definition at line 78 of file List.h.

References assert(), graphite2::Vector< T >::end(), and graphite2::Vector< T >::size().

◆ back() [2/4]

template<typename T >
reference graphite2::Vector< T >::back ( )
inline

Definition at line 78 of file List.h.

References assert(), graphite2::Vector< T >::end(), and graphite2::Vector< T >::size().

◆ back() [3/4]

template<typename T >
const_reference graphite2::Vector< T >::back ( ) const
inline

Definition at line 79 of file List.h.

References assert(), graphite2::Vector< T >::end(), and graphite2::Vector< T >::size().

◆ back() [4/4]

template<typename T >
const_reference graphite2::Vector< T >::back ( ) const
inline

Definition at line 79 of file List.h.

References assert(), graphite2::Vector< T >::end(), and graphite2::Vector< T >::size().

◆ begin() [1/4]

◆ begin() [2/4]

template<typename T >
iterator graphite2::Vector< T >::begin ( )
inline

Definition at line 63 of file List.h.

References graphite2::Vector< T >::m_first.

◆ begin() [3/4]

template<typename T >
const_iterator graphite2::Vector< T >::begin ( ) const
inline

Definition at line 64 of file List.h.

References graphite2::Vector< T >::m_first.

◆ begin() [4/4]

template<typename T >
const_iterator graphite2::Vector< T >::begin ( ) const
inline

Definition at line 64 of file List.h.

References graphite2::Vector< T >::m_first.

◆ capacity() [1/2]

template<typename T >
size_t graphite2::Vector< T >::capacity ( ) const
inline

Definition at line 71 of file List.h.

References graphite2::Vector< T >::m_end, and graphite2::Vector< T >::m_first.

◆ capacity() [2/2]

template<typename T >
size_t graphite2::Vector< T >::capacity ( ) const
inline

Definition at line 71 of file List.h.

References graphite2::Vector< T >::m_end, and graphite2::Vector< T >::m_first.

◆ clear() [1/2]

◆ clear() [2/2]

template<typename T >
void graphite2::Vector< T >::clear ( )
inline

◆ empty() [1/2]

template<typename T >
bool graphite2::Vector< T >::empty ( ) const
inline

Definition at line 69 of file List.h.

References graphite2::Vector< T >::m_first, and graphite2::Vector< T >::m_last.

◆ empty() [2/2]

template<typename T >
bool graphite2::Vector< T >::empty ( void  ) const
inline

Definition at line 69 of file List.h.

References graphite2::Vector< T >::m_first, and graphite2::Vector< T >::m_last.

◆ end() [1/4]

◆ end() [2/4]

template<typename T >
iterator graphite2::Vector< T >::end ( )
inline

Definition at line 66 of file List.h.

References graphite2::Vector< T >::m_last.

◆ end() [3/4]

template<typename T >
const_iterator graphite2::Vector< T >::end ( ) const
inline

Definition at line 67 of file List.h.

References graphite2::Vector< T >::m_last.

◆ end() [4/4]

template<typename T >
const_iterator graphite2::Vector< T >::end ( ) const
inline

Definition at line 67 of file List.h.

References graphite2::Vector< T >::m_last.

◆ erase() [1/4]

template<typename T >
Vector< T >::iterator Vector< T >::erase ( iterator  first,
iterator  last 
)
inline

Definition at line 159 of file List.h.

References graphite2::distance(), e, end, first, last, memmove, sz, and T.

◆ erase() [2/4]

template<typename T >
iterator graphite2::Vector< T >::erase ( iterator  first,
iterator  last 
)

◆ erase() [3/4]

template<typename T >
iterator graphite2::Vector< T >::erase ( iterator  p)
inline

◆ erase() [4/4]

template<typename T >
iterator graphite2::Vector< T >::erase ( iterator  p)
inline

Definition at line 94 of file List.h.

References graphite2::Vector< T >::erase(), and p.

Referenced by graphite2::Vector< T >::erase().

◆ front() [1/4]

template<typename T >
reference graphite2::Vector< T >::front ( )
inline

◆ front() [2/4]

template<typename T >
reference graphite2::Vector< T >::front ( )
inline

Definition at line 76 of file List.h.

References assert(), graphite2::Vector< T >::begin(), and graphite2::Vector< T >::size().

◆ front() [3/4]

template<typename T >
const_reference graphite2::Vector< T >::front ( ) const
inline

Definition at line 77 of file List.h.

References assert(), graphite2::Vector< T >::begin(), and graphite2::Vector< T >::size().

◆ front() [4/4]

template<typename T >
const_reference graphite2::Vector< T >::front ( ) const
inline

Definition at line 77 of file List.h.

References assert(), graphite2::Vector< T >::begin(), and graphite2::Vector< T >::size().

◆ insert() [1/6]

◆ insert() [2/6]

template<typename T >
iterator graphite2::Vector< T >::insert ( iterator  p,
const T x 
)
inline

Definition at line 87 of file List.h.

References graphite2::Vector< T >::_insert_default(), p, T, and cordic::x.

◆ insert() [3/6]

template<typename T >
void Vector< T >::insert ( iterator  p,
const_iterator  first,
const_iterator  last 
)
inline

Definition at line 150 of file List.h.

References graphite2::distance(), first, last, p, and T.

◆ insert() [4/6]

template<typename T >
void graphite2::Vector< T >::insert ( iterator  p,
const_iterator  first,
const_iterator  last 
)

◆ insert() [5/6]

template<typename T >
void Vector< T >::insert ( iterator  p,
size_t  n,
const T x 
)
inline

Definition at line 141 of file List.h.

References n, p, T, and cordic::x.

◆ insert() [6/6]

template<typename T >
void graphite2::Vector< T >::insert ( iterator  p,
size_t  n,
const T x 
)

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ operator[]() [1/4]

template<typename T >
reference graphite2::Vector< T >::operator[] ( size_t  n)
inline

Definition at line 82 of file List.h.

References assert(), graphite2::Vector< T >::m_first, n, and graphite2::Vector< T >::size().

◆ operator[]() [2/4]

template<typename T >
reference graphite2::Vector< T >::operator[] ( size_t  n)
inline

Definition at line 82 of file List.h.

References assert(), graphite2::Vector< T >::m_first, n, and graphite2::Vector< T >::size().

◆ operator[]() [3/4]

template<typename T >
const_reference graphite2::Vector< T >::operator[] ( size_t  n) const
inline

Definition at line 83 of file List.h.

References assert(), graphite2::Vector< T >::m_first, n, and graphite2::Vector< T >::size().

◆ operator[]() [4/4]

template<typename T >
const_reference graphite2::Vector< T >::operator[] ( size_t  n) const
inline

Definition at line 83 of file List.h.

References assert(), graphite2::Vector< T >::m_first, n, and graphite2::Vector< T >::size().

◆ pop_back() [1/2]

template<typename T >
void graphite2::Vector< T >::pop_back ( )
inline

Definition at line 90 of file List.h.

References assert(), graphite2::Vector< T >::m_last, and graphite2::Vector< T >::size().

◆ pop_back() [2/2]

template<typename T >
void graphite2::Vector< T >::pop_back ( )
inline

Definition at line 90 of file List.h.

References assert(), graphite2::Vector< T >::m_last, and graphite2::Vector< T >::size().

◆ push_back() [1/2]

◆ push_back() [2/2]

◆ reserve() [1/2]

template<typename T >
void Vector< T >::reserve ( size_t  n)
inline

Definition at line 103 of file List.h.

References abort(), capacity, graphite2::checked_mul(), n, realloc, size, sz, and T.

Referenced by graphite2::Vector< T >::push_back(), and graphite2::Zones::Zones().

◆ reserve() [2/2]

template<typename T >
void graphite2::Vector< T >::reserve ( size_t  n)

◆ resize() [1/2]

template<typename T >
void Vector< T >::resize ( size_t  n,
const T v = T() 
)
inline

Definition at line 119 of file List.h.

References d, end, insert, n, size, and v.

Referenced by graphite2::FeatureRef::applyValToFeature().

◆ resize() [2/2]

template<typename T >
void graphite2::Vector< T >::resize ( size_t  n,
const T v = T() 
)

◆ size() [1/2]

◆ size() [2/2]

template<typename T >
size_t graphite2::Vector< T >::size ( void  ) const
inline

Definition at line 70 of file List.h.

References graphite2::Vector< T >::m_first, and graphite2::Vector< T >::m_last.

Member Data Documentation

◆ m_end

template<typename T >
T * Vector< T >::m_end
private

Definition at line 49 of file List.h.

Referenced by graphite2::Vector< T >::capacity(), and graphite2::Vector< T >::push_back().

◆ m_first

◆ m_last


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