1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #include "SequenceContainerOfOpaqueTypes.h"
- namespace openfhe
- {
- VectorOfCiphertexts::VectorOfCiphertexts(std::vector<std::shared_ptr<CiphertextImpl>> ciphertexts)
- : m_ciphertexts(std::move(ciphertexts))
- { }
- const std::vector<std::shared_ptr<CiphertextImpl>>& VectorOfCiphertexts::GetInternal() const
- {
- return m_ciphertexts;
- }
- std::vector<std::shared_ptr<CiphertextImpl>>& VectorOfCiphertexts::GetInternal()
- {
- return m_ciphertexts;
- }
- VectorOfVectorOfCiphertexts::VectorOfVectorOfCiphertexts(
- std::vector<std::vector<std::shared_ptr<CiphertextImpl>>> ciphertexts)
- : m_ciphertexts(std::move(ciphertexts))
- { }
- std::vector<std::vector<std::shared_ptr<CiphertextImpl>>>&
- VectorOfVectorOfCiphertexts::GetInternal()
- {
- return m_ciphertexts;
- }
- VectorOfPrivateKeys::VectorOfPrivateKeys(std::vector<std::shared_ptr<PrivateKeyImpl>> privateKeys)
- : m_privateKeys(std::move(privateKeys))
- { }
- const std::vector<std::shared_ptr<PrivateKeyImpl>>& VectorOfPrivateKeys::GetInternal() const
- {
- return m_privateKeys;
- }
- VectorOfDCRTPolys::VectorOfDCRTPolys(
- const std::shared_ptr<std::vector<lbcrypto::DCRTPoly>> elements)
- : m_elements(elements)
- { }
- std::shared_ptr<std::vector<lbcrypto::DCRTPoly>> VectorOfDCRTPolys::GetInternal() const
- {
- return m_elements;
- }
- VectorOfEvalKeys::VectorOfEvalKeys(std::vector<std::shared_ptr<EvalKeyImpl>> evalKeys)
- : m_evalKeys(std::move(evalKeys))
- { }
- const std::vector<std::shared_ptr<EvalKeyImpl>>& VectorOfEvalKeys::GetInternal() const
- {
- return m_evalKeys;
- }
- VectorOfLWECiphertexts::VectorOfLWECiphertexts(
- std::vector<std::shared_ptr<LWECiphertextImpl>> lweCiphertexts)
- : m_lweCiphertexts(std::move(lweCiphertexts))
- { }
- std::vector<std::shared_ptr<LWECiphertextImpl>>& VectorOfLWECiphertexts::GetInternal()
- {
- return m_lweCiphertexts;
- }
- } // openfhe
|