emp-toolkit
Bit Class Reference

#include <bit.h>

Inheritance diagram for Bit:
Swappable< Bit >

Public Member Functions

 Bit (bool _b=false, int party=PUBLIC)
 
 Bit (const block &a)
 
template<typename O = bool>
reveal (int party=PUBLIC) const
 
Bit operator!= (const Bit &rhs) const
 
Bit operator== (const Bit &rhs) const
 
Bit operator& (const Bit &rhs) const
 
Bit operator| (const Bit &rhs) const
 
Bit operator! () const
 
Bit select (const Bit &select, const Bit &new_v) const
 
Bit operator^ (const Bit &rhs) const
 
 Bit (size_t size, const block *a)
 
template<>
string reveal (int party) const
 
- Public Member Functions inherited from Swappable< Bit >
Bit If (const Bit &sel, const Bit &rhs) const
 

Static Public Member Functions

template<typename... Args>
static size_t bool_size (Args &&... args)
 
static void bool_data (bool *b, bool data)
 

Public Attributes

block bit
 

Constructor & Destructor Documentation

§ Bit() [1/3]

Bit::Bit ( bool  _b = false,
int  party = PUBLIC 
)
inline

§ Bit() [2/3]

Bit::Bit ( const block a)
inline

§ Bit() [3/3]

Bit::Bit ( size_t  size,
const block a 
)
inline

Member Function Documentation

§ bool_data()

static void Bit::bool_data ( bool *  b,
bool  data 
)
inlinestatic

§ bool_size()

template<typename... Args>
static size_t Bit::bool_size ( Args &&...  args)
inlinestatic

§ operator!()

Bit Bit::operator! ( ) const
inline

§ operator!=()

Bit Bit::operator!= ( const Bit rhs) const
inline

§ operator&()

Bit Bit::operator & ( const Bit rhs) const

§ operator==()

Bit Bit::operator== ( const Bit rhs) const
inline

§ operator^()

Bit Bit::operator^ ( const Bit rhs) const
inline

§ operator|()

Bit Bit::operator| ( const Bit rhs) const
inline

§ reveal() [1/2]

template<typename O >
O Bit::reveal ( int  party = PUBLIC) const
inline

§ reveal() [2/2]

template<>
string Bit::reveal ( int  party) const
inline

§ select()

Bit Bit::select ( const Bit select,
const Bit new_v 
) const
inline

Member Data Documentation

§ bit

block Bit::bit

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