vrq
Public Member Functions | Protected Member Functions

CVar Class Reference

Declaration object for variables. More...

#include <cvar.h>

Inheritance diagram for CVar:
CDecl CObject

List of all members.

Public Member Functions

 CVar (CSymbol *symbol, Coord_t *aLoc, CDataType *dataType, int undefined=FALSE)
 Create a register declaration.
virtual CDeclClone (CObstack *heap)
 Create a clone of this declaration.
int GetUndefined (void)
 Get undefined attribute.
void SetUndefined (int value)
 Set undefined attribute.
virtual void Dump (FILE *f)
 Dump register info to file.

Protected Member Functions

void Copy (CObstack *heap, CVar &var)

Detailed Description

Declaration object for variables.


Constructor & Destructor Documentation

CVar::CVar ( CSymbol symbol,
Coord_t aLoc,
CDataType dataType,
int  undefined = FALSE 
)

Create a register declaration.

Parameters:
symbol declaration symbol.
aLoc file coordinates.
dataType variable data type.
undefined non-zero if register is undefined in source.

Member Function Documentation

virtual CDecl* CVar::Clone ( CObstack heap  )  [virtual]

Create a clone of this declaration.

Parameters:
heap heap to use for allocation.
Returns:
new declaration.

Implements CDecl.

void CVar::Copy ( CObstack heap,
CVar var 
) [protected]
virtual void CVar::Dump ( FILE *  f  )  [virtual]

Dump register info to file.

Parameters:
f file descriptor.

Reimplemented from CDecl.

int CVar::GetUndefined ( void   )  [inline]

Get undefined attribute.

Returns:
undefined attribute.
void CVar::SetUndefined ( int  value  )  [inline]

Set undefined attribute.

Parameters:
value set undefined attribute.

The documentation for this class was generated from the following file: