Puma Reference Manual | Puma: Puma::PreMacro Class Reference |
#include <PreMacro.h>
Public Types | |
enum | { FUNCTION_MACRO = 1, VAR_ARG_MACRO = 2, LOCK_MACRO = 4, INHIBIT_MACRO = 8 } |
typedef Array< const char * > | MacroArgs |
Public Member Functions | |
PreMacro (const DString &, PreTree *, const char *, char=0) | |
PreMacro (const DString &, MacroArgs *, const char *, char=0) | |
PreMacro (const DString &, const char *, char=0) | |
PreMacro (const PreMacro &) | |
virtual | ~PreMacro () |
const DString & | getName () const |
const char * | getBody () const |
const Unit & | getBodyUnit (CScanner &scanner) |
short | numArgs () const |
MacroArgs * | getArgs () const |
void | addArg (const char *arg_name) |
void | setBody (const char *) |
bool | varArgs () const |
bool | isFunction () const |
bool | isInhibited () const |
bool | isLocked () const |
Location | location () const |
void | location (Location l) |
typedef Array<const char *> Puma::PreMacro::MacroArgs |
Puma::PreMacro::PreMacro | ( | const DString & | , |
const char * | , | ||
char | = 0 |
||
) |
Puma::PreMacro::PreMacro | ( | const PreMacro & | ) |
virtual Puma::PreMacro::~PreMacro | ( | ) | [virtual] |
void Puma::PreMacro::addArg | ( | const char * | arg_name | ) |
MacroArgs* Puma::PreMacro::getArgs | ( | ) | const [inline] |
const char* Puma::PreMacro::getBody | ( | ) | const [inline] |
const DString& Puma::PreMacro::getName | ( | ) | const [inline] |
bool Puma::PreMacro::isFunction | ( | ) | const [inline] |
bool Puma::PreMacro::isInhibited | ( | ) | const [inline] |
bool Puma::PreMacro::isLocked | ( | ) | const [inline] |
Location Puma::PreMacro::location | ( | ) | const [inline] |
void Puma::PreMacro::location | ( | Location | l | ) | [inline] |
short Puma::PreMacro::numArgs | ( | ) | const [inline] |
void Puma::PreMacro::setBody | ( | const char * | ) |
bool Puma::PreMacro::varArgs | ( | ) | const [inline] |