Class StringEncoding
Defined in File stringencoding.h
Page Contents
Inheritance Relationships
Base Type
public lbcrypto::PlaintextImpl
(Class PlaintextImpl)
Class Documentation
-
class lbcrypto::StringEncoding : public lbcrypto::PlaintextImpl
Inheritence diagram for lbcrypto::StringEncoding:
Collaboration diagram for lbcrypto::StringEncoding:
Public Functions
-
inline virtual ~StringEncoding()
-
inline virtual const std::string &GetStringValue() const
GetStringValue
- Returns
the un-encoded string
-
inline virtual void SetStringValue(const std::string &value)
SetStringValue
- Parameters
val – to initialize the Plaintext
-
virtual bool Encode()
Encode the plaintext into the Poly
- Returns
true on success
-
virtual bool Decode()
Decode the Poly into the string
- Returns
true on success
-
inline virtual PlaintextEncodings GetEncodingType() const
GetEncodingType
- Returns
STRING_ENCODING
-
inline virtual size_t GetLength() const
Get length of the plaintext
- Returns
number of elements in this plaintext
-
inline virtual bool CompareTo(const PlaintextImpl &other) const
Method to compare two plaintext to test for equivalence Testing that the plaintexts are of the same type done in operator==
- Parameters
other – - the other plaintext to compare to.
- Returns
whether the two plaintext are equivalent.
-
inline virtual void PrintValue(std::ostream &out) const
PrintValue - used by operator<< for this object
- Parameters
out –
-
inline virtual ~StringEncoding()