Search Results

Concrete implementation of AbstractPlaintext API for HElib's CKKS scheme. More...

#include <HelibCkksPlaintext.h>

Inheritance diagram for helayers::HelibCkksPlaintext:
helayers::AbstractPlaintext

Public Member Functions

 HelibCkksPlaintext (HelibCkksContext &h)
A constructor.
 
std::shared_ptr< HelibCkksPlaintextclone () const
Copies this HelibCkksPlaintext and returns a pointer to the new copied object as shared_ptr<HelibCkksPlaintext>.
 
std::streamoff save (std::ostream &stream) const override
Saves this HelibCkksPlaintext to the receieved binary stream. More...
 
std::streamoff load (std::istream &stream) override
Loads this HelibCkksPlaintext from the receieved binary stream. More...
 
void reduceChainIndex () override
This function has no effect in this implementation of plaintext.
 
void setChainIndex (const AbstractPlaintext &other) override
This function has no effect in this implementation of plaintext.
 
void setChainIndex (int chainIndex) override
This function has no effect in this implementation of plaintext.
 
int getChainIndex () const override
Returns an arbitrary value.
 
int slotCount () const override
Returns the number of slots of this plaintext.
 
const helib::Ptxt< helib::CKKS > & getPlaintext () const
Returns the internal plaintext object of the underlying Helib CKKS scheme.
 
const helib::Ptxt< helib::CKKS > & getRaw () const
Returns the internal plaintext object of the underlying Helib CKKS scheme.
 
- Public Member Functions inherited from helayers::AbstractPlaintext
 AbstractPlaintext (HeContext &he)
 
AbstractPlaintextoperator= (const AbstractPlaintext &src)=delete
 
std::shared_ptr< AbstractPlaintextclone () const
 
HeContextgetContext ()
 
const HeContextgetContext () const
 
virtual void debugPrint (const std::string &title="", int maxElements=-1, int verbose=0, std::ostream &out=std::cout) const
 

Friends

class HelibCkksEncoder
 

Additional Inherited Members

- Protected Member Functions inherited from helayers::AbstractPlaintext
 AbstractPlaintext (const AbstractPlaintext &src)=default
 

Detailed Description

Concrete implementation of AbstractPlaintext API for HElib's CKKS scheme.

Member Function Documentation

◆ load()

streamoff helayers::HelibCkksPlaintext::load ( std::istream &  stream)
overridevirtual

Loads this HelibCkksPlaintext from the receieved binary stream.

Parameters
streamThe binary stream to load from.

Implements helayers::AbstractPlaintext.

◆ save()

streamoff helayers::HelibCkksPlaintext::save ( std::ostream &  stream) const
overridevirtual

Saves this HelibCkksPlaintext to the receieved binary stream.

Parameters
streamThe binary stream to save to.

Implements helayers::AbstractPlaintext.


The documentation for this class was generated from the following files:
  • /opt/IBM/FHE-distro/ML-HElib/src/helayers/hebase/helib/HelibCkksPlaintext.h
  • /opt/IBM/FHE-distro/ML-HElib/src/helayers/hebase/helib/HelibCkksPlaintext.cpp