Functions



free

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.


init

Abstract: A member function to initialize an instance of OSBoolean.
public:

virtual bool init(bool value);

Parameters

NameDescription
valueA boolean value.
Result: Returns true if initialization was successful, false otherwise.

isEqualTo

Abstract: A member function to test the equality of two OSBoolean objects.
public:

virtual bool isEqualTo(const OSBoolean *boolean) const;

Parameters

NameDescription
booleanAn OSBoolean object to be compared against the receiver.
Result: Returns true if the two objects are equivalent.

isEqualTo

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

NameDescription
objAn OSObject derived object to be compared against the receiver.
Result: Returns true if the two objects are equivalent.

isFalse

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.

isTrue

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.

serialize

Abstract: A member function which archives the receiver.
public:

virtual bool serialize(OSSerialize *s) const;

Parameters

NameDescription
sThe OSSerialize object.
Result: Returns true if serialization was successful, false if not.

withBoolean

Abstract: A static constructor function to create and initialize an instance of OSBoolean.
public:

static OSBoolean *withBoolean(bool value);

Parameters

NameDescription
valueA boolean value.
Result: Returns and instance of OSBoolean, or 0 if an error occurred.

© 2000 Apple Computer, Inc. — (Last Updated 2/23/2000)