COPASI API  4.16.103
Public Member Functions | Public Attributes | List of all members
CEvaluationNode::CPrecedence Class Reference

#include <CEvaluationNode.h>

Public Member Functions

 CPrecedence (const size_t &left=0, const size_t &right=0)
 
 CPrecedence (const CPrecedence &src)
 
 ~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

Definition at line 392 of file CEvaluationNode.h.

Constructor & Destructor Documentation

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)

Definition at line 24 of file CEvaluationNode.cpp.

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

Copy constructor

Parameters
constCPrecedence & src

Definition at line 30 of file CEvaluationNode.cpp.

30  :
31  left(src.left),
32  right(src.right)
33 {}
CEvaluationNode::CPrecedence::~CPrecedence ( )

Destructor

Definition at line 35 of file CEvaluationNode.cpp.

35 {}

Member Data Documentation

size_t CEvaluationNode::CPrecedence::left

The left precedence

Definition at line 417 of file CEvaluationNode.h.

Referenced by CEvaluationNode::operator<().

size_t CEvaluationNode::CPrecedence::right

The left precedence

Definition at line 422 of file CEvaluationNode.h.

Referenced by CEvaluationNode::operator<().


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