hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
hobbes::Prim Class Reference

#include <type.H>

Inheritance diagram for hobbes::Prim:
Inheritance graph
Collaboration diagram for hobbes::Prim:
Collaboration graph

Public Member Functions

void show (std::ostream &out) const
 
const std::string & name () const
 
const MonoTypePtrrepresentation () const
 
- Public Member Functions inherited from hobbes::MonoTypeCase< Prim >
 MonoTypeCase ()
 
- Public Member Functions inherited from hobbes::MonoType
virtual ~MonoType ()
 
bool operator== (const MonoType &rhs) const
 
int case_id () const
 
template<typename Class , typename T , typename ... Args>
MonoTypePtr makeType (const Args &... args)
 

Static Public Member Functions

static MonoTypePtr make (const std::string &, const MonoTypePtr &t=MonoTypePtr())
 

Static Public Attributes

static const int type_case_id = 0
 

Private Member Functions

 Prim (const std::string &, const MonoTypePtr &)
 

Private Attributes

std::string nm
 
MonoTypePtr t
 

Friends

class MonoType
 

Additional Inherited Members

- Public Types inherited from hobbes::MonoType
typedef std::shared_ptr< MonoTypeptr
 
typedef std::set< std::string > TypeVarNames
 
- Public Attributes inherited from hobbes::MonoType
TypeVarNames freeTVars
 
int tgenCount
 
unsigned int memorySize
 
ptr unaliasedType
 
- Protected Member Functions inherited from hobbes::MonoType
 MonoType (int cid)
 
- Static Protected Member Functions inherited from hobbes::MonoType
template<typename Class , typename T , typename ... Args>
static ptr makeType (const Args &... args)
 

Constructor & Destructor Documentation

◆ Prim()

hobbes::Prim::Prim ( const std::string &  nm,
const MonoTypePtr t 
)
private

Member Function Documentation

◆ make()

MonoTypePtr hobbes::Prim::make ( const std::string &  nm,
const MonoTypePtr t = MonoTypePtr() 
)
static

◆ name()

const std::string & hobbes::Prim::name ( ) const

◆ representation()

const MonoTypePtr & hobbes::Prim::representation ( ) const

◆ show()

void hobbes::Prim::show ( std::ostream &  out) const
virtual

Implements hobbes::MonoType.

Friends And Related Function Documentation

◆ MonoType

friend class MonoType
friend

Member Data Documentation

◆ nm

std::string hobbes::Prim::nm
private

◆ t

MonoTypePtr hobbes::Prim::t
private

◆ type_case_id

const int hobbes::Prim::type_case_id = 0
static

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