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

Used to represent the built-in ACT bool datatype. More...

#include <types.h>

Inheritance diagram for Bool:
Type

Private Member Functions

const char * getName ()
 
TypeExpand (ActNamespace *, Scope *, int, inst_param *)
 
int isEqual (const Type *t) const
 

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 bool datatype.

Member Function Documentation

◆ Expand()

Type * Bool::Expand ( ActNamespace ns,
Scope s,
int  nt,
inst_param ip 
)
inlineprivatevirtual

This is used to expand the type, substituting any template parameters. These parameters are used for templated built-in types like int<>, chan(), and ptype().

Parameters
nsis the namespace
sis the evaluation scope
ntare the number of template parameters for this type
ipis the parameter name
Returns
an expanded type

Implements Type.

◆ getName()

const char * Bool::getName ( )
inlineprivatevirtual
Returns
the name of the type

Implements Type.

◆ isEqual()

int Bool::isEqual ( const Type t) const
inlineprivatevirtual

Check if two types are equal to each other.

Parameters
tis the type to compare against
Returns
the result of comparing two types

Implements Type.


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