MC++
mc::FFNum Struct Reference

Structure defining the numeric field of a factorable program variable. More...

#include <ffunc.hpp>

Public Types

enum  TYPE { INT =0, REAL }
 Enumeration type for numeric variables in factorable function. More...
 

Public Member Functions

 FFNum (const int i=0)
 Constructor for an integer variable.
 
 FFNum (const double d)
 Constructor for a real variable.
 
FFNumoperator= (const int i)
 Constructor for an integer scalar.
 
FFNumoperator= (const double d)
 Constructor for a real scalar.
 
FFNumoperator= (const FFNum &num)
 Copy constructor.
 

Public Attributes

TYPE t
 Variable type.
 
union {
}; 
 Integer/real variable value.
 

Detailed Description

mc::FFNum is a C++ structure defining the numeric field of a variable in a factorable function, which can either a real scalar (double), or an integer scalar (int)

Member Enumeration Documentation

Enumerator
INT 

Integer value.

REAL 

Real value.


The documentation for this struct was generated from the following file: