MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | List of all members
encrypto::motion::LockedQueue< T > Class Template Reference

#include <locked_queue.h>

Public Member Functions

bool empty () const
 
void enqueue (const T &item)
 
void enqueue (T &&item)
 
dequeue ()
 
template<typename Tick , typename Period >
std::optional< T > dequeue (const std::chrono::duration< Tick, Period > &duration)
 
template<typename Tick , typename Period >
std::queue< T > BatchDeque (const std::chrono::duration< Tick, Period > &duration)
 

Detailed Description

template<typename T>
class encrypto::motion::LockedQueue< T >

Locked queue for elements of type T

Member Function Documentation

◆ BatchDeque()

template<typename T >
template<typename Tick , typename Period >
std::queue<T> encrypto::motion::LockedQueue< T >::BatchDeque ( const std::chrono::duration< Tick, Period > &  duration)
inline

Extract all elements of the queue.

Here is the call graph for this function:

◆ dequeue() [1/2]

template<typename T >
T encrypto::motion::LockedQueue< T >::dequeue ( )
inline

Receives an element from the queue.

◆ dequeue() [2/2]

template<typename T >
template<typename Tick , typename Period >
std::optional<T> encrypto::motion::LockedQueue< T >::dequeue ( const std::chrono::duration< Tick, Period > &  duration)
inline

Receives an element from the queue with timeout.

◆ empty()

template<typename T >
bool encrypto::motion::LockedQueue< T >::empty ( ) const
inline

Checks if queue is empty.

◆ enqueue() [1/2]

template<typename T >
void encrypto::motion::LockedQueue< T >::enqueue ( const T &  item)
inline

Adds a new element to the queue.

◆ enqueue() [2/2]

template<typename T >
void encrypto::motion::LockedQueue< T >::enqueue ( T &&  item)
inline

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