HGL::Type::IParam Interface Reference

This interface marks a type as parameter type. More...

#include <iparam.h>

Inheritance diagram for HGL::Type::IParam:
Inheritance graph
[legend]

List of all members.

Public Types

enum  OP {
  NOP,
  ADD,
  SUB,
  MUL,
  DIV,
  POW,
  SIN,
  COS,
  NEG,
  DAO
}
 

The types of operations available for expressions.

More...

Public Member Functions

virtual bool operator== (const IParam &o) const =0
 Checks equality of parameter types.
virtual const std::string toString () const =0
 Gets the string representation of a parameter type.

Detailed Description

This interface marks a type as parameter type.

Parameter types are used as parameters to procedures

Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Member Enumeration Documentation

The types of operations available for expressions.

Enumerator:
NOP 

no operation

ADD 

addition

SUB 

subtraction

MUL 

multiplication

DIV 

division

POW 

power

SIN 

sinus

COS 

cosinus

NEG 

negation

DAO 

direct assignemnt operation


Member Function Documentation

virtual bool HGL::Type::IParam::operator== ( const IParam o  )  const [pure virtual]

Checks equality of parameter types.

Parameters:
o the other parameter type to check
Returns:
true, if they are equal, false otherwise

Implemented in HGL::Type::ExpressionParam.

virtual const std::string HGL::Type::IParam::toString (  )  const [pure virtual]

Gets the string representation of a parameter type.

Returns:
the string representation of a parameter type

Implemented in HGL::Type::ExpressionParam, HGL::Type::FloatParam, HGL::Type::ParamBase, HGL::Type::ReferenceParam, HGL::Type::StringParam, and HGL::Type::Vector2D.


Generated on 9 Apr 2014 for hgl 0.5.26~svn by  doxygen 1.6.1