DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Diades::Utils::IdentifierData Class Reference

This is the internal representation of an Identifier. More...

#include <Identifier.hh>

Public Types

typedef Utils::Exception< IdentifierDataException
 

Public Member Functions

 IdentifierData (const std::string &idLabel, unsigned id, double rank)
 
 IdentifierData (const IdentifierData &data)
 
unsigned id () const
 
double rank () const
 

Static Public Member Functions

static string typeName ()
 

Private Attributes

unsigned _id
 
double _rank
 

Detailed Description

This is the internal representation of an Identifier.

It is a special string whose content looks like an identifier, that is, a sequence of alpha-numeric characters and underscores.

Definition at line 60 of file Identifier.hh.

Member Typedef Documentation

◆ Exception

Definition at line 77 of file Identifier.hh.

Constructor & Destructor Documentation

◆ IdentifierData() [1/2]

Diades::Utils::IdentifierData::IdentifierData ( const std::string &  idLabel,
unsigned  id,
double  rank 
)
inline
Parameters
idLabelthe content of the new Identifier
idthe id of the new Identifier
rankthe rank of the new Identifier
Returns
the IdentifierData whose content is idLabel.

Definition at line 89 of file Identifier.hh.

◆ IdentifierData() [2/2]

Diades::Utils::IdentifierData::IdentifierData ( const IdentifierData data)
inline

Copy constructor

Definition at line 97 of file Identifier.hh.

Member Function Documentation

◆ id()

unsigned Diades::Utils::IdentifierData::id ( ) const
inline
Returns
the internal id of the IdentifierData

Definition at line 109 of file Identifier.hh.

References _id.

Referenced by Diades::Utils::Identifier::id().

◆ rank()

double Diades::Utils::IdentifierData::rank ( ) const
inline
Returns
the internal rank of the IdentifierData

Definition at line 117 of file Identifier.hh.

References _rank.

Referenced by Diades::Utils::Identifier::rank().

◆ typeName()

static string Diades::Utils::IdentifierData::typeName ( )
inlinestatic

Definition at line 76 of file Identifier.hh.

Member Data Documentation

◆ _id

unsigned Diades::Utils::IdentifierData::_id
private

_id internal id

Definition at line 67 of file Identifier.hh.

Referenced by id().

◆ _rank

double Diades::Utils::IdentifierData::_rank
private

_rank internal rank

Definition at line 72 of file Identifier.hh.

Referenced by rank().


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