Puma Reference Manual Puma: Puma::CSpecifiers Class Reference



Puma::CSpecifiers Class Reference

#include <Puma/CSpecifiers.h>

List of all members.


Detailed 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
}
 Declaration specifiers. More...

Public Member Functions

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


Member Enumeration Documentation

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.


Constructor & Destructor Documentation

Puma::CSpecifiers::CSpecifiers (  )  [inline]

Constructor.

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

Copy-constructor.

Parameters:
copy The declaration specifiers to copy.


Member Function Documentation

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

Assignment operator.

Parameters:
s The assigned declaration specifiers.

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

Add a declaration specifier.

Parameters:
s The declaration specifier.

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

Remove a declaration specifier.

Parameters:
s The declaration specifier.

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

Check if the given declaration specifier was specified.

Parameters:
s The declaration specifier.

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

Check if the given declaration specifier was not specified.

Parameters:
s The declaration specifier.




Puma Reference Manual. Created on 5 Nov 2008.