ACT Library
Loading...
Searching...
No Matches
Private Member Functions | Private Attributes | Friends | List of all members
Int Class Reference

Used to represent the built-in ACT int< > datatype. This is also used to represent enumerations. More...

#include <types.h>

Inheritance diagram for Int:
Type

Private Member Functions

const char * getName ()
 
IntExpand (ActNamespace *ns, Scope *s, int nt, inst_param *u)
 
int isEqual (const Type *t) const
 

Private Attributes

unsigned int kind:2
 0 = unsigned, 1 = signed, 2 = enum
 
int w
 
const char * name
 string name for the type (for printing)
 

Friends

class TypeFactory
 

Additional Inherited Members

- Public Types inherited from Type
enum  direction {
  NONE = 0 , IN = 1 , OUT = 2 , INOUT = 3 ,
  OUTIN = 4
}
 
- Public Member Functions inherited from Type
 Type ()
 
 ~Type ()
 constructor
 
virtual const char * getName ()=0
 destructor
 
virtual TypeExpand (ActNamespace *ns, Scope *s, int nt, inst_param *ip)=0
 
virtual int isEqual (const Type *t) const =0
 
- Static Public Member Functions inherited from Type
static void Init ()
 
static const char * dirstring (direction d)
 

Detailed Description

Used to represent the built-in ACT int< > datatype. This is also used to represent enumerations.

Member Function Documentation

◆ Expand()

Int * Int::Expand ( ActNamespace ns,
Scope s,
int  nt,
inst_param u 
)
privatevirtual

Expand integer. This requires one template parameter that specfies the bit-width of the integer data type.

Parameters
nsis the namespace
sis the scope
ntis the number of template parameters
uhas the single parameter

Implements Type.

◆ getName()

const char * Int::getName ( )
privatevirtual
Returns
the name of the type

Implements Type.

◆ isEqual()

int Int::isEqual ( const Type t) const
privatevirtual
Returns
1 if the type t is equal to this one, 0 otherwise

Implements Type.

Friends And Related Function Documentation

◆ TypeFactory

friend class TypeFactory
friend

Member Data Documentation

◆ kind

unsigned int Int::kind
private

0 = unsigned, 1 = signed, 2 = enum

◆ name

const char* Int::name
private

string name for the type (for printing)

◆ w

int Int::w
private

bit-width for integers, the number of values for enumeration


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