SequenceContainerOfOpaqueTypes.cc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #include "SequenceContainerOfOpaqueTypes.h"
  2. namespace openfhe
  3. {
  4. VectorOfCiphertexts::VectorOfCiphertexts(std::vector<std::shared_ptr<CiphertextImpl>> ciphertexts)
  5. : m_ciphertexts(std::move(ciphertexts))
  6. { }
  7. const std::vector<std::shared_ptr<CiphertextImpl>>& VectorOfCiphertexts::GetInternal() const
  8. {
  9. return m_ciphertexts;
  10. }
  11. std::vector<std::shared_ptr<CiphertextImpl>>& VectorOfCiphertexts::GetInternal()
  12. {
  13. return m_ciphertexts;
  14. }
  15. VectorOfVectorOfCiphertexts::VectorOfVectorOfCiphertexts(
  16. std::vector<std::vector<std::shared_ptr<CiphertextImpl>>> ciphertexts)
  17. : m_ciphertexts(std::move(ciphertexts))
  18. { }
  19. std::vector<std::vector<std::shared_ptr<CiphertextImpl>>>&
  20. VectorOfVectorOfCiphertexts::GetInternal()
  21. {
  22. return m_ciphertexts;
  23. }
  24. VectorOfPrivateKeys::VectorOfPrivateKeys(std::vector<std::shared_ptr<PrivateKeyImpl>> privateKeys)
  25. : m_privateKeys(std::move(privateKeys))
  26. { }
  27. const std::vector<std::shared_ptr<PrivateKeyImpl>>& VectorOfPrivateKeys::GetInternal() const
  28. {
  29. return m_privateKeys;
  30. }
  31. VectorOfDCRTPolys::VectorOfDCRTPolys(
  32. const std::shared_ptr<std::vector<lbcrypto::DCRTPoly>> elements)
  33. : m_elements(elements)
  34. { }
  35. std::shared_ptr<std::vector<lbcrypto::DCRTPoly>> VectorOfDCRTPolys::GetInternal() const
  36. {
  37. return m_elements;
  38. }
  39. VectorOfEvalKeys::VectorOfEvalKeys(std::vector<std::shared_ptr<EvalKeyImpl>> evalKeys)
  40. : m_evalKeys(std::move(evalKeys))
  41. { }
  42. const std::vector<std::shared_ptr<EvalKeyImpl>>& VectorOfEvalKeys::GetInternal() const
  43. {
  44. return m_evalKeys;
  45. }
  46. VectorOfLWECiphertexts::VectorOfLWECiphertexts(
  47. std::vector<std::shared_ptr<LWECiphertextImpl>> lweCiphertexts)
  48. : m_lweCiphertexts(std::move(lweCiphertexts))
  49. { }
  50. std::vector<std::shared_ptr<LWECiphertextImpl>>& VectorOfLWECiphertexts::GetInternal()
  51. {
  52. return m_lweCiphertexts;
  53. }
  54. } // openfhe