PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::CSpecifiers Class Reference

#include <Puma/CSpecifiers.h>

Description

C/C++ declaration specifiers for the declaration of an entity.

Public Types

enum  Spec {
  SPEC_NONE = 0x0 ,
  SPEC_VIRTUAL = 0x1 ,
  SPEC_STATIC = 0x2 ,
  SPEC_EXTERN = 0x4 ,
  SPEC_MUTABLE = 0x8 ,
  SPEC_REGISTER = 0x10 ,
  SPEC_EXPLICIT = 0x20 ,
  SPEC_AUTO = 0x40 ,
  SPEC_INLINE = 0x80 ,
  SPEC_THREAD = 0x100
}
 Declaration specifiers. More...
 

Public Member Functions

 CSpecifiers ()
 Constructor. More...
 
 CSpecifiers (const CSpecifiers &copy)
 Copy-constructor. More...
 
CSpecifiersoperator= (const CSpecifiers &s)
 Assignment operator. More...
 
CSpecifiersoperator+= (Spec s)
 Add a declaration specifier. More...
 
CSpecifiersoperator-= (Spec s)
 Remove a declaration specifier. More...
 
bool operator== (Spec) const
 Check if the given declaration specifier was specified. More...
 
bool operator!= (Spec) const
 Check if the given declaration specifier was not specified. More...
 

Member Enumeration Documentation

◆ Spec

Declaration specifiers.

Enumerator
SPEC_NONE 

No declaration specifier.

SPEC_VIRTUAL 

Declaration specifier virtual.

SPEC_STATIC 

Declaration specifier static.

SPEC_EXTERN 

Declaration specifier extern.

SPEC_MUTABLE 

Declaration specifier mutable.

SPEC_REGISTER 

Declaration specifier register.

SPEC_EXPLICIT 

Declaration specifier explicit.

SPEC_AUTO 

Declaration specifier auto.

SPEC_INLINE 

Declaration specifier inline.

SPEC_THREAD 

Declaration specifier __thread.

Constructor & Destructor Documentation

◆ CSpecifiers() [1/2]

Puma::CSpecifiers::CSpecifiers ( )
inline

Constructor.

◆ CSpecifiers() [2/2]

Puma::CSpecifiers::CSpecifiers ( const CSpecifiers copy)
inline

Copy-constructor.

Parameters
copyThe declaration specifiers to copy.

Member Function Documentation

◆ operator!=()

bool Puma::CSpecifiers::operator!= ( CSpecifiers::Spec  s) const
inline

Check if the given declaration specifier was not specified.

Parameters
sThe declaration specifier.

◆ operator+=()

CSpecifiers & Puma::CSpecifiers::operator+= ( CSpecifiers::Spec  s)
inline

Add a declaration specifier.

Parameters
sThe declaration specifier.

◆ operator-=()

CSpecifiers & Puma::CSpecifiers::operator-= ( CSpecifiers::Spec  s)
inline

Remove a declaration specifier.

Parameters
sThe declaration specifier.

◆ operator=()

CSpecifiers & Puma::CSpecifiers::operator= ( const CSpecifiers s)
inline

Assignment operator.

Parameters
sThe assigned declaration specifiers.

◆ operator==()

bool Puma::CSpecifiers::operator== ( CSpecifiers::Spec  s) const
inline

Check if the given declaration specifier was specified.

Parameters
sThe declaration specifier.