OSBoolean
Member Functions
Abstract: A member function to release all resources used by the OSBoolean instance.
public:
virtual void free();
This function should not be called directly, use release() instead.
Abstract: A member function to initialize an instance of OSBoolean.
public:
virtual bool init(bool value);
Parameters
Name | Description |
value | A boolean value. |
Result: Returns true if initialization was successful, false otherwise.
Abstract: A member function to test the equality of two OSBoolean objects.
public:
virtual bool isEqualTo(const OSBoolean *boolean) const;
Parameters
Name | Description |
boolean | An OSBoolean object to be compared against the receiver. |
Result: Returns true if the two objects are equivalent.
Abstract: A member function to test the equality between an arbitrary OSObject derived object and an OSBoolean object.
public:
virtual bool isEqualTo(const OSObject *obj) const;
Parameters
Name | Description |
obj | An OSObject derived object to be compared against the receiver. |
Result: Returns true if the two objects are equivalent.
Abstract: A member function to test if the boolean object is false.
public:
virtual bool isFalse() const;
Result: Returns true if the OSBoolean object is false, false otherwise.
Abstract: A member function to test if the boolean object is true.
public:
virtual bool isTrue() const;
Result: Returns true if the OSBoolean object is true, false otherwise.
Abstract: A member function which archives the receiver.
public:
virtual bool serialize(OSSerialize *s) const;
Parameters
Name | Description |
s | The OSSerialize object. |
Result: Returns true if serialization was successful, false if not.
Abstract: A static constructor function to create and initialize an instance of OSBoolean.
public:
static OSBoolean *withBoolean(bool value);
Parameters
Name | Description |
value | A boolean value. |
Result: Returns and instance of OSBoolean, or 0 if an error occurred.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)