ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
CircuitCacheInfos Struct Reference

All information stored for a single gate in the circuit cache. More...

#include "CircuitCache.h"

Collaboration diagram for CircuitCacheInfos:

Public Member Functions

unsigned size () const
 Estimated memory footprint of this entry in bytes.
 

Public Attributes

pg_uuid_t token
 UUID identifying this gate.
 
gate_type type
 Kind of gate (input, plus, times, …)
 
std::vector< pg_uuid_tchildren
 Ordered list of child gate UUIDs.
 

Detailed Description

All information stored for a single gate in the circuit cache.

Each cache entry tracks the gate's UUID token, its type, and the list of its children (also as UUIDs).

Definition at line 40 of file CircuitCache.h.

Member Function Documentation

◆ size()

unsigned CircuitCacheInfos::size ( ) const
inline

Estimated memory footprint of this entry in bytes.

Used by CircuitCache to track the total size of the cache so that it can enforce its byte budget.

Returns
Size of CircuitCacheInfos plus the children array.

Definition at line 54 of file CircuitCache.h.

Here is the caller graph for this function:

Member Data Documentation

◆ children

std::vector<pg_uuid_t> CircuitCacheInfos::children

Ordered list of child gate UUIDs.

Definition at line 44 of file CircuitCache.h.

◆ token

pg_uuid_t CircuitCacheInfos::token

UUID identifying this gate.

Definition at line 42 of file CircuitCache.h.

◆ type

gate_type CircuitCacheInfos::type

Kind of gate (input, plus, times, …)

Definition at line 43 of file CircuitCache.h.


The documentation for this struct was generated from the following file: