QSDK 1.1 Documentation
Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

Q::List Struct Reference
[QServer]

A collection of objects. More...

#include <Q/q.h>

Inheritance diagram for Q::List:

Q::ObjectBase List of all members.

Public Member Functions

 List ()
unsigned int size () const
Object at (unsigned int i) const
void at (unsigned int i, const Object &obj)

Static Public Member Functions

List create ()
ClassType classType ()
List cast (const ObjectBase &)

Detailed Description

A collection of objects.

A List represents a reference to a dynamically extendable array of persistent objects.


Constructor & Destructor Documentation

Q::List::List  ) 
 

Create a null list reference.


Member Function Documentation

void Q::List::at unsigned int  i,
const Object obj
 

Store the object obj at the position i in the list, extending the list if necessary.

Object Q::List::at unsigned int  i  )  const
 

Return the object at the position i in the list.

List Q::List::cast const ObjectBase  )  [static]
 

If the object referenced by obj is a List, then return a suitable reference to the object.

ClassType Q::List::classType  )  [static]
 

Return the type of this class.

List Q::List::create  )  [static]
 

Return a reference to a new empty list.

unsigned int Q::List::size  )  const
 

Return the number of elements in the list.

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004