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

A proper type representing an int. More...

#include <TipInt.h>

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

Public Member Functions

 TipInt ()
 
bool operator== (const TipType &other) const override
 
bool operator!= (const TipType &other) const override
 
void accept (TipTypeVisitor *visitor) override
 
- Public Member Functions inherited from TipCons
 TipCons ()=default
 
const std::vector< std::shared_ptr< TipType > > & getArguments () const
 
void setArguments (std::vector< std::shared_ptr< TipType >> &args)
 
virtual int arity () const
 
bool doMatch (TipType const *t) const
 Check for dynamic subtype and artity agreement We explicitly test the types here which is not robust to the addition of new subtypes of TipCons. Extend this if you add such a subtype. More...
 
- Public Member Functions inherited from TipType
virtual ~TipType ()=default
 

Protected Member Functions

std::ostream & print (std::ostream &out) const override
 
- Protected Member Functions inherited from TipCons
 TipCons (std::vector< std::shared_ptr< TipType >> arguments)
 

Additional Inherited Members

- Protected Attributes inherited from TipCons
std::vector< std::shared_ptr< TipType > > arguments
 

Detailed Description

A proper type representing an int.

Constructor & Destructor Documentation

◆ TipInt()

TipInt::TipInt ( )

Member Function Documentation

◆ accept()

void TipInt::accept ( TipTypeVisitor visitor)
overridevirtual

Implements TipType.

◆ operator!=()

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

Implements TipType.

◆ operator==()

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

Implements TipType.

◆ print()

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

Implements TipType.


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