KnowledgeInterfaces Boolean
Usage: you must use this class as is. You should never derive it.
public class Boolean
Class for boolean definition.
Role: Boolean value management.
In some seldom case depending on the order of your includes, you may have compilation error in the lines where you use CATCke::True or CATCke::False.
This problem can not be fixed anymore on DS side because of huge impacts.
To avoid this compilation error switch from CATCke::True/CATCke::False to 1/0 in your code.
Constructor and Destructor Index
- o
Boolean()
- Constructs a Boolean (valuated by default to False).
- o
Boolean(int)
- Constructs a Boolean from an integer.
- o
Boolean(Boolean&)
- Copy constructor.
- o
~Boolean()
- Destructor.
Method Index
- o
operator !=(Boolean&)
- Tests the non equivalence of two CATCkeBooleans.
- o
operator =(Boolean&)
- Affects the right hand side boolean to the left hand side boolean.
- o
operator ==(Boolean&)
- Tests the equivalence of two CATCkeBooleans.
- o
operator int()
- Returns the integer correspondant value of a CATCkeBoolean.
Constructor and Destructor
o Boolean
-
Constructs a Boolean (valuated by default to False).
o Boolean
-
Constructs a Boolean from an integer.
- Parameters:
-
- iValue
- Legal values
- 1 corresponds to a CATCke::True boolean.
- 0 corresponds to a CATCke::False boolean.
o Boolean
-
Copy constructor.
o ~Boolean
-
Destructor.
Methods
o operator !=
public operator !=( | const | b) |
-
Tests the non equivalence of two CATCkeBooleans.
- Parameters:
-
- b
- a CATCkeBoolean
- Returns:
- The result of the analysis of the difference
o operator =
public operator =( | const | iBoolean) |
-
Affects the right hand side boolean to the left hand side boolean.
- Parameters:
-
- iBoolean
- a CATCkeBoolean
- Returns:
- The result of the affectation.
o operator ==
public operator ==( | const | iBoolean) |
-
Tests the equivalence of two CATCkeBooleans.
- Parameters:
-
- iBoolean
- a CATCkeBoolean
- Returns:
- The result of the comparison
o operator int
-
Returns the integer correspondant value of a CATCkeBoolean. 1 for CATCkeTrue, 0 for CATCkeFalse.
This object is included in the file: CATCkeBoolean.h
If needed, your Imakefile.mk should include the module: KnowledgeItf
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.