PUMA Library Reference Manual
|
#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) |
Public Member Functions inherited from Puma::Chain | |
Chain () | |
Construct a single chain element. | |
void | select (Chain *element) |
Select an element as the next element. | |
Chain * | select () const |
Get the next element. | |
Chain * | unlink () |
Unlink the next element from the chain. | |
void | insert (Chain *element) |
Insert an element in the chain as the next element. | |
typedef std::list<std::string> Puma::PreMacro::MacroArgs |
Puma::PreMacro::PreMacro | ( | const DString & | , |
const char * | , | ||
char | = 0 ) |
Puma::PreMacro::PreMacro | ( | const PreMacro & | ) |
|
virtual |
void Puma::PreMacro::addArg | ( | const std::string & | arg_name | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Puma::PreMacro::setBody | ( | const char * | ) |
|
inline |