index previous next




file name: address.hpp, address.cpp
classification: simulation
contents: class CAddr
use: provides a wrapper class for the CI address type addr


global items used:


member variables:

 addr addr_: The CI address.


member functions:

 CAddr (): Empty. The CI address is not initialized.

 CAddr (const addr *address): Copies address into addr.

 CAddr (const addr& address): Copies address into addr.

 CAddr (const CAddr& address): Copies address.addr into addr.

 void operator= (const CAddr& address): Copies address.addr into addr.

 int operator== (const CAddr& address): If address.addr is equal to addr (i.e., all bytes are equal), the function returns 1, else it returns 0.

 int operator!= (const CAddr& address): If address.addr is equal to addr, the function returns 0, else it returns 1.

 int operator< (const CAddr& address): If address.addr is less than addr (lexical order), the function returns 1, else it returns 0.

 int operator> (const CAddr& address): If address.addr is greater than addr, the function returns 1, else it returns 0.

 unsigned char& operator[] (unsigned short index): Returns the byte with index index in addr.


last modified: Fri Feb 5 18:55:53 1999