ObjFW
Public Member Functions
<OFObject> Protocol Reference

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

#include <OFObject.h>

Inheritance diagram for <OFObject>:
<OFApplicationDelegate> <OFCollection> OFObject <OFStreamObserverDelegate> <OFStringXMLUnescapingDelegate> <OFXMLElementBuilderDelegate> <OFXMLParserDelegate> OFArray OFDictionary OFList OFAllocFailedException OFApplication OFArray OFAutoreleasePool OFDataArray OFDate OFDictionary OFEnumerator OFException OFHash OFHTTPRequest OFHTTPRequestResult OFList OFMutex OFNumber OFPlugin OFStream OFStreamObserver OFString OFThread OFTLSKey OFURL OFXMLAttribute OFXMLElement OFXMLElementBuilder OFXMLParser OFXMLParser

List of all members.

Public Member Functions

Class class ()
BOOL isKindOfClass: (Class class_)
BOOL respondsToSelector: (SEL selector)
id performSelector: (SEL selector)
id performSelector:withObject: (SEL selector,[withObject] id obj)
id performSelector:withObject:withObject: (SEL selector,[withObject] id obj1,[withObject] id obj2)
BOOL isEqual: (id obj)
uint32_t hash ()
id retain ()
unsigned int retainCount ()
void release ()
id autorelease ()

Detailed Description

The protocol which all root classes implement.


Member Function Documentation

id OFObject-p::autorelease ( ) [virtual]

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

Class OFObject-p::class ( ) [virtual]
Returns:
The class of the object

Reimplemented in OFObject.

uint32_t OFObject-p::hash ( ) [virtual]

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

Reimplemented in OFHashAlreadyCalculatedException.

BOOL OFObject-p::isEqual: ( id  obj) [virtual]

Checks two objects for equality.

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

Parameters:
objThe object which should be tested for equality
Returns:
A boolean whether the object is equal to the specified object
BOOL OFObject-p::isKindOfClass: ( Class  class_) [virtual]
Parameters:
class_The class whose kind is checked
Returns:
A boolean whether the object is of the specified kind
id OFObject-p::performSelector: ( SEL  selector) [virtual]

Performs the specified selector.

Parameters:
selectorThe selector to perform
Returns:
The object returned by the method specified by the selector
id OFObject-p::performSelector:withObject: ( SEL  selector,
[withObject] id  obj 
) [virtual]

Performs the specified selector with the specified object.

Parameters:
selectorThe selector to perform
objThe object that is passed to the method specified by the selector
Returns:
The object returned by the method specified by the selector
id OFObject-p::performSelector:withObject:withObject: ( SEL  selector,
[withObject] id  obj1,
[withObject] id  obj2 
) [virtual]

Performs the specified selector with the specified objects.

Parameters:
selectorThe selector to perform
obj1The first object that is passed to the method specified by the selector
obj2The second object that is passed to the method specified by the selector
Returns:
The object returned by the method specified by the selector
void OFObject-p::release ( ) [virtual]

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 OFObject-p::respondsToSelector: ( SEL  selector) [virtual]
Parameters:
selectorThe selector which should be checked for respondance
Returns:
A boolean whether the objects responds to the specified selector
id OFObject-p::retain ( ) [virtual]

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 OFObject-p::retainCount ( ) [virtual]
Returns:
The retain count

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