Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
OOModel::PrimitiveType Class Reference
Inheritance diagram for OOModel::PrimitiveType:
OOModel::Type

Public Types

enum  PrimitiveTypes { INT , LONG , UNSIGNED_INT , UNSIGNED_LONG , FLOAT , DOUBLE , BOOLEAN , CHAR , VOID }
 
- Public Types inherited from OOModel::Type
enum  Qualifier { CONST = 0x1 , VOLATILE = 0x2 }
 
using Qualifiers = QFlags< Qualifier >
 

Public Member Functions

 PrimitiveType (PrimitiveTypes type, bool isValueType)
 
virtual PrimitiveTypeclone () const override
 
virtual bool equals (const Type *other) const override
 
PrimitiveTypes type () const
 
- Public Member Functions inherited from OOModel::Type
 Type (bool isValueType)
 
 Type (const Type &other)
 
virtual ~Type ()
 
virtual bool isError () const
 Returns true if this is an error type. More...
 
bool isValueType () const
 Returns true if the this type belongs to an expression representing a value. More...
 
Qualifiers qualifiers () const
 
TypeSystem::TypeRelations relationTo (const Type *other) const
 
void setQualifiers (Qualifiers q, bool enable=true)
 
void setValueType (bool isValueType)
 

Static Public Member Functions

static PrimitiveTypes resultFromBinaryOperation (PrimitiveTypes left, PrimitiveTypes right)
 

Private Attributes

PrimitiveTypes type_
 

Member Enumeration Documentation

◆ PrimitiveTypes

Enumerator
INT 
LONG 
UNSIGNED_INT 
UNSIGNED_LONG 
FLOAT 
DOUBLE 
BOOLEAN 
CHAR 
VOID 

Constructor & Destructor Documentation

◆ PrimitiveType()

OOModel::PrimitiveType::PrimitiveType ( PrimitiveTypes  type,
bool  isValueType 
)

Member Function Documentation

◆ clone()

PrimitiveType * OOModel::PrimitiveType::clone ( ) const
overridevirtual

Implements OOModel::Type.

◆ equals()

bool OOModel::PrimitiveType::equals ( const Type other) const
overridevirtual

Implements OOModel::Type.

◆ resultFromBinaryOperation()

PrimitiveType::PrimitiveTypes OOModel::PrimitiveType::resultFromBinaryOperation ( PrimitiveTypes  left,
PrimitiveTypes  right 
)
static

◆ type()

PrimitiveType::PrimitiveTypes OOModel::PrimitiveType::type ( ) const
inline

Member Data Documentation

◆ type_

PrimitiveTypes OOModel::PrimitiveType::type_
private