X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.h;h=b78bf6fdf4c4108f6edc97b2cfeadb37737f7092;hp=0be8c7e39d4734b3cbf8ba918a4c0958ac08d4b9;hb=b011818917fc6fddb3b4e4210f4a408eb4779d59;hpb=bc4de9edaec0a618279092abbf465f47720736b8 diff --git a/src/ucioption.h b/src/ucioption.h index 0be8c7e3..b78bf6fd 100644 --- a/src/ucioption.h +++ b/src/ucioption.h @@ -25,7 +25,15 @@ #include #include -struct OptionsMap; +class UCIOption; + +/// Custom comparator because UCI options should be case insensitive +struct CaseInsensitiveLess { + bool operator() (const std::string&, const std::string&) const; +}; + +/// Our options container is actually a std::map +typedef std::map OptionsMap; /// UCIOption class implements an option as defined by UCI protocol class UCIOption { @@ -59,19 +67,8 @@ private: Fn* on_change; }; - -/// Custom comparator because UCI options should be case insensitive -struct CaseInsensitiveLess { - bool operator() (const std::string&, const std::string&) const; -}; - - -/// Our options container is actually a map with a customized c'tor -struct OptionsMap : public std::map { - OptionsMap(); -}; - -extern std::ostream& operator<<(std::ostream&, const OptionsMap&); extern OptionsMap Options; +namespace UCIOptions { void init(OptionsMap&); } + #endif // !defined(UCIOPTION_H_INCLUDED)