MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
encrypto::motion::ThreeGate Class Reference

#include <gate.h>

Inheritance diagram for encrypto::motion::ThreeGate:
Inheritance graph
[legend]
Collaboration diagram for encrypto::motion::ThreeGate:
Collaboration graph
[legend]

Public Member Functions

 ~ThreeGate () override=default
 
- Public Member Functions inherited from encrypto::motion::Gate
virtual ~Gate ()=default
 
virtual void EvaluateSetup ()=0
 
virtual void EvaluateOnline ()=0
 
const std::vector< WirePointer > & GetOutputWires () const
 
void Clear ()
 
void RegisterWaitingFor (std::size_t wire_id)
 
void SignalDependencyIsReady ()
 
bool AreDependenciesReady ()
 
void SetSetupIsReady ()
 
void SetOnlineIsReady ()
 
void WaitSetup () const
 
void WaitOnline () const
 
bool SetupIsReady () const
 
std::int64_t GetId () const
 
 Gate (Gate &)=delete
 

Protected Member Functions

 ThreeGate (Backend &backend)
 
- Protected Member Functions inherited from encrypto::motion::Gate
 Gate (Backend &backend)
 
RegisterGetRegister ()
 
ConfigurationGetConfiguration ()
 
LoggerGetLogger ()
 
BaseProviderGetBaseProvider ()
 
MtProviderGetMtProvider ()
 
SpProviderGetSpProvider ()
 
SbProviderGetSbProvider ()
 
communication::CommunicationLayerGetCommunicationLayer ()
 
OtProviderGetOtProvider (const std::size_t i)
 

Protected Attributes

std::vector< WirePointerparent_a_
 
std::vector< WirePointerparent_b_
 
std::vector< WirePointerparent_c_
 
- Protected Attributes inherited from encrypto::motion::Gate
std::vector< WirePointeroutput_wires_
 
Backendbackend_
 
std::int64_t gate_id_ = -1
 
std::unordered_set< std::size_t > wire_dependencies_
 
GateType gate_type_ = GateType::kInvalid
 
std::atomic< bool > setup_is_ready_ = false
 
std::atomic< bool > online_is_ready_ = false
 
std::atomic< bool > requires_online_interaction_ = false
 
std::atomic< bool > added_to_active_queue_ = false
 
FiberCondition setup_is_ready_condition_
 
FiberCondition online_is_ready_condition_
 
std::atomic< std::size_t > number_of_ready_dependencies_ = 0
 
bool own_output_wires_ {true}
 

Constructor & Destructor Documentation

◆ ThreeGate()

encrypto::motion::ThreeGate::ThreeGate ( Backend backend)
inlineprotected

◆ ~ThreeGate()

encrypto::motion::ThreeGate::~ThreeGate ( )
overridedefault

Member Data Documentation

◆ parent_a_

std::vector<WirePointer> encrypto::motion::ThreeGate::parent_a_
protected

◆ parent_b_

std::vector<WirePointer> encrypto::motion::ThreeGate::parent_b_
protected

◆ parent_c_

std::vector<WirePointer> encrypto::motion::ThreeGate::parent_c_
protected

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