MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
38 :
Wire(backend, number_of_simd) {}
41 :
Wire(backend, values.size()), values_(std::move(values)) {}
44 :
Wire(backend, values.size()), values_(values) {}
54 const std::vector<T>&
GetValues()
const {
return values_; }
63 std::vector<T> values_;
std::size_t GetBitLength() const final
Definition: constant_wire.h:58
CircuitType
Definition: typedefs.h:165
std::shared_ptr< ConstantBooleanWire > ConstantBooleanWirePointer
Definition: constant_wire.h:99
bool IsConstant() const noexcept final
Definition: constant_wire.h:93
~ConstantArithmeticWire() final=default
CircuitType GetCircuitType() const final
Definition: constant_wire.h:52
ConstantArithmeticWire(Backend &backend, std::size_t number_of_simd)
Definition: constant_wire.h:37
bool IsConstant() const noexcept final
Definition: constant_wire.h:60
MpcProtocol GetProtocol() const final
Definition: constant_wire.h:81
const BitVector & GetValues() const
Definition: constant_wire.h:89
std::vector< T > & GetMutableValues()
Definition: constant_wire.h:56
ConstantArithmeticWire(const std::vector< T > &values, Backend &backend)
Definition: constant_wire.h:43
BitVector & GetMutableValues()
Definition: constant_wire.h:91
~ConstantBooleanWire() final=default
MpcProtocol GetProtocol() const final
Definition: constant_wire.h:50
Definition: constant_wire.h:69
const std::vector< T > & GetValues() const
Definition: constant_wire.h:54
MpcProtocol
Definition: typedefs.h:140
ConstantArithmeticWire(std::vector< T > &&values, Backend &backend)
Definition: constant_wire.h:40
T value_type
Definition: constant_wire.h:35
std::size_t GetBitLength() const final
Definition: constant_wire.h:87
void Append(bool bit) noexcept
Appends a bit to BitVector.
Definition: bit_vector.cpp:621
std::shared_ptr< ConstantArithmeticWire< T > > ConstantArithmeticWirePointer
Definition: constant_wire.h:67
ConstantArithmeticWire(T t, Backend &backend)
Definition: constant_wire.h:46
ConstantBooleanWire()=delete
default
Definition: geninput.py:149
Definition: constant_wire.h:33