#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/PresetCacheFormat.hpp>
Public Member Functions | |
| CacheDictionary () | |
| void | collect (const DynamicPrintConfig &config) |
| uint16_t | key_index (const t_config_option_key &key) const |
| uint16_t | enum_index (const std::string &name) const |
| const ConfigOptionDef * | def_at (uint16_t idx) const |
| ConfigOptionType | type_at (uint16_t idx) const |
| const std::string & | enum_name_at (uint16_t idx) const |
| bool | valid_key_index (uint16_t idx) const |
| bool | valid_enum_index (uint16_t idx) const |
| void | save (cereal::BinaryOutputArchive &ar) const |
| void | load (cereal::BinaryInputArchive &ar) |
Static Public Attributes | |
| static constexpr uint16_t | ENUM_UNNAMED = 0 |
Private Attributes | |
| std::vector< std::string > | m_keys |
| std::vector< uint16_t > | m_types |
| std::vector< std::string > | m_enum_values |
| std::unordered_map< std::string, uint16_t > | m_key_index |
| std::unordered_map< std::string, uint16_t > | m_enum_index |
| std::vector< const ConfigOptionDef * > | m_defs |
Static Private Attributes | |
| static constexpr size_t | MAX_ENTRIES = 0xFFFF |
| Slic3r::CacheDictionary::CacheDictionary | ( | ) |
References m_enum_values.
| void Slic3r::CacheDictionary::collect | ( | const DynamicPrintConfig & | config | ) |
References Slic3r::DynamicConfig::cbegin(), Slic3r::DynamicConfig::cend(), Slic3r::coEnum, Slic3r::coEnums, Slic3r::enum_ints(), Slic3r::enum_name_of(), m_enum_index, m_enum_values, m_key_index, m_keys, m_types, Slic3r::print_config_def, and Slic3r::ConfigOptionDef::type.
Referenced by Slic3r::VendorCacheFile::save().
|
inline |
References m_defs.
Referenced by Slic3r::read_config().
| uint16_t Slic3r::CacheDictionary::enum_index | ( | const std::string & | name | ) | const |
References ENUM_UNNAMED, and m_enum_index.
Referenced by Slic3r::save_enum_option().
|
inline |
References m_enum_values.
Referenced by Slic3r::load_enum_option().
| uint16_t Slic3r::CacheDictionary::key_index | ( | const t_config_option_key & | key | ) | const |
References m_key_index.
Referenced by Slic3r::save_config().
| void Slic3r::CacheDictionary::load | ( | cereal::BinaryInputArchive & | ar | ) |
References m_defs, m_enum_values, m_keys, m_types, MAX_ENTRIES, Slic3r::print_config_def, and Slic3r::ConfigOptionDef::type.
Referenced by Slic3r::VendorCacheFile::carries_preset(), and Slic3r::read_cache_up_to_presets().
| void Slic3r::CacheDictionary::save | ( | cereal::BinaryOutputArchive & | ar | ) | const |
References m_enum_values, m_keys, m_types, and MAX_ENTRIES.
Referenced by Slic3r::VendorCacheFile::save().
|
inline |
References m_types.
Referenced by Slic3r::read_config().
|
inline |
References m_enum_values.
Referenced by Slic3r::load_enum_option().
|
inline |
|
staticconstexpr |
Referenced by enum_index(), Slic3r::load_enum_option(), and Slic3r::save_enum_option().
|
private |
Referenced by def_at(), load(), and valid_key_index().
|
private |
Referenced by collect(), and enum_index().
|
private |
Referenced by CacheDictionary(), collect(), enum_name_at(), load(), save(), and valid_enum_index().
|
private |
Referenced by collect(), and key_index().
|
private |
|
private |
|
staticconstexprprivate |