Main Page
    Cookbook/Overview     ImageMeister     the jcprops file     Licensing
    Binary Installation & Configuration [ Win · Mac · Nix · OSX ]     Changes
    Public API
    Source Code Main Page
        Java [ Common · Win · Mac · Nix ]     Native Code [ Common · Win · Mac · Nix ]     Manifest
        Native Code Overviews [ Common · Win · Mac · Nix · Strings ]     Macros [ General · Native Macros ]
        Walkthroughs [ Java only · Java and native ]     Building [ Win · Mac · Nix · OSX ]     Distribution Issues

CVector

Stores a variable number of objects.

[ Common | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class CVector
{

public:
CVector( long initNum, long incr );
~CVector( void );
ErrCode append( void *obj );
void *elementAt( long i );
void setAt( long i, void *obj );
long getSize( void );
long findIndex( void *obj );
void remove( void *obj );
ErrCode insertAfter( void *obj, void *afterWhich );
ErrCode prepend( void *obj );
ErrCode insertAt( void *obj, long where );
protected:
}; // CVector

Back to the top of CVector


DESCRIPTION

Stores a variable number of void*'s.

Back to the top of CVector


CVector( long initNum, long incr );

Constructor

in initNum
the number of elements initially
in incr
the number of elements by which the internal array will grow when necessary. These two arguments have the same meaning as those to the Java Vector class' constructor.

	CVector( long initNum, long incr );

Back to the top of CVector


~CVector( void );

Destructor

	virtual	~CVector( void );

Back to the top of CVector


ErrCode append( void *obj );

Appends an object

	virtual	ErrCode	append( void *obj );

Back to the top of CVector


void *elementAt( long i );

Returns the i'th object, or NULL if i is not a valid index.

	virtual	void	*elementAt( long i );

Back to the top of CVector


void setAt( long i, void *obj );

Sets the indicated element. If 'i' is out of range, does nothing.

	virtual	void	setAt( long i, void *obj );

Back to the top of CVector


long getSize( void );

Returns the number of objects in this vector.

	virtual	long	getSize( void );

Back to the top of CVector


long findIndex( void *obj );

Returns the index of the given object, of -1 if not found.

	virtual	long	findIndex( void *obj );

Back to the top of CVector


void remove( void *obj );

Removes the given object.

	virtual	void	remove( void *obj );

Back to the top of CVector


ErrCode insertAfter( void *obj, void *afterWhich );

Inserts the given object after another object.

	virtual	ErrCode	insertAfter( void *obj, void *afterWhich );

Back to the top of CVector


ErrCode prepend( void *obj );

Prepends the given object.

	virtual ErrCode	prepend( void *obj );

Back to the top of CVector


ErrCode insertAt( void *obj, long where );

Inserts the given object at the given position.

	virtual	ErrCode	insertAt( void *obj, long where );

Back to the top of CVector


All Members

public:
ErrCode append( void *obj );
void *elementAt( long i );
void setAt( long i, void *obj );
long getSize( void );
long findIndex( void *obj );
void remove( void *obj );
ErrCode insertAfter( void *obj, void *afterWhich );
ErrCode prepend( void *obj );
ErrCode insertAt( void *obj, long where );
protected:

Back to the top of CVector


Ancestors

Class does not inherit from any other class.

Back to the top of CVector


Descendants

Class is not inherited by any others.

Back to the top of CVector


Generated from source by the Cocoon utilities on Fri Aug 23 12:33:50 2002 .

Report problems to jkotula@stratasys.com


Main Page · JConfig · ImageMeister · System Properties Repository · WordMeister · Free Samples · Java Freeware · Contact Us · FAQ · Links


Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.
WarpMovie, TileMovie, JConfig, ImageMeister and MovieShredder are Trademarks of Samizdat Productions.