Some small corrections to the MPExpression and MPFunction interfaces
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
@class MPFunction, MPExpression;
|
||||
|
||||
@interface MPFunction : NSObject
|
||||
@interface MPFunction : NSObject <NSCopying, NSCoding>
|
||||
|
||||
#pragma mark Creation Methods
|
||||
|
||||
@@ -17,28 +17,32 @@
|
||||
#pragma mark Children
|
||||
|
||||
- (NSUInteger)numberOfChildren;
|
||||
- (MPExpression *)childAtIndex;
|
||||
- (MPExpression *)childAtIndex:(NSUInteger)index;
|
||||
- (void)setChild:(MPExpression *)child atIndex:(NSUInteger)index;
|
||||
|
||||
#pragma mark Evaluating Functions
|
||||
|
||||
- (double)doubleValue;
|
||||
|
||||
#pragma mark Working With Functions
|
||||
|
||||
- (BOOL)isEqualToFunction:(MPFunction *)aFunction;
|
||||
|
||||
@end
|
||||
|
||||
@interface MPFunction (MPFunctionExtensionMethods)
|
||||
|
||||
#pragma mark Children
|
||||
|
||||
// May be overridden for performance improvements
|
||||
- (NSArray *)children;
|
||||
|
||||
#pragma mark Evaluating Expressions
|
||||
#pragma mark Evaluating Functions
|
||||
|
||||
- (float)floatValue;
|
||||
- (int)intValue;
|
||||
- (NSInteger)integerValue;
|
||||
- (long long)longLongValue;
|
||||
- (NSString *)stringValue;
|
||||
|
||||
- (NSString *)description;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user