]> git.mxchange.org Git - simgear.git/blob - simgear/structure/StringTable.hxx
Revert the check fro std::isnan() and isnan()
[simgear.git] / simgear / structure / StringTable.hxx
1 #ifndef SIMGEAR_STRINGTABLE_HXX
2 #define SIMGEAR_STRINGTABLE_HXX 1
3
4 #include <string>
5
6 #include <simgear/threads/SGThread.hxx>
7 #include <boost/multi_index_container.hpp>
8 #include <boost/multi_index/hashed_index.hpp>
9 #include <boost/multi_index/identity.hpp>
10
11 namespace simgear
12 {
13 typedef boost::multi_index_container<
14     std::string,
15     boost::multi_index::indexed_by<
16         boost::multi_index::hashed_unique<
17             boost::multi_index::identity<std::string> > > >
18 StringContainer;
19
20 class StringTable
21 {
22     const std::string* insert(const std::string& str);
23 private:
24     SGMutex _mutex;
25     StringContainer _strings;
26 };
27 }
28 #endif