DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
Diades::Utils::UnquotedLabel< CharT, Traits, Alloc > Class Template Reference

#include <Label.hh>

Public Types

using GL = GenericLabel< CharT, Traits, Alloc >
 
using BasicString = typename GL::BasicString
 

Public Member Functions

 UnquotedLabel ()=default
 
 UnquotedLabel (const UnquotedLabel &label)=default
 
 UnquotedLabel (UnquotedLabel &&label)=default
 
 UnquotedLabel (const BasicString &s)
 
 UnquotedLabel (std::basic_istream< CharT > &is)
 
UnquotedLabeloperator= (const UnquotedLabel &label)
 
- Public Member Functions inherited from Diades::Utils::GenericLabel< CharT, Traits, Alloc >
const BasicStringtoString () const
 
bool isNull () const
 
GenericLabeloperator= (const GenericLabel &label)
 

Public Attributes

friend LabelGenerator< CharT, Traits, Alloc >
 

Private Member Functions

void checkUnquotedLabel (const BasicString &s)
 
void checkUnquotedLabel (std::basic_istream< CharT > &is)
 

Additional Inherited Members

- Protected Types inherited from Diades::Utils::GenericLabel< CharT, Traits, Alloc >
typedef std::basic_string< CharT, Traits, Alloc > BasicString
 
- Protected Member Functions inherited from Diades::Utils::GenericLabel< CharT, Traits, Alloc >
void setLabel (const BasicString &label)
 

Detailed Description

template<typename CharT, typename Traits, typename Alloc>
class Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >

An Unquoted label is a string that starts with either a letter 'a'..'z' or 'A'..'Z' or '_' followed by letters, digits or '_' characters An UnquotedLabel may be null (default constructor). If there is an attempt to initialise an UnquotedLabel with an incompatible string the Unquoted label is then null.

Definition at line 173 of file Label.hh.

Member Typedef Documentation

◆ BasicString

template<typename CharT, typename Traits, typename Alloc>
using Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::BasicString = typename GL::BasicString

Definition at line 180 of file Label.hh.

◆ GL

template<typename CharT, typename Traits, typename Alloc>
using Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::GL = GenericLabel<CharT, Traits, Alloc>

Definition at line 179 of file Label.hh.

Constructor & Destructor Documentation

◆ UnquotedLabel() [1/5]

template<typename CharT, typename Traits, typename Alloc>
Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::UnquotedLabel ( )
default

◆ UnquotedLabel() [2/5]

template<typename CharT, typename Traits, typename Alloc>
Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::UnquotedLabel ( const UnquotedLabel< CharT, Traits, Alloc > &  label)
default

◆ UnquotedLabel() [3/5]

template<typename CharT, typename Traits, typename Alloc>
Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::UnquotedLabel ( UnquotedLabel< CharT, Traits, Alloc > &&  label)
default

◆ UnquotedLabel() [4/5]

template<typename CharT, typename Traits, typename Alloc>
Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::UnquotedLabel ( const BasicString s)
inline

Definition at line 186 of file Label.hh.

◆ UnquotedLabel() [5/5]

template<typename CharT, typename Traits, typename Alloc>
Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::UnquotedLabel ( std::basic_istream< CharT > &  is)
inline

Definition at line 191 of file Label.hh.

Member Function Documentation

◆ checkUnquotedLabel() [1/2]

template<typename CharT, typename Traits, typename Alloc>
void Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::checkUnquotedLabel ( const BasicString s)
inlineprivate

Definition at line 205 of file Label.hh.

◆ checkUnquotedLabel() [2/2]

template<typename CharT, typename Traits, typename Alloc>
void Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::checkUnquotedLabel ( std::basic_istream< CharT > &  is)
inlineprivate

◆ operator=()

template<typename CharT, typename Traits, typename Alloc>
UnquotedLabel& Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::operator= ( const UnquotedLabel< CharT, Traits, Alloc > &  label)
inline

Member Data Documentation

◆ LabelGenerator< CharT, Traits, Alloc >

template<typename CharT, typename Traits, typename Alloc>
friend Diades::Utils::UnquotedLabel< CharT, Traits, Alloc >::LabelGenerator< CharT, Traits, Alloc >

Definition at line 176 of file Label.hh.


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