ACT Library
|
Used to represent the built-in ACT int< > datatype. This is also used to represent enumerations. More...
#include <types.h>
Private Member Functions | |
const char * | getName () |
Int * | Expand (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 Type * | Expand (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) |
Used to represent the built-in ACT int< > datatype. This is also used to represent enumerations.
|
privatevirtual |
Expand integer. This requires one template parameter that specfies the bit-width of the integer data type.
ns | is the namespace |
s | is the scope |
nt | is the number of template parameters |
u | has the single parameter |
Implements Type.
|
privatevirtual |
Implements Type.
|
privatevirtual |
Implements Type.
|
friend |
|
private |
0 = unsigned, 1 = signed, 2 = enum
|
private |
string name for the type (for printing)
|
private |
bit-width for integers, the number of values for enumeration