tipc
A TIP to LLVM compiler
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TipVar Class Reference

Class representing a type variable. More...

#include <TipVar.h>

Inheritance diagram for TipVar:
Inheritance graph
[legend]
Collaboration diagram for TipVar:
Collaboration graph
[legend]

Public Member Functions

 TipVar ()=default
 
 TipVar (ASTNode *node)
 
bool operator== (const TipType &other) const override
 
bool operator!= (const TipType &other) const override
 
ASTNodegetNode () const
 
void accept (TipTypeVisitor *visitor) override
 
- Public Member Functions inherited from TipType
virtual ~TipType ()=default
 

Protected Member Functions

std::ostream & print (std::ostream &out) const override
 Type variables printed as ASTNodecol. More...
 

Protected Attributes

ASTNodenode
 

Detailed Description

Class representing a type variable.

Constructor & Destructor Documentation

◆ TipVar() [1/2]

TipVar::TipVar ( )
default

◆ TipVar() [2/2]

TipVar::TipVar ( ASTNode node)

Member Function Documentation

◆ accept()

void TipVar::accept ( TipTypeVisitor visitor)
overridevirtual

Implements TipType.

◆ getNode()

ASTNode* TipVar::getNode ( ) const
inline

◆ operator!=()

bool TipVar::operator!= ( const TipType other) const
overridevirtual

Implements TipType.

◆ operator==()

bool TipVar::operator== ( const TipType other) const
overridevirtual

Implements TipType.

◆ print()

std::ostream & TipVar::print ( std::ostream &  out) const
overrideprotectedvirtual

Type variables printed as ASTNodecol.

Implements TipType.

Member Data Documentation

◆ node

ASTNode* TipVar::node
protected

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