Celeritas  0.5.0-86+4a8eea4
Enumerations | Functions
celeritas::logic Namespace Reference

Volume logic encoding. More...

Enumerations

enum  OperatorToken : logic_int {
  lbegin = logic_int(~logic_int(6)) , lopen = lbegin , lclose , ltrue ,
  lor , land , lnot , lend
}
 Special logical Evaluator tokens. More...
 

Functions

CELER_CONSTEXPR_FUNCTION bool is_operator_token (logic_int lv)
 Whether an integer is a special logic token.
 
constexpr char to_char (OperatorToken tok)
 

Detailed Description

Volume logic encoding.

Get a printable character corresponding to an operator.

This uses an unscoped enum inside a namespace so that its values can be freely intermingled with other integers that represent face IDs.

Enumeration Type Documentation

◆ OperatorToken

Special logical Evaluator tokens.

Enumerator
lopen 

Open parenthesis.

lclose 

Close parenthesis.

ltrue 

Push 'true'.

lor 

Binary logical OR.

land 

Binary logical AND.

lnot 

Unary negation.