![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
Per-gate metadata stored in the gates MMappedVector.
More...
#include "MMappedCircuit.h"
Public Member Functions | |
| GateInformation (gate_type t, unsigned n, unsigned long i) | |
Construct a GateInformation with mandatory fields. | |
| GateInformation () | |
| GateInformation (gate_type t, unsigned n, unsigned long idx) | |
Public Attributes | |
| gate_type | type |
| Kind of gate (input, plus, times, …). | |
| unsigned | nb_children |
| Number of children. | |
| unsigned long | children_idx |
Start index of this gate's children in wires. | |
| double | prob |
| Associated probability (default 1.0). | |
| unsigned | info1 |
| General-purpose integer annotation 1. | |
| unsigned | info2 |
| General-purpose integer annotation 2. | |
| unsigned long | extra_idx |
Start index in extra for string data. | |
| unsigned | extra_len |
Byte length of the string data in extra. | |
Per-gate metadata stored in the gates MMappedVector.
Each gate in the persistent circuit has exactly one GateInformation record. The children_idx and nb_children fields together index into the wires MMappedVector to find the gate's children. Similarly, extra_idx and extra_len index into the extra vector for variable-length string annotations.
Definition at line 61 of file MMappedCircuit.h.
|
inline |
Construct a GateInformation with mandatory fields.
| t | Gate type. |
| n | Number of children. |
| i | Start index of children in the wires vector. |
Definition at line 78 of file MMappedCircuit.h.
|
inline |
Definition at line 89 of file provsql_migrate_mmap.cpp.
|
inline |
Definition at line 92 of file provsql_migrate_mmap.cpp.
| unsigned long GateInformation::children_idx |
Start index of this gate's children in wires.
Definition at line 65 of file MMappedCircuit.h.
| unsigned long GateInformation::extra_idx |
Start index in extra for string data.
Definition at line 69 of file MMappedCircuit.h.
| unsigned GateInformation::extra_len |
Byte length of the string data in extra.
Definition at line 70 of file MMappedCircuit.h.
| unsigned GateInformation::info1 |
General-purpose integer annotation 1.
Definition at line 67 of file MMappedCircuit.h.
| unsigned GateInformation::info2 |
General-purpose integer annotation 2.
Definition at line 68 of file MMappedCircuit.h.
| unsigned GateInformation::nb_children |
Number of children.
Definition at line 64 of file MMappedCircuit.h.
| double GateInformation::prob |
Associated probability (default 1.0).
Definition at line 66 of file MMappedCircuit.h.
| gate_type GateInformation::type |
Kind of gate (input, plus, times, …).
Definition at line 63 of file MMappedCircuit.h.