#include <iostream>#include "BESIndent.h"


Go to the source code of this file.
Classes | |
| class | BESObj |
| Base object for bes objects. More... | |
Defines | |
| #define | A_BESObj_h 1 |
| top level BES object to house generic methods | |
Functions | |
| ostream & | operator<< (ostream &strm, const BESObj &obj) |
| dump the contents of the specified object to the specified ostream | |
| #define A_BESObj_h 1 |
top level BES object to house generic methods
| ostream& operator<< | ( | ostream & | strm, | |
| const BESObj & | obj | |||
| ) | [inline] |
dump the contents of the specified object to the specified ostream
This inline method uses the dump method of the BESObj instance passed to it. This allows a user to dump the contents of an object instead of just getting the pointer value of the object.
For example, the object Animal is derived from BESObj. A user could do the following:
Animal *a = new dog( "Sparky" ) ; cout << a << endl ;
And the dump method for dog could display the name passed into the constructor, the (this) pointer of the object, etc...
| strm | C++ i/o stream to dump the object to | |
| obj | The BESObj to dump |
References BESObj::dump().

1.5.8