Puma Reference Manual Puma::PreMacro Class Reference



Puma::PreMacro Class Reference

#include <PreMacro.h>

Inheritance diagram for Puma::PreMacro:
Inheritance graph

List of all members.

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 ()
void select (Chain *c)
Chainselect () const
Chainunlink ()
void insert (Chain *c)

Member Typedef Documentation

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

Member Enumeration Documentation

anonymous enum
Enumerator:
FUNCTION_MACRO 
VAR_ARG_MACRO 
LOCK_MACRO 
INHIBIT_MACRO 

Constructor & Destructor Documentation

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

Member Function Documentation

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



Puma Reference Manual. Created on Sat Jun 30 2012.