COPASI API  4.40.278
CEvaluationNode::CPrecedence Class Reference

#include <CEvaluationNode.h>

Public Member Functions

 CPrecedence (const CPrecedence &src)
 
 CPrecedence (const size_t &left=0, const size_t &right=0)
 
 ~CPrecedence ()
 

Public Attributes

size_t left
 
size_t right
 

Detailed Description

Structure holding the precedence information

The Precedence Table

Nodes of type WHITESPACE are ignored. Higher right than left precedence means evaluation proceeds form left to right. Higher left precedence as can be found for the operator '^' means evaluation proceeds from right to left.

left precedence | | right precedence --------------—+-----------—+---------------— | LOGIC: | 3 | .not. | 2 4 | .or. | 5 6 | .xor. | 7 8 | .and. | 9 10 | .eq. | 11 12 | .ne. | 13 14 | .gt. | 15 16 | .ge. | 17 18 | .lt. | 19 20 | .le. | 21 --------------—+-----------—+---------------— | OPERATOR: | 22 | - | 23 22 | + | 23 26 | % | 27 28 | / | 29 28 | * | 29 33 | ^ | 32 --------------—+-----------—+---------------— 35 | FUNCTION | 34 35 | MV_FUNCTION | 34 35 | CALL | 34 35 | CHOICE | 34 --------------—+-----------—+---------------— 36 | NUMBER | 37 36 | CONSTANT | 37 36 | OBJECT | 37 36 | VARIABLE | 37 --------------—+-----------—+---------------— | STRUCTURE: | ULONG_MAX | (| 1 0 | , | 1 0 |) | ULONG_MAX

Constructor & Destructor Documentation

◆ CPrecedence() [1/2]

CEvaluationNode::CPrecedence::CPrecedence ( const size_t &  left = 0,
const size_t &  right = 0 
)

Default constructor

Parameters
constsize_t & left (default: 0)
constsize_t & right (default: 0)

◆ CPrecedence() [2/2]

CEvaluationNode::CPrecedence::CPrecedence ( const CPrecedence src)

Copy constructor

Parameters
constCPrecedence & src

◆ ~CPrecedence()

CEvaluationNode::CPrecedence::~CPrecedence ( )

Destructor

Member Data Documentation

◆ left

size_t CEvaluationNode::CPrecedence::left

The left precedence

Referenced by CEvaluationNode::operator<().

◆ right

size_t CEvaluationNode::CPrecedence::right

The left precedence

Referenced by CEvaluationNode::operator<().


The documentation for this class was generated from the following files: