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

#include <expr.H>

Inheritance diagram for hobbes::Short:
Inheritance graph
Collaboration diagram for hobbes::Short:
Collaboration graph

Public Member Functions

 Short (short x, const LexicalAnnotation &)
 
short value () const
 
void value (short)
 
Exprclone () const
 
void show (std::ostream &out) const
 
void showAnnotated (std::ostream &out) const
 
bool equiv (const Short &) const
 
bool lt (const Short &) const
 
MonoTypePtr primType () const
 
- Public Member Functions inherited from hobbes::PrimitiveCase< Short >
 PrimitiveCase (const LexicalAnnotation &)
 
bool operator< (const Primitive &rhs) const
 
bool operator== (const Expr &rhs) const
 
- Public Member Functions inherited from hobbes::Primitive
 Primitive (int cid, const LexicalAnnotation &)
 
- Public Member Functions inherited from hobbes::Expr
virtual ~Expr ()
 
const QualTypePtrtype () const
 
void type (const QualTypePtr &ty)
 
int case_id () const
 
- Public Member Functions inherited from hobbes::LexicallyAnnotated
 LexicallyAnnotated (const LexicallyAnnotated &)
 
 LexicallyAnnotated (const LexicalAnnotation &)
 
 LexicallyAnnotated (const LexRange &)
 
 LexicallyAnnotated (const Pos &, const Pos &)
 
const LexicalAnnotationla () const
 

Static Public Attributes

static const int type_case_id = 4
 

Private Attributes

short x
 

Additional Inherited Members

- Public Types inherited from hobbes::PrimitiveCase< Short >
typedef PrimitiveCase< ShortBase
 
- Static Public Member Functions inherited from hobbes::LexicallyAnnotated
static void pushFileContext (const std::string &)
 
static void pushLiteralContext (const std::string &)
 
static void popContext ()
 
static LexicalAnnotation make (const Pos &, const Pos &)
 
- Protected Member Functions inherited from hobbes::Expr
 Expr (int cid, const LexicalAnnotation &)
 

Constructor & Destructor Documentation

◆ Short()

hobbes::Short::Short ( short  x,
const LexicalAnnotation la 
)

Member Function Documentation

◆ clone()

Expr * hobbes::Short::clone ( ) const
virtual

Implements hobbes::Expr.

◆ equiv()

bool hobbes::Short::equiv ( const Short rhs) const
virtual

◆ lt()

bool hobbes::Short::lt ( const Short rhs) const
virtual

◆ primType()

MonoTypePtr hobbes::Short::primType ( ) const
virtual

Implements hobbes::Primitive.

◆ show()

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

Implements hobbes::Expr.

◆ showAnnotated()

void hobbes::Short::showAnnotated ( std::ostream &  out) const
virtual

Implements hobbes::Expr.

◆ value() [1/2]

short hobbes::Short::value ( ) const

◆ value() [2/2]

void hobbes::Short::value ( short  nx)

Member Data Documentation

◆ type_case_id

const int hobbes::Short::type_case_id = 4
static

◆ x

short hobbes::Short::x
private

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