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)  

Vector< void * > Class Reference

#include <vector.hh>

Inheritance diagram for Vector< void * >:
[legend]

Public Types

enum  { RESERVE_GROW = (size_type) -1 }
 
typedef voidvalue_type
 
typedef void *& reference
 
typedef void *constconst_reference
 
typedef void ** pointer
 
typedef void *constconst_pointer
 
typedef voidconst_access_type
 
typedef int size_type
 
typedef void ** iterator
 
typedef void *constconst_iterator
 

Public Member Functions

 Vector ()
 
 Vector (size_type n, void *e)
 
 Vector (const Vector< void * > &)
 
 ~Vector ()
 
Vector< void * > & operator= (const Vector< void * > &)
 
Vector< void * > & assign (size_type n, void *x=0)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
size_type size () const
 
void resize (size_type n, void *x=0)
 
size_type capacity () const
 
bool empty () const
 
bool reserve (size_type n)
 
void *& operator[] (size_type i)
 
voidoperator[] (size_type i) const
 
void *& at (size_type i)
 
voidat (size_type i) const
 
void *& front ()
 
voidfront () const
 
void *& back ()
 
voidback () const
 
void *& at_u (size_type i)
 
voidat_u (size_type i) const
 
void push_back (void *x)
 
void pop_back ()
 
void push_front (void *x)
 
void pop_front ()
 
iterator insert (iterator it, void *x)
 
iterator erase (iterator it)
 
iterator erase (iterator a, iterator b)
 
void swap (Vector< void * > &x)
 
void clear ()
 

Private Attributes

void ** _l
 
size_type _n
 
size_type _capacity
 

Detailed Description

Definition at line 145 of file vector.hh.

Member Typedef Documentation

◆ const_access_type

Definition at line 152 of file vector.hh.

◆ const_iterator

typedef void* const* Vector< void * >::const_iterator

Definition at line 158 of file vector.hh.

◆ const_pointer

typedef void* const* Vector< void * >::const_pointer

Definition at line 151 of file vector.hh.

◆ const_reference

Definition at line 149 of file vector.hh.

◆ iterator

typedef void** Vector< void * >::iterator

Definition at line 157 of file vector.hh.

◆ pointer

typedef void** Vector< void * >::pointer

Definition at line 150 of file vector.hh.

◆ reference

typedef void*& Vector< void * >::reference

Definition at line 148 of file vector.hh.

◆ size_type

typedef int Vector< void * >::size_type

Definition at line 154 of file vector.hh.

◆ value_type

typedef void* Vector< void * >::value_type

Definition at line 147 of file vector.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
RESERVE_GROW 

Definition at line 155 of file vector.hh.

Constructor & Destructor Documentation

◆ Vector() [1/3]

Vector< void * >::Vector ( )
inlineexplicit

Definition at line 160 of file vector.hh.

◆ Vector() [2/3]

Vector< void * >::Vector ( size_type  n,
void e 
)
inlineexplicit

Definition at line 163 of file vector.hh.

References e, n, and resize().

◆ Vector() [3/3]

Vector< void * >::Vector ( const Vector< void * > &  o)

Definition at line 24 of file vectorv.cc.

◆ ~Vector()

Vector< void * >::~Vector ( )

Definition at line 30 of file vectorv.cc.

References Vector< T >::_l.

Member Function Documentation

◆ assign()

Vector< void * > & Vector< void * >::assign ( size_type  n,
void x = 0 
)

Definition at line 49 of file vectorv.cc.

References Vector< T >::_n, e, n, and Vector< T >::resize().

◆ at() [1/2]

void*& Vector< void * >::at ( size_type  i)
inline

Definition at line 189 of file vector.hh.

References i, and Vector< T >::operator[]().

◆ at() [2/2]

void* Vector< void * >::at ( size_type  i) const
inline

Definition at line 190 of file vector.hh.

References i, and Vector< T >::operator[]().

◆ at_u() [1/2]

void*& Vector< void * >::at_u ( size_type  i)
inline

Definition at line 195 of file vector.hh.

References Vector< T >::_l, and i.

◆ at_u() [2/2]

void* Vector< void * >::at_u ( size_type  i) const
inline

Definition at line 196 of file vector.hh.

References Vector< T >::_l, and i.

◆ back() [1/2]

void*& Vector< void * >::back ( )
inline

Definition at line 193 of file vector.hh.

References Vector< T >::_n, and Vector< T >::operator[]().

◆ back() [2/2]

void* Vector< void * >::back ( ) const
inline

Definition at line 194 of file vector.hh.

References Vector< T >::_n, and Vector< T >::operator[]().

◆ begin() [1/2]

iterator Vector< void * >::begin ( )
inline

Definition at line 174 of file vector.hh.

References Vector< T >::_l.

◆ begin() [2/2]

const_iterator Vector< void * >::begin ( ) const
inline

Definition at line 175 of file vector.hh.

References Vector< T >::_l.

◆ capacity()

size_type Vector< void * >::capacity ( ) const
inline

Definition at line 182 of file vector.hh.

References Vector< T >::_capacity.

◆ clear()

void Vector< void * >::clear ( )
inline

Definition at line 207 of file vector.hh.

References Vector< T >::_n.

◆ empty()

bool Vector< void * >::empty ( void  ) const
inline

Definition at line 183 of file vector.hh.

References Vector< T >::_n.

◆ end() [1/2]

iterator Vector< void * >::end ( )
inline

Definition at line 176 of file vector.hh.

References Vector< T >::_l, and Vector< T >::_n.

Referenced by graphite2::json::setenv().

◆ end() [2/2]

const_iterator Vector< void * >::end ( ) const
inline

Definition at line 177 of file vector.hh.

References Vector< T >::_l, and Vector< T >::_n.

◆ erase() [1/2]

Vector< void * >::iterator Vector< void * >::erase ( iterator  a,
iterator  b 
)

Definition at line 79 of file vectorv.cc.

References Vector< T >::_n, a, assert(), b, Vector< T >::begin(), Vector< T >::end(), and memmove.

◆ erase() [2/2]

iterator Vector< void * >::erase ( iterator  it)
inline

◆ front() [1/2]

void*& Vector< void * >::front ( )
inline

Definition at line 191 of file vector.hh.

References Vector< T >::operator[]().

◆ front() [2/2]

void* Vector< void * >::front ( ) const
inline

Definition at line 192 of file vector.hh.

References Vector< T >::operator[]().

◆ insert()

iterator Vector< void * >::insert ( iterator  it,
void x 
)

Referenced by graphite2::json::setenv().

◆ operator=()

Vector< void * > & Vector< void * >::operator= ( const Vector< void * > &  o)

Definition at line 36 of file vectorv.cc.

References Vector< T >::_l, _l, Vector< T >::_n, _n, memcpy, and Vector< T >::reserve().

◆ operator[]() [1/2]

void*& Vector< void * >::operator[] ( size_type  i)
inline

Definition at line 187 of file vector.hh.

References Vector< T >::_l, Vector< T >::_n, assert(), and i.

◆ operator[]() [2/2]

void* Vector< void * >::operator[] ( size_type  i) const
inline

Definition at line 188 of file vector.hh.

References Vector< T >::_l, Vector< T >::_n, assert(), and i.

◆ pop_back()

void Vector< void * >::pop_back ( )
inline

Definition at line 227 of file vector.hh.

References Vector< T >::_l, Vector< T >::_n, and assert().

◆ pop_front()

void Vector< void * >::pop_front ( )
inline

Definition at line 249 of file vector.hh.

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

◆ push_back()

void Vector< void * >::push_back ( void x)
inline

◆ push_front()

void Vector< void * >::push_front ( void x)
inline

Definition at line 243 of file vector.hh.

References Vector< T >::begin(), Vector< T >::insert(), and cordic::x.

◆ reserve()

bool Vector< void * >::reserve ( size_type  n)

Definition at line 57 of file vectorv.cc.

References Vector< T >::_capacity, Vector< T >::_l, Vector< T >::_n, and memcpy.

Referenced by graphite2::json::setenv().

◆ resize()

void Vector< void * >::resize ( size_type  n,
void x = 0 
)

Definition at line 91 of file vectorv.cc.

References Vector< T >::_capacity, Vector< T >::_l, Vector< T >::_n, e, i, nn, and Vector< T >::reserve().

◆ size()

size_type Vector< void * >::size ( void  ) const
inline

Definition at line 180 of file vector.hh.

References Vector< T >::_n.

Referenced by graphite2::json::setenv().

◆ swap()

void Vector< void * >::swap ( Vector< void * > &  x)

Definition at line 101 of file vectorv.cc.

References Vector< T >::_capacity, _capacity, Vector< T >::_l, _l, Vector< T >::_n, _n, cutout::l, and n.

Member Data Documentation

◆ _capacity

size_type Vector< void * >::_capacity
private

Definition at line 213 of file vector.hh.

Referenced by swap().

◆ _l

void** Vector< void * >::_l
private

Definition at line 211 of file vector.hh.

Referenced by operator=(), and swap().

◆ _n

size_type Vector< void * >::_n
private

Definition at line 212 of file vector.hh.

Referenced by operator=(), and swap().


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