cmExportSetMap.h 820 B

1234567891011121314151617181920212223242526272829303132
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmExportSetMap_h
  4. #define cmExportSetMap_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <map>
  7. #include <string>
  8. class cmExportSet;
  9. /// A name -> cmExportSet map with overloaded operator[].
  10. class cmExportSetMap : public std::map<std::string, cmExportSet*>
  11. {
  12. typedef std::map<std::string, cmExportSet*> derived;
  13. public:
  14. /** \brief Overloaded operator[].
  15. *
  16. * The operator is overloaded because cmExportSet has no default constructor:
  17. * we do not want unnamed export sets.
  18. */
  19. cmExportSet* operator[](const std::string& name);
  20. void clear();
  21. /// Overloaded destructor deletes all member export sets.
  22. ~cmExportSetMap();
  23. };
  24. #endif