PUMA Library Reference Manual
|
#include <Puma/CSpecifiers.h>
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. | |
CSpecifiers (const CSpecifiers ©) | |
Copy-constructor. | |
CSpecifiers & | operator= (const CSpecifiers &s) |
Assignment operator. | |
CSpecifiers & | operator+= (Spec s) |
Add a declaration specifier. | |
CSpecifiers & | operator-= (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. | |
Declaration specifiers.
|
inline |
Constructor.
|
inline |
Copy-constructor.
copy | The declaration specifiers to copy. |
|
inline |
Check if the given declaration specifier was not specified.
s | The declaration specifier. |
|
inline |
Add a declaration specifier.
s | The declaration specifier. |
|
inline |
Remove a declaration specifier.
s | The declaration specifier. |
|
inline |
Assignment operator.
s | The assigned declaration specifiers. |
|
inline |
Check if the given declaration specifier was specified.
s | The declaration specifier. |