OS  2.10.1
Public Member Functions | Public Attributes | List of all members
Cones Class Reference

The in-memory representation of the <cones> element. More...

#include <OSInstance.h>

+ Collaboration diagram for Cones:

Public Member Functions

 Cones ()
 The Cones class constructor. More...
 
 ~Cones ()
 The Cones class destructor. More...
 
bool IsEqual (Cones *that)
 A function to check for the equality of two objects. More...
 
bool setRandom (double density, bool conformant, int iMin, int iMax)
 A function to make a random instance of this class. More...
 
bool deepCopyFrom (Cones *that)
 A function to make a deep copy of an instance of this class. More...
 

Public Attributes

int numberOfCones
 numberOfCones is the number of <nl> elements in the <cones> element. More...
 
Cone ** cone
 cone is pointer to an array of Cone object pointers More...
 

Detailed Description

The in-memory representation of the <cones> element.

Definition at line 1532 of file OSInstance.h.

Constructor & Destructor Documentation

◆ Cones()

Cones::Cones ( )

The Cones class constructor.

◆ ~Cones()

Cones::~Cones ( )

The Cones class destructor.

Member Function Documentation

◆ IsEqual()

bool Cones::IsEqual ( Cones that)

A function to check for the equality of two objects.

◆ setRandom()

bool Cones::setRandom ( double  density,
bool  conformant,
int  iMin,
int  iMax 
)

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)
iMinlowest index value (inclusive) that a variable reference in this matrix can take
iMaxgreatest index value (inclusive) that a variable reference in this matrix can take

◆ deepCopyFrom()

bool Cones::deepCopyFrom ( Cones that)

A function to make a deep copy of an instance of this class.

Parameters
thatthe instance from which information is to be copied
Returns
whether the copy was created successfully

Member Data Documentation

◆ numberOfCones

int Cones::numberOfCones

numberOfCones is the number of <nl> elements in the <cones> element.

Definition at line 1546 of file OSInstance.h.

◆ cone

Cone** Cones::cone

cone is pointer to an array of Cone object pointers

Definition at line 1549 of file OSInstance.h.


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