cmake/Source/cmExportSetMap.h

33 lines
820 B
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2013-03-16 19:13:01 +02:00
#ifndef cmExportSetMap_h
#define cmExportSetMap_h
2017-07-20 19:35:53 +02:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include <map>
#include <string>
2016-07-09 11:21:54 +02:00
2013-03-16 19:13:01 +02:00
class cmExportSet;
/// A name -> cmExportSet map with overloaded operator[].
class cmExportSetMap : public std::map<std::string, cmExportSet*>
{
2014-08-03 19:52:23 +02:00
typedef std::map<std::string, cmExportSet*> derived;
2016-07-09 11:21:54 +02:00
2013-03-16 19:13:01 +02:00
public:
/** \brief Overloaded operator[].
*
* The operator is overloaded because cmExportSet has no default constructor:
* we do not want unnamed export sets.
*/
2016-07-09 11:21:54 +02:00
cmExportSet* operator[](const std::string& name);
2013-03-16 19:13:01 +02:00
2014-08-03 19:52:23 +02:00
void clear();
2013-03-16 19:13:01 +02:00
/// Overloaded destructor deletes all member export sets.
~cmExportSetMap();
};
#endif