Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions
OOModel::UnaryOperation Class Reference
Inheritance diagram for OOModel::UnaryOperation:
Core::Reflect< Base >

Public Types

enum  OperatorTypes { PREINCREMENT , PREDECREMENT , POSTINCREMENT , POSTDECREMENT , PLUS , MINUS , NOT , COMPLEMENT , PARENTHESIS , DEREFERENCE , ADDRESSOF }
 

Public Member Functions

 UnaryOperation (const OperatorTypes &op, Expression *operand=nullptr)
 
OperatorTypes op () const
 
void setOp (const OperatorTypes &oper)
 
virtual std::unique_ptr< Typetype () override
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Member Enumeration Documentation

◆ OperatorTypes

Enumerator
PREINCREMENT 
PREDECREMENT 
POSTINCREMENT 
POSTDECREMENT 
PLUS 
MINUS 
NOT 
COMPLEMENT 
PARENTHESIS 
DEREFERENCE 
ADDRESSOF 

Constructor & Destructor Documentation

◆ UnaryOperation()

OOModel::UnaryOperation::UnaryOperation ( const OperatorTypes op,
Expression operand = nullptr 
)

Member Function Documentation

◆ op()

UnaryOperation::OperatorTypes OOModel::UnaryOperation::op ( ) const
inline

◆ setOp()

void OOModel::UnaryOperation::setOp ( const OperatorTypes oper)
inline

◆ type()

std::unique_ptr< Type > OOModel::UnaryOperation::type ( )
overridevirtual