dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

lout::misc::SimpleVector< T > Class Template Reference

Simple (simpler than container::untyped::Vector and container::typed::Vector) template based vector. More...

#include <misc.hh>

Collaboration diagram for lout::misc::SimpleVector< T >:
[legend]

Public Member Functions

 SimpleVector (int initAlloc=1)
 
 SimpleVector (const SimpleVector &o)
 
 ~SimpleVector ()
 
int size () const
 Return the number of elements put into this vector. More...
 
T * getArray () const
 
T * detachArray ()
 
void increase ()
 Increase the vector size by one. More...
 
void setSize (int newSize)
 Set the size explicitly. More...
 
void setSize (int newSize, T t)
 Set the size explicitly and initialize new values. More...
 
T * getRef (int i) const
 Return the reference of one element. More...
 
get (int i) const
 Return the one element, explicitly. More...
 
T * getFirstRef () const
 Return the reference of the first element (convenience method). More...
 
getFirst () const
 Return the first element, explicitly. More...
 
T * getLastRef () const
 Return the reference of the last element (convenience method). More...
 
getLast () const
 Return the last element, explicitly. More...
 
void set (int i, T t)
 Store an object in the vector. More...
 

Private Member Functions

void resize ()
 

Private Attributes

T * array
 
int num
 
int numAlloc
 

Detailed Description

template<class T>
class lout::misc::SimpleVector< T >

Simple (simpler than container::untyped::Vector and container::typed::Vector) template based vector.

Definition at line 71 of file misc.hh.

Constructor & Destructor Documentation

◆ SimpleVector() [1/2]

template<class T>
lout::misc::SimpleVector< T >::SimpleVector ( int  initAlloc = 1)
inline

Definition at line 95 of file misc.hh.

◆ SimpleVector() [2/2]

template<class T>
lout::misc::SimpleVector< T >::SimpleVector ( const SimpleVector< T > &  o)
inline

Definition at line 102 of file misc.hh.

◆ ~SimpleVector()

template<class T>
lout::misc::SimpleVector< T >::~SimpleVector ( )
inline

Definition at line 110 of file misc.hh.

Member Function Documentation

◆ detachArray()

template<class T>
T* lout::misc::SimpleVector< T >::detachArray ( )
inline

Definition at line 123 of file misc.hh.

Referenced by dw::Hyphenator::hyphenateWord(), and dw::Trie::load().

◆ get()

◆ getArray()

template<class T>
T* lout::misc::SimpleVector< T >::getArray ( ) const
inline

Definition at line 121 of file misc.hh.

Referenced by dw::Hyphenator::insertPattern().

◆ getFirst()

template<class T>
T lout::misc::SimpleVector< T >::getFirst ( ) const
inline

Return the first element, explicitly.

Definition at line 193 of file misc.hh.

◆ getFirstRef()

template<class T>
T* lout::misc::SimpleVector< T >::getFirstRef ( ) const
inline

Return the reference of the first element (convenience method).

Definition at line 185 of file misc.hh.

◆ getLast()

template<class T>
T lout::misc::SimpleVector< T >::getLast ( ) const
inline

Return the last element, explicitly.

Definition at line 209 of file misc.hh.

◆ getLastRef()

template<class T>
T* lout::misc::SimpleVector< T >::getLastRef ( ) const
inline

Return the reference of the last element (convenience method).

Definition at line 201 of file misc.hh.

Referenced by dw::Trie::load().

◆ getRef()

◆ increase()

◆ resize()

template<class T>
void lout::misc::SimpleVector< T >::resize ( )
inlineprivate

◆ set()

◆ setSize() [1/2]

◆ setSize() [2/2]

template<class T>
void lout::misc::SimpleVector< T >::setSize ( int  newSize,
t 
)
inline

Set the size explicitly and initialize new values.

May be necessary before calling misc::SimpleVector::set.

Definition at line 154 of file misc.hh.

◆ size()

Member Data Documentation

◆ array

◆ num

◆ numAlloc


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