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