| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include "AssociativeContainerOfOpaqueTypes.h"
- namespace openfhe
- {
- UnorderedMapFromIndexToDCRTPoly::UnorderedMapFromIndexToDCRTPoly(
- std::unordered_map<uint32_t, lbcrypto::DCRTPoly> indexToDCRTPolyUnorderedMap)
- : m_indexToDCRTPolyUnorderedMap(std::move(indexToDCRTPolyUnorderedMap))
- { }
- std::unordered_map<uint32_t, lbcrypto::DCRTPoly>& UnorderedMapFromIndexToDCRTPoly::GetInternal()
- {
- return m_indexToDCRTPolyUnorderedMap;
- }
- MapFromIndexToEvalKey::MapFromIndexToEvalKey(
- const std::shared_ptr<std::map<uint32_t, std::shared_ptr<EvalKeyImpl>>>
- sharedPtrToindexToEvalKeyDCRTPolyMap)
- : m_sharedPtrToindexToEvalKeyDCRTPolyMap(sharedPtrToindexToEvalKeyDCRTPolyMap)
- { }
- const std::map<uint32_t, std::shared_ptr<EvalKeyImpl>>&
- MapFromIndexToEvalKey::GetInternalMap() const
- {
- return *m_sharedPtrToindexToEvalKeyDCRTPolyMap;
- }
- std::shared_ptr<std::map<uint32_t, std::shared_ptr<EvalKeyImpl>>>
- MapFromIndexToEvalKey::GetInternal() const
- {
- return m_sharedPtrToindexToEvalKeyDCRTPolyMap;
- }
- MapFromStringToVectorOfEvalKeys::MapFromStringToVectorOfEvalKeys(
- std::map<std::string, std::vector<std::shared_ptr<EvalKeyImpl>>> stringToVectorOfEvalKeysMap)
- : m_stringToVectorOfEvalKeysMap(std::move(stringToVectorOfEvalKeysMap))
- { }
- MapFromStringToMapFromIndexToEvalKey::MapFromStringToMapFromIndexToEvalKey(
- std::map<std::string, std::shared_ptr<std::map<uint32_t, std::shared_ptr<EvalKeyImpl>>>>
- stringToMapFromIndexToEvalKeyMap)
- : m_stringToMapFromIndexToEvalKeyMap(std::move(stringToMapFromIndexToEvalKeyMap))
- { }
- } // openfhe
|