libdap++ Updated for version 3.8.2
|
Go to the source code of this file.
Classes | |
class | libdap::DapObj |
libdap base object for common functionality of libdap objects More... | |
Namespaces | |
namespace | libdap |
Functions | |
ostream & | operator<< (ostream &strm, const libdap::DapObj &obj) |
dump the contents of the specified object to the specified ostream |
ostream& operator<< | ( | ostream & | strm, |
const libdap::DapObj & | obj | ||
) | [inline] |
This inline method uses the dump method of the DapObj 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 DapObj. 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 DapObj to dump |
Definition at line 103 of file DapObj.h.
References libdap::DapObj::dump().