tfhe_libex
src
include
type
bool
bool.hpp
[詳解]
1
5
#ifndef BOOL
6
#define BOOL
7
#include "../array/array.hpp"
8
#include "../core/integer_core.hpp"
9
13
class
TFHEBool
:
public
TFHEBoolCore
{
14
public
:
15
friend
class
TFHEArray
<
TFHEBool
>;
16
TFHEBool
(
const
TFHEBool
& elm);
17
TFHEBool
(
const
TFHEBoolCore
& elm);
18
22
TFHEBool
();
23
28
TFHEBool
(
bool
value);
29
35
TFHEBool
(
const
char
* path,
int
id
);
36
37
TFHEIntegerCore
operator*(
const
TFHEIntegerCore
& other);
38
45
TFHEBoolCore
operator+
(
const
TFHEBoolCore
& other);
46
53
TFHEBoolCore
operator*(
const
TFHEBoolCore
& other);
54
55
protected
:
56
static
void
save_option_forArray(FILE* fp);
57
static
int
array_size(
int
shape_size,
int
array_size);
58
static
int
array_option_num();
59
void
load_raw(FILE* fp)
override
;
60
void
save_raw(FILE* fp)
override
;
61
TFHEIntegerCore
mul(
TFHEBool
value1,
TFHEIntegerCore
value2);
62
};
63
64
#endif
TFHEArray
TFHEの多次元配列のクラス.
Definition:
array.hpp:15
TFHEBool::TFHEBool
TFHEBool()
空のTFHEのBool型を生成するコンストラクタ.
Definition:
bool.cpp:9
TFHEIntegerCore
TFHEの整数型のcoreクラス.
Definition:
integer_core.hpp:18
TFHEBoolCore
TFHEのBool型のcoreクラス.
Definition:
bool_core.hpp:14
TFHEBool::operator+
TFHEBoolCore operator+(const TFHEBoolCore &other)
TFHEBool型の論理和を行うオペレータ.
Definition:
bool.cpp:30
TFHEBool
TFHEの真理値型のクラス.
Definition:
bool.hpp:13
構築:
1.8.17