Puma Reference Manual Puma: Puma::PreMacro Class Reference



Puma::PreMacro Class Reference

#include <PreMacro.h>

Inherits Puma::Chain.

List of all members.

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 DStringgetName () const
const char * getBody () const
const UnitgetBodyUnit (CScanner &scanner)
short numArgs () const
MacroArgsgetArgs () 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)

Member Typedef Documentation

typedef Array<const char *> 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 char *  arg_name  ) 
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]
void Puma::PreMacro::location ( Location  l  )  [inline]
Location Puma::PreMacro::location (  )  const [inline]
short Puma::PreMacro::numArgs (  )  const [inline]
void Puma::PreMacro::setBody ( const char *   ) 
bool Puma::PreMacro::varArgs (  )  const [inline]



Puma Reference Manual. Created on 24 Nov 2009.