Added Lots of Documentation
Added some nice to haves Improved and Unified General Code Layout
This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
#import "MPTerm.h"
|
||||
|
||||
#import "MPParsedExpression.h"
|
||||
#import "MPSumTerm.h"
|
||||
#import "MPEvaluationContext.h"
|
||||
|
||||
|
||||
|
||||
@implementation MPTerm
|
||||
|
||||
- (NSDecimalNumber *)evaluate:(NSError *__autoreleasing *)error
|
||||
@@ -22,6 +23,7 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
- (BOOL)defineVariable:(NSString *)variableName
|
||||
value:(NSDecimalNumber *)value
|
||||
error:(NSError *__autoreleasing *)error
|
||||
@@ -39,6 +41,7 @@
|
||||
return couldDefineVariable;
|
||||
}
|
||||
|
||||
|
||||
- (NSDecimalNumber *)valueForVariable:(NSString *)variableName
|
||||
error:(NSError *__autoreleasing *)error
|
||||
{
|
||||
@@ -54,6 +57,7 @@
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
- (void)undefineVariable:(NSString *)variableName
|
||||
{
|
||||
[[MPEvaluationContext sharedContext] undefineVariable:variableName];
|
||||
|
||||
Reference in New Issue
Block a user