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 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

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

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

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

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

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

void Puma::PreMacro::addArg ( const char *  arg_name  ) 

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

bool Puma::PreMacro::varArgs (  )  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]


Generated on Sat May 10 03:03:46 2008 for Puma by  doxygen 1.5.5