In file Connections.h:

template class Connections

Holds a collection of Connect objects.

Public Methods

Connections(int max_connections = MAX_CONNECTIONS)
The constructor for the Connections object
Connections(const Connections &cs)
The specialized copy constructor
T& operator[](int i)
Indexing operator.
int add_connect(T c)
Add a Connect object to the array
void del_connect(int i)
Delete a Connect object from the array

Documentation

This object holds a collection of Connect objects. It contains methods to add and delete Connect objects from the collection, and defines the index operator ([]) to retrieve individual objects.
Connections(int max_connections = MAX_CONNECTIONS)
The constructor for the Connections object.
Parameters:
max_connections - The maximum number of open Connect objects this Connections object can hold. This number should not be bigger than the #MAX_CONNECTIONS# parameter in the Connections header file.

Connections(const Connections &cs)
The specialized copy constructor

T& operator[](int i)
This operator is how you retrieve Connect objects from the Connection collection.
Returns:
This function returns a reference to an element of the Connections array. It returns a reference so that this operator will work on both the left and right side of the assignment operator.

int add_connect(T c)
Add a Connect object to the array.
Returns:
The index of the newly added Connect object.
Parameters:
c - The Connect object to add to the array.

void del_connect(int i)
Delete a Connect object from the array.
Parameters:
i - The integer index of the object to remove from the array.


This class has no child classes.
See Also:
Connect

alphabetic index hierarchy of classes


generated by doc++