ObjFW
Public Member Functions
<OFObject> Protocol Reference

The protocol which all root classes implement. More...

#import <OFObject.h>

Inheritance diagram for <OFObject>:
<OFApplicationDelegate> <OFComparing> <OFHTTPRequestDelegate> OFObject <OFStreamObserverDelegate> <OFStringXMLUnescapingDelegate> <OFXMLElementBuilderDelegate> <OFXMLParserDelegate>

List of all members.

Public Member Functions

(Class) - class
 Returns the class of the object.
(BOOL) - isKindOfClass:
 Returns a boolean whether the object of the specified kind.
(BOOL) - respondsToSelector:
 Returns a boolean whether the object responds to the specified selector.
(BOOL) - conformsToProtocol:
 Checks whether the object conforms to the specified protocol.
(IMP) - methodForSelector:
 Returns the implementation for the specified selector.
(const char *) - typeEncodingForSelector:
 Returns the type encoding for the specified selector.
(id) - performSelector:
 Performs the specified selector.
(id) - performSelector:withObject:
 Performs the specified selector with the specified object.
(id) - performSelector:withObject:withObject:
 Performs the specified selector with the specified objects.
(BOOL) - isEqual:
 Checks two objects for equality.
(uint32_t) - hash
 Calculates a hash for the object.
(id) - retain
 Increases the retain count.
(unsigned int) - retainCount
 Returns the retain count.
(void) - release
 Decreases the retain count.
(id) - autorelease
 Adds the object to the topmost OFAutoreleasePool of the thread's autorelease pool stack.
(id) - self
 Returns the receiver.

Detailed Description

The protocol which all root classes implement.


Member Function Documentation

- (id) autorelease

Adds the object to the topmost OFAutoreleasePool of the thread's autorelease pool stack.

Returns:
The object
- (Class) class

Returns the class of the object.

Returns:
The class of the object

Reimplemented in OFObject.

- (BOOL) conformsToProtocol: (Protocol *)  protocol

Checks whether the object conforms to the specified protocol.

Parameters:
protocolThe protocol which should be checked for conformance
Returns:
A boolean whether the object conforms to the specified protocol

Reimplemented in OFObject.

- (uint32_t) hash

Calculates a hash for the object.

Classes containing data (like strings, arrays, lists etc.) should reimplement this!

Returns:
A 32 bit hash for the object
- (BOOL) isEqual: (id)  object

Checks two objects for equality.

Classes containing data (like strings, arrays, lists etc.) should reimplement this!

Parameters:
objectThe object which should be tested for equality
Returns:
A boolean whether the object is equal to the specified object
- (BOOL) isKindOfClass: (Class)  class_

Returns a boolean whether the object of the specified kind.

Parameters:
class_The class whose kind is checked
Returns:
A boolean whether the object is of the specified kind
- (IMP) methodForSelector: (SEL)  selector

Returns the implementation for the specified selector.

Parameters:
selectorThe selector for which the method should be returned
Returns:
The implementation for the specified selector
- (id) performSelector: (SEL)  selector

Performs the specified selector.

Parameters:
selectorThe selector to perform
Returns:
The object returned by the method specified by the selector
- (id) performSelector: (SEL)  selector
withObject: (id)  object 

Performs the specified selector with the specified object.

Parameters:
selectorThe selector to perform
objectThe object that is passed to the method specified by the selector
Returns:
The object returned by the method specified by the selector
- (id) performSelector: (SEL)  selector
withObject: (id)  object
withObject: (id)  otherObject 

Performs the specified selector with the specified objects.

Parameters:
selectorThe selector to perform
objectThe first object that is passed to the method specified by the selector
otherObjectThe second object that is passed to the method specified by the selector
Returns:
The object returned by the method specified by the selector
- (void) release

Decreases the retain count.

Each time an object is released, the retain count gets decreased and the object deallocated if it reaches 0.

Reimplemented in OFAutoreleasePool.

- (BOOL) respondsToSelector: (SEL)  selector

Returns a boolean whether the object responds to the specified selector.

Parameters:
selectorThe selector which should be checked for respondance
Returns:
A boolean whether the objects responds to the specified selector
- (id) retain

Increases the retain count.

Each time an object is released, the retain count gets decreased and the object deallocated if it reaches 0.

- (unsigned int) retainCount

Returns the retain count.

Returns:
The retain count
- (id) self

Returns the receiver.

Returns:
The receiver
- (const char*) typeEncodingForSelector: (SEL)  selector

Returns the type encoding for the specified selector.

Parameters:
selectorThe selector for which the type encoding should be returned
Returns:
The type encoding for the specified selector

The documentation for this protocol was generated from the following file:
 All Classes Functions Variables Properties