Tokens are elements that can reside in places. Tokens can have a color which makes them distinguishable from other tokens. Tokens that have the same color are not distinguishable. Users can create their own token-colors by either using the CREATE_CUSTOM_TOKEN-macro (compile-time) or by calling Token's public constructor which takes a token-name.  
 More...
#include <colors.hpp>
|  | 
| constexpr const auto & | toString () const | 
|  | 
| template<class T> | 
| constexpr bool | operator== (const T &t) const | 
|  | 
| constexpr bool | operator< (const Token &rhs) const | 
|  | 
| constexpr bool | operator> (const Token &rhs) const | 
|  | 
| constexpr size_t | toIndex () const | 
|  | 
| constexpr | Token (const char *_id) | 
|  | 
|  | 
| static std::vector< const char * > | getColors () | 
|  | Get a list of all the colors. 
 | 
|  | 
| static constexpr bool | equals (const char *a, const char *b) | 
|  | 
| template<class X, class V> | 
| static constexpr auto | find (X &x, V key) | 
|  | 
| template<class X> | 
| static constexpr auto | findSlot (X &x) | 
|  | 
Tokens are elements that can reside in places. Tokens can have a color which makes them distinguishable from other tokens. Tokens that have the same color are not distinguishable. Users can create their own token-colors by either using the CREATE_CUSTOM_TOKEN-macro (compile-time) or by calling Token's public constructor which takes a token-name. 
◆ getColors()
  
  | 
        
          | static std::vector< const char * > symmetri::Token::getColors | ( |  | ) |  |  | inlinestatic | 
 
Get a list of all the colors. 
- Returns
- std::vector<const char *> 
 
 
◆ kMaxTokenColors
  
  | 
        
          | const size_t symmetri::Token::kMaxTokenColors |  | staticprotected | 
 
Initial value:
Maximum amount of different colors. 
 
 
The documentation for this class was generated from the following file: