#include <NamedObject.h>
Public Member Functions | |
Get & set object name | |
std::string | get_name () const |
void | set_name (const std::string &name) |
Protected Member Functions | |
Constructors & destructor | |
NamedObject (ident_t id, const std::string &name) | |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &stream, const NamedObject &item) |
NamedObject | ( | ident_t | id, | |
const std::string & | name | |||
) | [protected] |
Creates a new instance and sets its identifier and name to the given parameters id and name, respectively.
id | Object identifier | |
name | Object name |
string get_name | ( | ) | const |
Returns the object's name.
void set_name | ( | const std::string & | name | ) |
Sets (i.e., overwrites) the object's name with the given parameter name.
name | New object name |
ostream & operator<< | ( | std::ostream & | stream, | |
const NamedObject & | item | |||
) | [related] |
Writes the numerical identifier and the name of the given NamedObject instance item to the output stream stream.
stream | Output stream | |
item | NamedObject instance |
![]() |
Copyright © 1998–2009 Forschungszentrum Jülich, Jülich Supercomputing Centre |