My Project
VarValue Class Reference

VarValue Class. More...

#include <OSResult.h>

Public Member Functions

 VarValue ()
 Default constructor.
 
 ~VarValue ()
 Class destructor.
 
bool IsEqual (VarValue *that)
 A function to check for the equality of two objects.
 
bool setRandom (double density, bool conformant)
 A function to make a random instance of this class.
 
 VarValue ()
 Default constructor.
 
 ~VarValue ()
 Class destructor.
 

Public Attributes

int idx
 idx is the index on variable in the solution
 
std::string name
 optional name
 
double value
 

Detailed Description

VarValue Class.

Author
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version
1.0, 03/14/2004
Since
OS 1.0
Remarks
A class that is used to provide the value and index associated with the variables in the solution.
Author
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version
1.0, 03/14/2004
Since
OS 1.0
Remarks
A class that is used to provide the value and index associated with the variables in the solution.

Definition at line 847 of file OSResult.h.

Constructor & Destructor Documentation

◆ VarValue() [1/2]

VarValue::VarValue ( )

Default constructor.

Definition at line 408 of file OSResult.cpp.

◆ ~VarValue() [1/2]

VarValue::~VarValue ( )

Class destructor.

Definition at line 419 of file OSResult.cpp.

◆ VarValue() [2/2]

VarValue::VarValue ( )

Default constructor.

◆ ~VarValue() [2/2]

VarValue::~VarValue ( )

Class destructor.

Member Function Documentation

◆ IsEqual()

bool VarValue::IsEqual ( VarValue * that)

A function to check for the equality of two objects.

Definition at line 8509 of file OSResult.cpp.

◆ setRandom()

bool VarValue::setRandom ( double density,
bool conformant )

A function to make a random instance of this class.

Parameters
densitycorresponds to the probability that a particular child element is created
conformantif true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children)

Definition at line 10284 of file OSResult.cpp.

Member Data Documentation

◆ idx

int VarValue::idx

idx is the index on variable in the solution

Definition at line 852 of file OSResult.h.

◆ name

std::string VarValue::name

optional name

Definition at line 855 of file OSResult.h.

◆ value

double VarValue::value

Definition at line 860 of file OSResult.h.


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