GtkFC API Reference version 0.1.0

Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Examples  

Gvector Class Reference

#include <Gvector.h>

Inheritance diagram for Gvector:

Gset Gobject List of all members.

Public Methods

 Gvector ()
 ~Gvector ()
void Add (Gobject *o)
void Remove (int index)
void Remove (Gobject *o)
bool Contains (Gobject *o)
int GetIndex (Gobject *o)
int Length ()
GobjectGet (int index)
GiteratorGetIterator ()

Detailed Description

An expandable array of Gobject. All the algorythm used are linear. The vector is a destructive collection.
Author(s):
Thibaut Nicolas
Version:
0.1.0


Constructor & Destructor Documentation

Gvector::~Gvector ( )
 

Kill() all objects in the vector


Member Function Documentation

void Gvector::Add ( Gobject * o ) [virtual]
 

Add an obect to the vector and increase the object reference

Reimplemented from Gset.

bool Gvector::Contains ( Gobject * o ) [virtual]
 

Return true if the set contains the object

Reimplemented from Gset.

Gobject * Gvector::Get ( int index )
 

Return the object at the index index

int Gvector::GetIndex ( Gobject * o )
 

Return the index of the object.

Exceptions:
GTK::ItemNotFoundException   if object not found

Giterator * Gvector::GetIterator ( ) [virtual]
 

Return an iterator for the vector

Reimplemented from Gset.

int Gvector::Length ( ) [virtual]
 

Return the length of the vector

Reimplemented from Gset.

void Gvector::Remove ( Gobject * o ) [virtual]
 

Remove the object

Reimplemented from Gset.

void Gvector::Remove ( int index )
 

Remove an object at the index index and KIll() it


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

Copyright © 2002 Thibaut Nicolas
Last modified  lun sep 23 23:41:26 EDT 2002