rego-cpp 1.0.0
A C++ implementation of the Rego language and runtime
Loading...
Searching...
No Matches
rego::bundle Namespace Reference

Classes

struct  CallDynamicExt
 Additional information for CallDynamic statements. More...
 
struct  CallExt
 Additional information for Call statements. More...
 
struct  Function
 Represents a function in the IR. More...
 
struct  Operand
 Represents an operand in the IR. More...
 
struct  Plan
 Represents a plan in the IR. More...
 
struct  Statement
 Represents a single IR statement. More...
 
struct  StatementExt
 Additional information for Call, CallDynamic, With, Block, Not, and Scan statements. More...
 
struct  WithExt
 Additional information for With statements. More...
 

Typedefs

typedef std::vector< StatementBlock
 A block of statements.
 

Enumerations

enum class  OperandType {
  None , Local = 1 , String = 2 , True = 3 ,
  False = 4 , Index , Value
}
 The type of an operand.
 
enum class  StatementType {
  Nop = 0 , ArrayAppend = 1 , AssignInt = 2 , AssignVarOnce = 3 ,
  AssignVar = 4 , Block = 5 , Break = 6 , CallDynamic = 7 ,
  Call = 8 , Dot = 9 , Equal = 10 , IsArray = 11 ,
  IsDefined = 12 , IsObject = 13 , IsSet = 14 , IsUndefined = 15 ,
  Len = 16 , MakeArray = 17 , MakeNull = 18 , MakeNumberInt = 19 ,
  MakeNumberRef = 20 , MakeObject = 21 , MakeSet = 22 , NotEqual = 23 ,
  Not = 24 , ObjectInsert = 25 , ObjectInsertOnce = 26 , ObjectMerge = 27 ,
  ResetLocal = 28 , ResultSetAdd = 29 , ReturnLocal = 30 , Scan = 31 ,
  SetAdd = 32 , With = 33
}
 The type of an IR statement. More...
 

Detailed Description

Namespace containing types and functions related to Rego bundles.

Enumeration Type Documentation

◆ StatementType

enum class rego::bundle::StatementType
strong

The type of an IR statement.

See https://www.openpolicyagent.org/docs/ir for more information on these statements.