Archived
1

Some small corrections to the MPExpression and MPFunction interfaces

This commit is contained in:
Kim Wittenburg
2014-04-20 01:22:01 +02:00
parent 6874324d00
commit 8244cdab4e
2 changed files with 10 additions and 6 deletions

View File

@@ -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;