#include <BxUnionCase.h>
Inheritance diagram for BxUnionCase:

Public Member Functions | |
| BxUnionCase () | |
| BxUnionCase (BxDataObject *discriminant) | |
| BxUnionCase (BxDataObject *discriminant, BxDataObject *arm) | |
| BxUnionCase (const BxUnionCase ©) | |
| void | setDiscriminant (BxDataObject *dis) |
| void | setArm (BxDataObject *arm) |
| bool | isEqual (const BxDataObject &dataObj) const |
|
|
Default constructor. Constructs an instance of the class BxUnionCase. All attributes are initialised to NULL. |
|
|
Construct a BxUnionCase object referencing a specified discriminant object. Upon completion of this method, the input BxDataObject object containing the discriminate data type and value is tightly related to this union case object. Destruction of the BxDataObject instance will be managed by the union case object.
|
|
||||||||||||
|
Construct a BxUnionCase object referencing a specified discriminant object and data object. Upon completion of this method, dstruction of both input objects will be managed by this union case object.
|
|
|
Construct a union case object by copying another union case object. Attributes of the new union case instance are initialized by copying attribute values from the specified input union case. Upon completion of the construction operation, the two union case instances are independent. They must be individually destructed.
|
|
|
Returns the data object selected by the discriminant value for this union case.
|
|
|
Returns the discriminant value for this union case.
|
|
|
Compare a specified BxDataObject for equality with the discriminant value stored in this union case object.
In this method, two objects are considered to be equal if they are of the same BinX object type and if they store the same data value.
|
|
|
Set the data object stored by a union case object. The input object must specify a union selected data object and its data type. If the data object has been previously set, then the old data object is destructed. The new data object is managed by this union case object.
|
|
|
Set the discriminant value stored by a union case object. The input object must specify a discriminant value and its data type. If the discriminant value has been previously set, then the old discriminate value object is destructed. The new discriminant value object is managed by this union case object.
|
1.3.3