Archived
1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mathpad/MathPad/MPFunction.h
2014-04-18 16:46:25 +02:00

48 lines
794 B
Objective-C

//
// MPFunction.h
// MathPad
//
// Created by Kim Wittenburg on 18.04.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//
@class MPFunction, MPExpression;
@interface MPFunction : NSObject
#pragma mark Creation Methods
- (instancetype)init;
#pragma mark Children
- (NSUInteger)numberOfChildren;
- (MPExpression *)childAtIndex;
- (void)setChild:(MPExpression *)child atIndex:(NSUInteger)index;
#pragma mark Evaluating Functions
- (double)doubleValue;
@end
@interface MPFunction (MPFunctionExtensionMethods)
#pragma mark Children
- (NSArray *)children;
#pragma mark Evaluating Expressions
- (float)floatValue;
- (int)intValue;
- (NSInteger)integerValue;
- (long long)longLongValue;
- (NSString *)stringValue;
- (NSString *)description;
- (NSUInteger)hash;
@end