PUMA Library Reference Manual
Puma::PreMacro Class Reference

#include <PreMacro.h>

+ Inheritance diagram for Puma::PreMacro:

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 DStringgetName () const
 
const char * getBody () const
 
const UnitgetBodyUnit (CScanner &scanner)
 
short numArgs () const
 
const MacroArgsgetArgs () 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. More...
 
void select (Chain *element)
 Select an element as the next element. More...
 
Chainselect () const
 Get the next element. More...
 
Chainunlink ()
 Unlink the next element from the chain. More...
 
void insert (Chain *element)
 Insert an element in the chain as the next element. More...
 

Member Typedef Documentation

◆ MacroArgs

typedef std::list<std::string> Puma::PreMacro::MacroArgs

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FUNCTION_MACRO 
VAR_ARG_MACRO 
LOCK_MACRO 
INHIBIT_MACRO 

Constructor & Destructor Documentation

◆ PreMacro() [1/4]

Puma::PreMacro::PreMacro ( const DString ,
PreTree ,
const char *  ,
char  = 0 
)

◆ PreMacro() [2/4]

Puma::PreMacro::PreMacro ( const DString ,
MacroArgs ,
const char *  ,
char  = 0 
)

◆ PreMacro() [3/4]

Puma::PreMacro::PreMacro ( const DString ,
const char *  ,
char  = 0 
)

◆ PreMacro() [4/4]

Puma::PreMacro::PreMacro ( const PreMacro )

◆ ~PreMacro()

virtual Puma::PreMacro::~PreMacro ( )
virtual

Member Function Documentation

◆ addArg()

void Puma::PreMacro::addArg ( const std::string &  arg_name)

◆ getArgs()

const MacroArgs* Puma::PreMacro::getArgs ( ) const
inline

◆ getBody()

const char* Puma::PreMacro::getBody ( ) const
inline

◆ getBodyUnit()

const Unit& Puma::PreMacro::getBodyUnit ( CScanner scanner)
inline

◆ getName()

const DString& Puma::PreMacro::getName ( ) const
inline

◆ isFunction()

bool Puma::PreMacro::isFunction ( ) const
inline

◆ isInhibited()

bool Puma::PreMacro::isInhibited ( ) const
inline

◆ isLocked()

bool Puma::PreMacro::isLocked ( ) const
inline

◆ location() [1/2]

Location Puma::PreMacro::location ( ) const
inline

◆ location() [2/2]

void Puma::PreMacro::location ( Location  l)
inline

◆ numArgs()

short Puma::PreMacro::numArgs ( ) const
inline

◆ setBody()

void Puma::PreMacro::setBody ( const char *  )

◆ varArgs()

bool Puma::PreMacro::varArgs ( ) const
inline