Puma Reference Manual | Puma::PreMacro Class Reference |
#include <PreMacro.h>
Public Types | |
enum | { FUNCTION_MACRO = 1, VAR_ARG_MACRO = 2, LOCK_MACRO = 4, INHIBIT_MACRO = 8 } |
typedef std::list< std::string > | 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 |
const MacroArgs * | getArgs () const |
void | addArg (const std::string &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 std::list<std::string> Puma::PreMacro::MacroArgs |
Puma::PreMacro::PreMacro | ( | const DString & | , |
PreTree * | , | ||
const char * | , | ||
char | = 0 |
||
) |
Puma::PreMacro::PreMacro | ( | const DString & | , |
MacroArgs * | , | ||
const char * | , | ||
char | = 0 |
||
) |
Puma::PreMacro::PreMacro | ( | const DString & | , |
const char * | , | ||
char | = 0 |
||
) |
Puma::PreMacro::PreMacro | ( | const PreMacro & | ) |
virtual Puma::PreMacro::~PreMacro | ( | ) | [virtual] |
void Puma::PreMacro::addArg | ( | const std::string & | arg_name | ) |
const MacroArgs* Puma::PreMacro::getArgs | ( | ) | const [inline] |
const char* Puma::PreMacro::getBody | ( | ) | const [inline] |
const Unit& Puma::PreMacro::getBodyUnit | ( | CScanner & | scanner | ) | [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] |