torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::physical::Renamable< T > Class Template Reference

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

#include <Renamable.hpp>

+ Inheritance diagram for torc::physical::Renamable< T >:
+ Collaboration diagram for torc::physical::Renamable< T >:

Public Member Functions

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

Protected Types

typedef std::string string
 Imported type name. More...
 

Protected Member Functions

void setName (const string &inName)
 Sets the object name. More...
 

Protected Attributes

string mName
 The name of the object. More...
 

Friends

class Progenitor< T >
 The Progenitor class has access to our internals. More...
 

Detailed Description

template<class T>
class torc::physical::Renamable< T >

Concept for any object that can be renamed.

Definition at line 42 of file physical/Renamable.hpp.

Member Typedef Documentation

template<class T>
typedef std::string torc::physical::Renamable< T >::string
protected

Imported type name.

Definition at line 46 of file physical/Renamable.hpp.

Constructor & Destructor Documentation

template<class T>
torc::physical::Renamable< T >::Renamable ( const string inName)
inline

Constructor which must specify the object name.

Parameters
inNameThe object name.

Definition at line 57 of file physical/Renamable.hpp.

57 : Named(inName) {}
Named(const string &inName)
Constructor which must specify the object name.
Definition: Named.hpp:48

Member Function Documentation

template<class T>
void torc::physical::Renamable< T >::deprecatedSetName ( const string inName)
inline

Illegally sets the object name.

Deprecated:
.

Definition at line 61 of file physical/Renamable.hpp.

61 { mName = inName; }
string mName
The name of the object.
Definition: Named.hpp:43
const string& torc::physical::Named::getName ( void  ) const
inlineinherited

Returns the object name.

Definition at line 51 of file Named.hpp.

51 { return mName; }
string mName
The name of the object.
Definition: Named.hpp:43

+ Here is the caller graph for this function:

bool torc::physical::Named::operator== ( const Named rhs) const
inlineinherited

Equality operator.

Definition at line 54 of file Named.hpp.

54 { return mName == rhs.mName; }
string mName
The name of the object.
Definition: Named.hpp:43
template<class T>
void torc::physical::Renamable< T >::setName ( const string inName)
inlineprotected

Sets the object name.

Definition at line 52 of file physical/Renamable.hpp.

52 { mName = inName; }
string mName
The name of the object.
Definition: Named.hpp:43

Friends And Related Function Documentation

template<class T>
friend class Progenitor< T >
friend

The Progenitor class has access to our internals.

Definition at line 49 of file physical/Renamable.hpp.

Field Documentation

string torc::physical::Named::mName
protectedinherited

The name of the object.

Definition at line 43 of file Named.hpp.


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