| 25 | { |
| 26 | |
| 27 | class ColorSpace::Impl |
| 28 | { |
| 29 | public: |
| 30 | std::string m_name; |
| 31 | std::string m_family; |
| 32 | std::string m_equalityGroup; |
| 33 | std::string m_description; |
| 34 | std::string m_encoding; |
| 35 | std::string m_interopID; |
| 36 | StringUtils::StringVec m_aliases; |
| 37 | std::map<std::string, std::string> m_interchangeAttribs; |
| 38 | |
| 39 | BitDepth m_bitDepth{ BIT_DEPTH_UNKNOWN }; |
| 40 | bool m_isData{ false }; |
| 41 | |
| 42 | ReferenceSpaceType m_referenceSpaceType{ REFERENCE_SPACE_SCENE }; |
| 43 | |
| 44 | Allocation m_allocation{ ALLOCATION_UNIFORM }; |
| 45 | std::vector<float> m_allocationVars; |
| 46 | |
| 47 | TransformRcPtr m_toRefTransform; |
| 48 | TransformRcPtr m_fromRefTransform; |
| 49 | |
| 50 | bool m_toRefSpecified{ false }; |
| 51 | bool m_fromRefSpecified{ false }; |
| 52 | |
| 53 | TokensManager m_categories; |
| 54 | |
| 55 | Impl() = delete; |
| 56 | explicit Impl(ReferenceSpaceType referenceSpace) |
| 57 | : m_referenceSpaceType(referenceSpace) |
| 58 | { |
| 59 | } |
| 60 | |
| 61 | Impl(const Impl &) = delete; |
| 62 | |
| 63 | ~Impl() = default; |
| 64 | |
| 65 | Impl& operator= (const Impl & rhs) |
| 66 | { |
| 67 | if (this != &rhs) |
| 68 | { |
| 69 | m_name = rhs.m_name; |
| 70 | m_aliases = rhs.m_aliases; |
| 71 | m_family = rhs.m_family; |
| 72 | m_equalityGroup = rhs.m_equalityGroup; |
| 73 | m_description = rhs.m_description; |
| 74 | m_encoding = rhs.m_encoding; |
| 75 | m_interopID = rhs.m_interopID; |
| 76 | m_interchangeAttribs= rhs.m_interchangeAttribs; |
| 77 | m_bitDepth = rhs.m_bitDepth; |
| 78 | m_isData = rhs.m_isData; |
| 79 | m_referenceSpaceType = rhs.m_referenceSpaceType; |
| 80 | m_allocation = rhs.m_allocation; |
| 81 | m_allocationVars = rhs.m_allocationVars; |
| 82 | |
| 83 | m_toRefTransform = rhs.m_toRefTransform? |
| 84 | rhs.m_toRefTransform->createEditableCopy() |
nothing calls this directly
no test coverage detected