Celeritas 0.6.0-dev.116+3fbab5e0
Loading...
Searching...
No Matches
Enumerations | Functions
celeritas::logic Namespace Reference

Volume logic encoding. More...

Enumerations

enum  OperatorToken : logic_int {
  lbegin = logic_int(~logic_int(6)) , lopen = lbegin , lclose , lor ,
  land , lnot , ltrue , lend
}
 Special logical Evaluator tokens ordered by precedence. 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 ordered by precedence.

Enumerator
lopen 

Open parenthesis.

lclose 

Close parenthesis.

lor 

Binary logical OR.

land 

Binary logical AND.

lnot 

Unary negation.

ltrue 

Push 'true'.