torc::physical::Named Class Reference

Concept for any object that can be named. More...

#include <Named.hpp>

Inheritance diagram for torc::physical::Named:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Named (const string &inName)
 Constructor which must specify the object name.
const stringgetName (void) const
 Returns the object name.
bool operator== (const Named &rhs) const
 Equality operator.

Protected Types

typedef std::string string
 Imported type name.

Protected Attributes

string mName
 The name of the object.


Detailed Description

Concept for any object that can be named.

No support is provided at this level for renaming, because many subclasses may may require oversight from their parent to avoid name collisions.

Todo:
Add a setName() accessor to support renaming. For many design elements, this may require permission from the parent, to avoid name collisions. We could make the function virtual, but that would come at the cost of a vtable, and that's very expensive for things like Config objects. In general, the renaming should probably be managed by the Progeny<T> template.

Definition at line 36 of file Named.hpp.


Member Typedef Documentation

typedef std::string torc::physical::Named::string [protected]


Constructor & Destructor Documentation

torc::physical::Named::Named ( const string inName  )  [inline]

Constructor which must specify the object name.

Parameters:
inName The object name.

Definition at line 48 of file Named.hpp.


Member Function Documentation

const string& torc::physical::Named::getName ( void   )  const [inline]

Returns the object name.

Definition at line 51 of file Named.hpp.

bool torc::physical::Named::operator== ( const Named rhs  )  const [inline]

Equality operator.

Definition at line 54 of file Named.hpp.


Member Data Documentation

The name of the object.

Definition at line 43 of file Named.hpp.


The documentation for this class was generated from the following file:

Generated on Thu Oct 13 16:50:47 2011 for TORC by  doxygen 1.5.6