Aegis  4.25.D505
Public Member Functions | Private Member Functions | Private Attributes
introspector_vector Class Reference

#include <vector.h>

Public Member Functions

virtual ~introspector_vector ()
 introspector_vector ()
 introspector_vector (const introspector_vector &)
introspector_vectoroperator= (const introspector_vector &)
void clear ()
bool empty () const
size_t size () const
introspector::pointer back () const
void push_back (const introspector::pointer &ip)
void push_back (const introspector_vector &il)
void pop_back ()

Private Member Functions

void grow_slow (size_t nitems)
void grow (size_t nitems)

Private Attributes

size_t length
size_t maximum
introspector::pointeritem

Detailed Description

The introspector_vector class is used to represent an ordered list of introspector::pointer values. It has O(1) append times.

Definition at line 28 of file vector.h.


Constructor & Destructor Documentation

The destructor.

The default constructor.

The copy constructor.


Member Function Documentation

The back method is used to obtain the item on the back of the vector.

Definition at line 71 of file vector.h.

The clear method is used to discard all items in the vector.

bool introspector_vector::empty ( void  ) const [inline]

The empty method is used to determine whether or not the vector is empty.

Definition at line 60 of file vector.h.

void introspector_vector::grow ( size_t  nitems) [inline, private]

The grow method is used to ensure the is sufficient allocated space.

Parameters:
nitemsThe number of items to grow by.

Definition at line 142 of file vector.h.

void introspector_vector::grow_slow ( size_t  nitems) [private]

The grow_slow method is used to allocate more space, in the case where the current allocation has grown too small.

Parameters:
nitemsThe number of items to grow by.
introspector_vector& introspector_vector::operator= ( const introspector_vector )

The assignment operator.

The pop_back method is used to discard the last item from this vector.

The push_back method is used to append another item to the end of the vector.

Parameters:
ipThe item to be appended.

Definition at line 85 of file vector.h.

The push_back method is used to append the contents of another vector to the end of this vector.

Parameters:
ilThe introspector vector to be appended.
size_t introspector_vector::size ( void  ) const [inline]

The size method is used to obtain the number of items in the vector.

Definition at line 65 of file vector.h.


Field Documentation

The item instance variable is used to remember the address of the base of an allocated array of introspector pointers.

Definition at line 123 of file vector.h.

size_t introspector_vector::length [private]

The length instance variable is used to remember the number of used entries in the allocated item array.

Definition at line 111 of file vector.h.

size_t introspector_vector::maximum [private]

The maximum instance variable is used to remember the size of the allocated item array.

Definition at line 117 of file vector.h.


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