class SymbolObject

Holds symbol information; used by BalancedTree

Public Methods

[more] SymbolObject()
Default constructor
[more] ~SymbolObject()
Destructor
[more] SymbolObject(const SymbolObject &)
Copy constructor
[more]const SymbolObject& operator=(const SymbolObject &)
Overridden assignment operator
[more]String* getIdentifier()
Returns identifier string (symbol name)
[more]void setIdentifier(String* )
Sets identifier string
[more]int getLine()
Gets line number where symbol appears
[more]void setLine(int l)
Sets line number
[more]int getCol()
Gets column number where symbol appears
[more]void setCol(int c)
Sets column number
[more]SymTypeEnum getType()
Gets type of symbol
[more]void setType(SymTypeEnum)
Gets type of symbol
[more]virtual int getOffset() = 0
Get symbol offset
[more]virtual SymClass isA() = 0
Get type of derived object


Documentation

Holds symbol information; used by BalancedTree
o SymbolObject()
Default constructor

o ~SymbolObject()
Destructor

o SymbolObject(const SymbolObject &)
Copy constructor

oconst SymbolObject& operator=(const SymbolObject &)
Overridden assignment operator

oString* getIdentifier()
Returns identifier string (symbol name)

ovoid setIdentifier(String* )
Sets identifier string

oint getLine()
Gets line number where symbol appears

ovoid setLine(int l)
Sets line number

oint getCol()
Gets column number where symbol appears

ovoid setCol(int c)
Sets column number

oSymTypeEnum getType()
Gets type of symbol

ovoid setType(SymTypeEnum)
Gets type of symbol

ovirtual int getOffset() = 0
Get symbol offset

ovirtual SymClass isA() = 0
Get type of derived object


This class has no child classes.
Friends:
ostream &operator<<(ostream &, SymbolObject &)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.