|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Selector backed by a slab allocator vector. More...
#include <execution_trace_block.hpp>
Public Member Functions | |
| void | emplace_back (int i) override |
| Append an integer value to the selector. | |
| void | push_back (const FF &value) override |
| Push a field element to the selector. | |
| void | set_back (int value) override |
| Set the last value using integer. | |
| void | set (size_t idx, int i) override |
| Set the value at index using integer. | |
| void | set (size_t idx, const FF &value) override |
| Set the value at index using a field element. | |
| void | resize (size_t new_size) override |
| Resize the selector. | |
| bool | operator== (const SlabVectorSelector &other) const |
| const FF & | operator[] (size_t i) const override |
| Get value at specified index. | |
| const FF & | back () const override |
| Get the last value in the selector. | |
| size_t | size () const override |
| Get the number of elements. | |
| bool | empty () const override |
| Check if the selector is empty. | |
Public Member Functions inherited from bb::Selector< FF > | |
| Selector ()=default | |
| virtual | ~Selector ()=default |
| Selector (const Selector &)=default | |
| Selector & | operator= (const Selector &)=default |
| Selector (Selector &&)=delete | |
| Selector & | operator= (Selector &&)=delete |
| void | emplace_back (const FF &value) |
| Append a field element to the selector. | |
Private Attributes | |
| SlabVector< FF > | data |
Selector backed by a slab allocator vector.
Allows dynamic values with fast memory allocation from slabs.
| FF | The finite field element type. |
Definition at line 194 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Get the last value in the selector.
Implements bb::Selector< FF >.
Definition at line 208 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Append an integer value to the selector.
| value | Must be convertible to FF. |
Implements bb::Selector< FF >.
Definition at line 198 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Check if the selector is empty.
Implements bb::Selector< FF >.
Definition at line 211 of file execution_trace_block.hpp.
|
inline |
Definition at line 205 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Get value at specified index.
| index | Index of the element. |
Implements bb::Selector< FF >.
Definition at line 207 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Push a field element to the selector.
| value | Field element to add. |
Implements bb::Selector< FF >.
Definition at line 199 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Resize the selector.
| new_size | The new size. |
Implements bb::Selector< FF >.
Definition at line 203 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Set the value at index using a field element.
| idx | Index. |
| value | Field element. |
Implements bb::Selector< FF >.
Definition at line 202 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Set the value at index using integer.
| idx | Index. |
| value | Integer value. |
Implements bb::Selector< FF >.
Definition at line 201 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Set the last value using integer.
| value | Integer value. |
Implements bb::Selector< FF >.
Definition at line 200 of file execution_trace_block.hpp.
|
inlineoverridevirtual |
Get the number of elements.
Implements bb::Selector< FF >.
Definition at line 210 of file execution_trace_block.hpp.
|
private |
Definition at line 214 of file execution_trace_block.hpp.