Archived
1

Added Documentation

This commit is contained in:
Kim Wittenburg
2014-08-22 01:14:52 +02:00
parent a6d8d1680e
commit 9aa4bca234
2 changed files with 70 additions and 32 deletions

View File

@@ -423,14 +423,16 @@
[self replaceSymbolsInRange:NSMakeRange(self.length, 0) withElements:elements];
}
- (void)insertElement:(id<MPExpressionElement>)anElement atLocation:(NSUInteger)index
- (void)insertElement:(id<MPExpressionElement>)anElement
atLocation:(NSUInteger)location
{
[self insertElements:@[anElement] atLocation:index];
[self insertElements:@[anElement] atLocation:location];
}
- (void)insertElements:(NSArray *)elements atLocation:(NSUInteger)index
- (void)insertElements:(NSArray *)elements
atLocation:(NSUInteger)location
{
[self replaceSymbolsInRange:NSMakeRange(index, 0) withElements:elements];
[self replaceSymbolsInRange:NSMakeRange(location, 0) withElements:elements];
}
- (void)deleteElementsInRange:(NSRange)range
@@ -438,25 +440,4 @@
[self replaceSymbolsInRange:range withElements:@[]];
}
#pragma mark Evaluating Expressions
- (float)floatValue
{
return (float)[self doubleValue];
}
- (int)intValue
{
return (int)[self doubleValue];
}
- (NSInteger)integerValue
{
return (NSInteger)[self doubleValue];
}
- (long long)longLongValue
{
return (long long)[self doubleValue];
}
@end