#include <yateclass.h>
Inheritance diagram for Array:
Public Member Functions | |
Array (int columns=0, int rows=0) | |
virtual | ~Array () |
virtual void * | getObject (const String &name) const |
bool | addRow (ObjList *row=0, int index=-1) |
bool | addColumn (ObjList *column=0, int index=-1) |
bool | delRow (int index) |
bool | delColumn (int index) |
GenObject * | get (int column, int row) const |
bool | set (GenObject *obj, int column, int row) |
int | getRows () const |
int | getColumns () const |
A simple Array class derivated from RefObject It uses one ObjList to keep the pointers to other ObjList's. Data is organized in columns - the main ObjList holds pointers to one ObjList for each column. This class has been written by Diana
|
Creates a new empty array.
|
|
Destructor. Destructs all objects in the array |
|
Insert a column of objects
|
|
Insert a row of objects
|
|
Delete an entire column of objects
|
|
Delete an entire row of objects
|
|
Retrive an object from the array
|
|
Get the number of columns in the array
|
|
Get a pointer to a derived class given that class name
Reimplemented from GenObject. |
|
Get the number of rows in the array
|
|
Store an object in the array
|