Classes | |
| protocol | < OLBinaryFunction > |
| A protocol defining the message for performing the operation of a binary function object. More... | |
| class | OLBinaryNegate |
| A binary function object that negates the action of another binary function object. More... | |
| class | OLBinder1st |
| Transform a binary function object into a unary function object. More... | |
| class | OLBinder2nd |
| Transform a binary function object into a unary function object. More... | |
| protocol | < OLBoolBinaryFunction > |
| A protocol defining the message for performing the operation of a binary function object. More... | |
| class | OLBoolBinder1st |
| Transform a binary function object into a unary function object. More... | |
| class | OLBoolBinder2nd |
| Transform a binary function object into a unary function object. More... | |
| protocol | < OLBoolUnaryFunction > |
| A protocol defining the message for performing the operation of a unary function object. More... | |
| class | OLDivides |
| A function object for performing division. More... | |
| class | OLEqualTo |
| A function object for assessing equality. More... | |
| class | OLFunctor |
| A base class for function objects. More... | |
| class | OLGreater |
| A function object for comparing objects. More... | |
| class | OLGreaterEqual |
| A function object for comparing objects. More... | |
| class | OLLess |
| A function object for comparing objects. More... | |
| class | OLLessEqual |
| A function object for comparing objects. More... | |
| class | OLLogicalAnd |
| A function object that tests whether two object are both true. More... | |
| class | OLLogicalNot |
| A function object is true only if its argument is false. More... | |
| class | OLLogicalOr |
| A function object that tests whether either of two object is true. More... | |
| class | OLMemFun |
| A function object that sends a given message to a given object and returns the result. More... | |
| class | OLMemFun1 |
| A function object that sends a given message and a given argument to a given object and returns the result. More... | |
| class | OLMinus |
| A function object that subtracts the value of one object from the value of another. More... | |
| class | OLModulus |
| Compute the remainder of division. More... | |
| class | OLMultiplies |
| A function object that multiplies the value of one object by the value of another. More... | |
| class | OLNegate |
| A function object for reversing the sign of the value of a given object. More... | |
| class | OLNotEqualTo |
| A function object for assessing inequality. More... | |
| class | OLPlus |
| A function object for adding the values of two objects. More... | |
| class | OLStreamableFunctor |
| A function object that can be encoded to and decoded from an archive. More... | |
| protocol | < OLUnaryFunction > |
| A protocol defining the message for performing the operation of a unary function object. More... | |
| class | OLUnaryNegate |
| A unary function object that negates the action of another unary function object. More... | |
There are two types of function objects used in ObjectiveLib: unary function objects and binary function objects. Unary function objects take a single object as a parameter and return a result, and binary function objects take two objects as parameters and return a result. They are used extensively for example to define how a sorted container is sorted. In this case a binary function object is used to compare two objects in the controlled sequence to determine sorting order.
|