CACAO
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
NumericInstruction Class Reference

Represents a constant numeric instruction. More...

Public Types

enum  Kind { ZERO = 0, ARRAY_LENGTH, VARIABLE }
 

Public Member Functions

 NumericInstruction (const NumericInstruction &other)
 
Kind kind () const
 
s4 variable () const
 
s4 lower () const
 The smallest value this instruction can return. More...
 
s4 upper () const
 The largest value this instruction can return. More...
 

Static Public Member Functions

static NumericInstruction newZero ()
 
static NumericInstruction newArrayLength (s4 variable)
 
static NumericInstruction newVariable (s4 variable)
 

Private Member Functions

 NumericInstruction (Kind kind, s4 variable)
 

Private Attributes

Kind _kind
 
s4 _var
 

Static Private Attributes

static s4 lowerBounds [3]
 
static s4 upperBounds [3]
 

Detailed Description

Represents a constant numeric instruction.

Definition at line 38 of file NumericInstruction.hpp.

Member Enumeration Documentation

Enumerator
ZERO 
ARRAY_LENGTH 
VARIABLE 

Definition at line 42 of file NumericInstruction.hpp.

Constructor & Destructor Documentation

NumericInstruction::NumericInstruction ( Kind  kind,
s4  variable 
)
inlineprivate

Definition at line 57 of file NumericInstruction.hpp.

NumericInstruction::NumericInstruction ( const NumericInstruction other)
inline

Definition at line 64 of file NumericInstruction.hpp.

Member Function Documentation

Kind NumericInstruction::kind ( ) const
inline

Definition at line 73 of file NumericInstruction.hpp.

s4 NumericInstruction::lower ( ) const
inline

The smallest value this instruction can return.

Definition at line 113 of file NumericInstruction.hpp.

NumericInstruction NumericInstruction::newArrayLength ( s4  variable)
inlinestatic

Definition at line 93 of file NumericInstruction.hpp.

NumericInstruction NumericInstruction::newVariable ( s4  variable)
inlinestatic

Definition at line 98 of file NumericInstruction.hpp.

NumericInstruction NumericInstruction::newZero ( )
inlinestatic

Definition at line 88 of file NumericInstruction.hpp.

s4 NumericInstruction::upper ( ) const
inline

The largest value this instruction can return.

Definition at line 118 of file NumericInstruction.hpp.

s4 NumericInstruction::variable ( ) const
inline

Definition at line 74 of file NumericInstruction.hpp.

Field Documentation

Kind NumericInstruction::_kind
private

Definition at line 51 of file NumericInstruction.hpp.

s4 NumericInstruction::_var
private

Definition at line 52 of file NumericInstruction.hpp.

s4 NumericInstruction::lowerBounds
staticprivate
Initial value:

Definition at line 54 of file NumericInstruction.hpp.

s4 NumericInstruction::upperBounds
staticprivate
Initial value:

Definition at line 55 of file NumericInstruction.hpp.


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