![]() |
ChessPlusPlus
WIP
cplusplus.com Community Project
|
Classes | |
| class | JsonReader |
| class | KeyIter |
| struct | MakeSigned |
| class | Position |
| class | Range |
Typedefs | |
| template<typename T > | |
| using | IsSigned = typename std::is_same< T, typename MakeSigned< T >::type > |
Functions | |
| Direction | Rotate (Direction d, signed r) noexcept |
| std::ostream & | operator<< (std::ostream &os, Direction const &d) noexcept |
| std::istream & | operator>> (std::istream &is, Direction &d) |
| template<typename T > | |
| auto | operator<< (std::ostream &os, Position< T > const &p) noexcept-> typename std::enable_if< std::is_integral< T >::value &&std::is_same< T, typename MakeSigned< T >::type >::value, std::ostream & >::type |
| template<typename ItT > | |
| auto | as_range (std::pair< ItT, ItT > const &range) noexcept-> Range< ItT > |
| template<typename... Args> | |
| std::string | path_concat (std::string const &delim, Args const &...args) |
| template<typename First , typename... Rest> | |
| std::string | path_concat (std::string const &delim, First const &first, Rest const &...rest) |
| template<> | |
| std::string | path_concat (std::string const &delim) |
| using chesspp::util::IsSigned = typedef typename std::is_same<T, typename MakeSigned<T>::type> |
Template alias to complement MakeSigned. Used the same way as std::is_signed.
| T | must be scalar. |
|
strong |
|
noexcept |
Takes a std::pair of iterators (e.g. the return value of some standard algorithms) and constructs a Range object from it as a convenience function.
| ItT | The iterator type, best if left to be deduced by the compiler. |
|
inlinenoexcept |
Serializes a direction to a stream in string format.
| os | The stream to serialize to. |
| d | the Direction to serialize. |
|
noexcept |
Serializes a position to a stream in the format "(x, y)". This is the signed version.
| os | the stream to write to. |
| p | the position to serialize into the stream. |
Serializes a position to a stream in the format "(x, y)". This is the unsigned version.
| os | the stream to write to. |
| p | the position to serialize into the stream. |
Serializes a position to a stream in the format "(x, y)". This is the float version.
| os | the stream to write to. |
| p | the position to serialize into the stream. |
|
inline |
| std::string chesspp::util::path_concat | ( | std::string const & | delim, |
| Args const &... | args | ||
| ) |
Allows unpacking a template parameter pack into a string path with a custom delimiter.
| ...Args | The type parameter pack. |
| delim | The delimiter, between each arg and at the end. |
| ...args | The template parameter pack. |
| std::string chesspp::util::path_concat | ( | std::string const & | delim, |
| First const & | first, | ||
| Rest const &... | rest | ||
| ) |
|
inline |