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

Used for ptype( ) parameters. ptype parameters take an interface type as a template parameter. More...

#include <types.h>

Inheritance diagram for PType:
Type

Public Member Functions

const char * getName ()
 
PTypeExpand (ActNamespace *ns, Scope *s, int nt, inst_param *u)
 
 PType ()
 
int isEqual (const Type *t) const
 
InstTypegetType ()
 
- 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
 

Private Attributes

InstTypei
 
const char * name
 

Friends

class TypeFactory
 

Additional Inherited Members

- Public Types inherited from Type
enum  direction {
  NONE = 0 , IN = 1 , OUT = 2 , INOUT = 3 ,
  OUTIN = 4
}
 
- Static Public Member Functions inherited from Type
static void Init ()
 
static const char * dirstring (direction d)
 

Detailed Description

Used for ptype( ) parameters. ptype parameters take an interface type as a template parameter.

Constructor & Destructor Documentation

◆ PType()

PType::PType ( )
inline

Member Function Documentation

◆ Expand()

PType * PType::Expand ( ActNamespace ns,
Scope s,
int  nt,
inst_param u 
)
virtual

Expand the ptype. The number of template parameters must be exactly one and be a type.

Parameters
nsis the namespace
sis the scope
ntis the number of template parameters
uare the parameters
Returns
the expanded PType

Implements Type.

◆ getName()

const char * PType::getName ( )
virtual
Returns
the name of the type

Implements Type.

◆ getType()

InstType * PType::getType ( )
inline
Returns
the instance type associated with the ptype( )

◆ isEqual()

int PType::isEqual ( const Type t) const
inlinevirtual

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.

Friends And Related Function Documentation

◆ TypeFactory

friend class TypeFactory
friend

Member Data Documentation

◆ i

InstType* PType::i
private

used when it is expanded to hold the ptype(...) parameter

◆ name

const char* PType::name
private

the name of the form ptype(inst) after expansion


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