43 lines
972 B
Objective-C
43 lines
972 B
Objective-C
//
|
|
// MPSummand.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 09.10.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
#import "MPExpressionTreeElement.h"
|
|
|
|
|
|
|
|
@class MPSummand, MPOperatorChain, MPProduct;
|
|
|
|
|
|
/*!
|
|
@class MPSummand
|
|
@brief A summand is a part of an expression that consists of a list of
|
|
addition and subtraction operators and a product.
|
|
*/
|
|
@interface MPSummand : NSObject <MPExpressionTreeElement>
|
|
|
|
|
|
/*!
|
|
@property operatorChain
|
|
@brief The summand's preceeding operators.
|
|
|
|
@discussion The operator chain is interpreted as a factor for the @c product
|
|
property of the summand during evaluation.
|
|
*/
|
|
@property (readonly, nonatomic, strong) MPOperatorChain *operatorChain;
|
|
|
|
|
|
/*!
|
|
@property product
|
|
@brief The summand's product.
|
|
|
|
@discussion The product is the @em value of a summand.
|
|
*/
|
|
@property (readonly, nonatomic, strong) MPProduct *product;
|
|
|
|
@end
|