203 virtual void Dump( FILE* f )
const;
225 #endif // CSIMPLETYPE_H virtual CDataType * Clone(CObstack *heap)
Create a new copy with a deep copy.
virtual int PackedWidthDirection(void) const
Evaluate current decl width direction.
virtual int GetUnsignedAttr() const
Get declaration's unsigned attribute.
Definition: csimpletype.h:72
virtual CNode * GetPackedMsi(INT32 dim) const
Get expression tree for upper limit of given packed array dimension.
virtual CNode * GetPackedLsb() const
Get expression for declaration's lsb.
virtual int GetTwoState() const
Get declaration's 2 state property.
virtual int IsBaseWidthConstant(void) const
Determine if base width (sans packed dimensions) of declaration is constant, ie dependent upon only c...
Definition: csimpletype.h:105
virtual CNode * GetPackedLsi(INT32 dim) const
Get expression tree for lower limit of packed array dimension.
void Copy(CObstack *heap, const CSimpleType &o)
Perform deep copy of given object to this one This should never be call directly, only by subclasses...
virtual int GetSigned() const
Get declartion's signed property.
virtual int IsBaseWidthVolatile(void) const
Determine if base width (sans packed dimensions) of declaration is volatile, ie depend upon parameter...
Definition: csimpletype.h:113
long INT32
Short cut for signed 32 bit integer.
Definition: glue.h:38
virtual NodeType_t GetNodeType(void) const
Get data type.
virtual void Dump(FILE *f) const
Dump data type info to file descriptor.
Base class for describing data types.
Definition: cdatatype.h:112
class for describing simple builtin data types
Definition: csimpletype.h:40
Bulk object allocation object.
Definition: cobstack.h:46
virtual INT32 GetNumberOfPackedDimensions(void) const
Get number of packed dimensions of declaration.
Primary data structure representing parse tree nodes.
Definition: cnode.h:197
CSimpleType(VarDataType_t vt)
Create data type instance.
virtual CNode * GetPackedWidthExp() const
Get expression for datatype's overall packed or vetor width.
virtual int IsPacked() const
Determine if complete data structure is packed.
virtual INT32 GetBaseWidth(void) const
Evaluate base width (sans packed dimensions) of declaration.
virtual CNode * GetPackedRange() const
Get expression for datatype's overall packed or vector range (msb/lsb)
virtual int GetSignedAttr() const
Get declaration's signed attribute.
Definition: csimpletype.h:67
int GetVectorWidth() const
Get width of vector.
virtual int IsVector() const
Determine if complete data structure is a vector.
virtual int IsBaseWidthEvaluateable(void) const
Determine if base width (sans packed dimensions) of declaration can be evaluated. ...
Definition: csimpletype.h:120
virtual CNode * GetBaseWidthExp() const
Get expression for datatype's base width (sans packed dimensions)
VarDataType_t
Variable data types.
Definition: cdatatype.h:42
NodeType_t
Expression node type.
Definition: cdatatype.h:101
virtual CNode * GetPackedMsb() const
Get expression for declaration's msb.
virtual INT32 GetPackedWidth(void) const
Evaluate packed or vector width of declaration.
virtual void SetUnsignedAttr(int v)
Set declaration's unsigned attribute.
Definition: csimpletype.h:82
virtual void SetSignedAttr(int v)
Set declaration's signed attribute.
Definition: csimpletype.h:77