ComputeFHE 1.0
General-Purpose Privacy-Preserving Computation Library for TFHE
Loading...
Searching...
No Matches
Public Member Functions | List of all members
computefhe::Evector< T > Class Template Reference

General template for Evector. More...

#include <Evector.h>

Inheritance diagram for computefhe::Evector< T >:
Inheritance graph
[legend]
Collaboration diagram for computefhe::Evector< T >:
Collaboration graph
[legend]

Public Member Functions

Eitem< Einteger, uint64_toperator[] (const Einteger &index)
 Access element using an encrypted index.
 
template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>>
Toperator[] (Integral idx)
 Access element using a plaintext integral index. Overloads standard std::vector access to return a direct reference.
 

Detailed Description

template<typename T>
class computefhe::Evector< T >

General template for Evector.

A vector container that supports element access via encrypted indices.

This class inherits from std::vector and provides overloaded operator[] to allow for "Oblivious Array Access". When an encrypted index is used, it returns an Eitem proxy.

Member Function Documentation

◆ operator[]()

template<typename T >
Eitem< Einteger, uint64_t > computefhe::Evector< T >::operator[] ( const Einteger index)
inline

Access element using an encrypted index.

Returns
An Eitem proxy representing the element at the secret position.

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