This structure can be used for matching terrain strings. More...
#include <translation.hpp>
Public Member Functions | |
t_match () | |
t_match (const std::string &str, const t_layer filler=NO_LAYER) | |
t_match (const t_terrain &tcode) | |
Public Attributes | |
t_list | terrain |
t_list | mask |
t_list | masked_terrain |
bool | has_wildcard |
bool | is_empty |
This structure can be used for matching terrain strings.
It optimized for strings that need to be matched often, and caches the wildcard info required for matching.
Definition at line 83 of file translation.hpp.
t_translation::t_match::t_match | ( | ) |
Definition at line 160 of file translation.cpp.
t_translation::t_match::t_match | ( | const std::string & | str, |
const t_layer | filler = NO_LAYER |
||
) |
Definition at line 168 of file translation.cpp.
References t_translation::get_mask_(), i, masked_terrain, and terrain.
t_translation::t_match::t_match | ( | const t_terrain & | tcode | ) |
Definition at line 185 of file translation.cpp.
References t_translation::get_mask_(), i, masked_terrain, and terrain.
bool t_translation::t_match::has_wildcard |
Definition at line 91 of file translation.hpp.
Referenced by t_translation::terrain_matches().
bool t_translation::t_match::is_empty |
Definition at line 92 of file translation.hpp.
Referenced by terrain_filter::match_internal(), t_translation::terrain_matches(), and terrain_builder::terrain_matches().
t_list t_translation::t_match::mask |
Definition at line 89 of file translation.hpp.
Referenced by t_translation::terrain_matches().
t_list t_translation::t_match::masked_terrain |
Definition at line 90 of file translation.hpp.
Referenced by t_match(), and t_translation::terrain_matches().
t_list t_translation::t_match::terrain |
Definition at line 88 of file translation.hpp.
Referenced by terrain_builder::add_constraints(), t_match(), and t_translation::terrain_matches().