Token
A token in a non-linear formula. More...
#include <xpress_objects.hpp>
Public Member Functions |
|
Token () | |
auto | compareTo (Token const &other) const -> int |
auto | equals (Token const &other) const -> bool |
auto | getHashCode () const -> std::size_t |
auto | getType () const -> int |
Token type [get]. |
|
auto | getValue () const -> double |
Token value [get]. |
|
auto | operator!= (Token const &other) const -> bool |
auto | operator== (Token const &other) const -> bool |
auto | toString () const -> std::string |
Static Public Member Functions |
|
static auto | column (int col) -> xpress::objects::Token |
Create a token that represents a reference to column col . |
|
static auto | constant (double value) -> xpress::objects::Token |
Create a token that represents the constant value value . |
|
static auto | function (int id) -> xpress::objects::Token |
Create a token that represents a call to user function id . |
|
static auto | internalFunction (int id) -> xpress::objects::Token |
Create a token that represents a call to internal function id . |
|
static auto | of (int type, double value) -> xpress::objects::Token |
Create a token from a type and a value. |
|
Static Public Attributes |
|
static constexpr Token const & | ABS = xpress::GlobalConstants<void>::xpress_objects_Token_ABS |
abs function. |
|
static constexpr Token const & | ARCCOS = xpress::GlobalConstants<void>::xpress_objects_Token_ARCCOS |
arccos function. |
|
static constexpr Token const & | ARCSIN = xpress::GlobalConstants<void>::xpress_objects_Token_ARCSIN |
arcsin function. |
|
static constexpr Token const & | ARCTAN = xpress::GlobalConstants<void>::xpress_objects_Token_ARCTAN |
arctan function. |
|
static constexpr Token const & | COLON = xpress::GlobalConstants<void>::xpress_objects_Token_COLON |
Colon token. |
|
static constexpr Token const & | COMMA = xpress::GlobalConstants<void>::xpress_objects_Token_COMMA |
Comma token. |
|
static constexpr Token const & | COS = xpress::GlobalConstants<void>::xpress_objects_Token_COS |
cos function. |
|
static constexpr Token const & | DIVIDE = xpress::GlobalConstants<void>::xpress_objects_Token_DIVIDE |
Divide token. |
|
static constexpr Token const & | EOFORMULA = xpress::GlobalConstants<void>::xpress_objects_Token_EOF |
End of formula token. |
|
static constexpr Token const & | EXP = xpress::GlobalConstants<void>::xpress_objects_Token_EXP |
exp function. |
|
static constexpr Token const & | EXPONENT = xpress::GlobalConstants<void>::xpress_objects_Token_EXPONENT |
Exponentiation token. |
|
static constexpr Token const & | LB = xpress::GlobalConstants<void>::xpress_objects_Token_LB |
Left-bracket token. |
|
static constexpr Token const & | LN = xpress::GlobalConstants<void>::xpress_objects_Token_LN |
ln function. |
|
static constexpr Token const & | LOG10 = xpress::GlobalConstants<void>::xpress_objects_Token_LOG10 |
log10 function. |
|
static constexpr Token const & | MAX = xpress::GlobalConstants<void>::xpress_objects_Token_MAX |
max function. |
|
static constexpr Token const & | MIN = xpress::GlobalConstants<void>::xpress_objects_Token_MIN |
min function. |
|
static constexpr Token const & | MINUS = xpress::GlobalConstants<void>::xpress_objects_Token_MINUS |
Minus token. |
|
static constexpr Token const & | MULTIPLY = xpress::GlobalConstants<void>::xpress_objects_Token_MULTIPLY |
Multiply token. |
|
static constexpr Token const & | PLUS = xpress::GlobalConstants<void>::xpress_objects_Token_PLUS |
Plus token. |
|
static constexpr Token const & | PROD = xpress::GlobalConstants<void>::xpress_objects_Token_PROD |
prod function. |
|
static constexpr Token const & | PWL = xpress::GlobalConstants<void>::xpress_objects_Token_PWL |
pwl function. |
|
static constexpr Token const & | RB = xpress::GlobalConstants<void>::xpress_objects_Token_RB |
Right-bracket token. |
|
static constexpr Token const & | SIGN = xpress::GlobalConstants<void>::xpress_objects_Token_SIGN |
sign function. |
|
static constexpr Token const & | SIN = xpress::GlobalConstants<void>::xpress_objects_Token_SIN |
sin function. |
|
static constexpr Token const & | SQRT = xpress::GlobalConstants<void>::xpress_objects_Token_SQRT |
sqrt function. |
|
static constexpr Token const & | SUM = xpress::GlobalConstants<void>::xpress_objects_Token_SUM |
sum function. |
|
static constexpr Token const & | TAN = xpress::GlobalConstants<void>::xpress_objects_Token_TAN |
tan function. |
|
static constexpr Token const & | UMINUS = xpress::GlobalConstants<void>::xpress_objects_Token_UMINUS |
Unary minus token. |
|
Detailed Description
A token in a non-linear formula.
All constructors of this class are private. Use the various static factory functions to get instances. This avoids creating multiple instances that refer to the same token (like for example the EOFORMULA
token.
- Since
- 44.00
Constructor & Destructor Documentation
Token()
|
inline |
- Since
- 44.00
Member Function Documentation
column()
|
inlinestatic |
Create a token that represents a reference to column col
.
- Parameters
-
col Index of column to reference.
- Returns
- The token.
- Since
- 44.00
compareTo()
|
inline |
- Since
- 44.00
constant()
|
inlinestatic |
Create a token that represents the constant value value
.
- Parameters
-
value Constant value that the token represents.
- Returns
- The token.
- Since
- 44.00
equals()
|
inline |
- Since
- 44.00
function()
|
inlinestatic |
Create a token that represents a call to user function id
.
- Parameters
-
id User function id.
- Returns
- The token.
- Since
- 44.00
getHashCode()
|
inline |
- Since
- 44.00
getType()
|
inline |
Token type [get].
- Since
- 44.00
getValue()
|
inline |
Token value [get].
- Since
- 44.00
internalFunction()
|
inlinestatic |
Create a token that represents a call to internal function id
.
- Parameters
-
id Internal function id.
- Returns
- The token.
- Since
- 44.00
of()
|
inlinestatic |
Create a token from a type and a value.
- Parameters
-
type Token type. value Token value.
- Returns
-
The token represented by
type
andvalue
.
- Since
- 44.00
operator!=()
|
inline |
- Since
- 44.00
operator==()
|
inline |
- Since
- 44.00
toString()
|
inline |
- Since
- 44.00
Member Data Documentation
ABS
|
inlinestaticconstexpr |
abs
function.
- Since
- 44.00
ARCCOS
|
inlinestaticconstexpr |
arccos
function.
- Since
- 44.00
ARCSIN
|
inlinestaticconstexpr |
arcsin
function.
- Since
- 44.00
ARCTAN
|
inlinestaticconstexpr |
arctan
function.
- Since
- 44.00
COLON
|
inlinestaticconstexpr |
Colon token.
- Since
- 44.00
COMMA
|
inlinestaticconstexpr |
Comma token.
- Since
- 44.00
COS
|
inlinestaticconstexpr |
cos
function.
- Since
- 44.00
DIVIDE
|
inlinestaticconstexpr |
Divide token.
- Since
- 44.00
EOFORMULA
|
inlinestaticconstexpr |
End of formula token.
- Since
- 44.00
EXP
|
inlinestaticconstexpr |
exp
function.
- Since
- 44.00
EXPONENT
|
inlinestaticconstexpr |
Exponentiation token.
- Since
- 44.00
LB
|
inlinestaticconstexpr |
Left-bracket token.
- Since
- 44.00
LN
|
inlinestaticconstexpr |
ln
function.
- Since
- 44.00
LOG10
|
inlinestaticconstexpr |
log10
function.
- Since
- 44.00
MAX
|
inlinestaticconstexpr |
max
function.
- Since
- 44.00
MIN
|
inlinestaticconstexpr |
min
function.
- Since
- 44.00
MINUS
|
inlinestaticconstexpr |
Minus token.
- Since
- 44.00
MULTIPLY
|
inlinestaticconstexpr |
Multiply token.
- Since
- 44.00
PLUS
|
inlinestaticconstexpr |
Plus token.
- Since
- 44.00
PROD
|
inlinestaticconstexpr |
prod
function.
- Since
- 44.00
PWL
|
inlinestaticconstexpr |
pwl
function.
- Since
- 44.00
RB
|
inlinestaticconstexpr |
Right-bracket token.
- Since
- 44.00
SIGN
|
inlinestaticconstexpr |
sign
function.
- Since
- 44.00
SIN
|
inlinestaticconstexpr |
sin
function.
- Since
- 44.00
SQRT
|
inlinestaticconstexpr |
sqrt
function.
- Since
- 44.00
SUM
|
inlinestaticconstexpr |
sum
function.
- Since
- 44.00
TAN
|
inlinestaticconstexpr |
tan
function.
- Since
- 44.00
UMINUS
|
inlinestaticconstexpr |
Unary minus token.
- Since
- 44.00
The documentation for this class was generated from the following file:
- xpress_objects.hpp
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.