Collection of Patterns and HashedPatterns for use in ICE. More...
#include <IcePatternSet.hpp>
Collection of Patterns and HashedPatterns for use in ICE.
Definition at line 19 of file IcePatternSet.hpp.
IcePatternSet::IcePatternSet | ( | ) |
Creates an empty set of patterns.
Definition at line 12 of file IcePatternSet.cpp.
IcePatternSet::~IcePatternSet | ( | ) |
Destructor.
Definition at line 16 of file IcePatternSet.cpp.
const HashedPatternSet & IcePatternSet::HashedCaptured | ( | HexColor | color | ) | const [inline] |
Definition at line 76 of file IcePatternSet.hpp.
References m_hashed_captured.
Referenced by ICEngine::FindCaptured().
const HashedPatternSet & IcePatternSet::HashedDead | ( | ) | const [inline] |
Definition at line 70 of file IcePatternSet.hpp.
References m_hashed_dead.
Referenced by ICEngine::FindDead().
const HashedPatternSet & IcePatternSet::HashedDominated | ( | HexColor | color | ) | const [inline] |
Definition at line 106 of file IcePatternSet.hpp.
References m_hashed_dominated.
Referenced by ICEngine::FindDominated(), and ICEngine::FindDominatedOnCell().
const HashedPatternSet & IcePatternSet::HashedMutualFillin | ( | HexColor | color | ) | const [inline] |
Definition at line 88 of file IcePatternSet.hpp.
References m_hashed_mutual_fillin.
Referenced by ICEngine::FindMutualFillin().
const HashedPatternSet & IcePatternSet::HashedPermInf | ( | HexColor | color | ) | const [inline] |
Definition at line 82 of file IcePatternSet.hpp.
References m_hashed_permanently_inferior.
Referenced by ICEngine::FindPermanentlyInferior().
const HashedPatternSet & IcePatternSet::HashedReversible | ( | HexColor | color | ) | const [inline] |
Definition at line 100 of file IcePatternSet.hpp.
References m_hashed_reversible.
Referenced by ICEngine::FindReversible().
const HashedPatternSet & IcePatternSet::HashedVulnerable | ( | HexColor | color | ) | const [inline] |
Definition at line 94 of file IcePatternSet.hpp.
References m_hashed_vulnerable.
Referenced by ICEngine::FindVulnerable().
void IcePatternSet::LoadPatterns | ( | const boost::filesystem::path & | file | ) |
Loads the patterns from the given file.
Definition at line 20 of file IcePatternSet.cpp.
References BLACK, Pattern::CAPTURED, Pattern::DEAD, Pattern::DOMINATED, Pattern::flipColors(), Pattern::getType(), HashedPatternSet::hash(), HexAssert, Pattern::LoadPatternsFromFile(), LogFine(), LogSevere(), m_captured, m_dead, m_dominated, m_hashed_captured, m_hashed_dead, m_hashed_dominated, m_hashed_mutual_fillin, m_hashed_permanently_inferior, m_hashed_reversible, m_hashed_vulnerable, m_mutual_fillin, m_permanently_inferior, m_reversible, m_vulnerable, Pattern::MUTUAL_FILLIN, Pattern::PERMANENTLY_INFERIOR, Pattern::REVERSIBLE, Pattern::VULNERABLE, and WHITE.
Referenced by ICEngine::LoadPatterns().
std::vector<Pattern> IcePatternSet::m_captured[BLACK_AND_WHITE] [private] |
Definition at line 49 of file IcePatternSet.hpp.
Referenced by LoadPatterns().
std::vector<Pattern> IcePatternSet::m_dead [private] |
Definition at line 48 of file IcePatternSet.hpp.
Referenced by LoadPatterns().
std::vector<Pattern> IcePatternSet::m_dominated[BLACK_AND_WHITE] [private] |
Definition at line 54 of file IcePatternSet.hpp.
Referenced by LoadPatterns().
Definition at line 61 of file IcePatternSet.hpp.
Referenced by HashedCaptured(), and LoadPatterns().
HashedPatternSet IcePatternSet::m_hashed_dead [private] |
Definition at line 60 of file IcePatternSet.hpp.
Referenced by HashedDead(), and LoadPatterns().
Definition at line 66 of file IcePatternSet.hpp.
Referenced by HashedDominated(), and LoadPatterns().
Definition at line 63 of file IcePatternSet.hpp.
Referenced by HashedMutualFillin(), and LoadPatterns().
Definition at line 62 of file IcePatternSet.hpp.
Referenced by HashedPermInf(), and LoadPatterns().
Definition at line 65 of file IcePatternSet.hpp.
Referenced by HashedReversible(), and LoadPatterns().
Definition at line 64 of file IcePatternSet.hpp.
Referenced by HashedVulnerable(), and LoadPatterns().
std::vector<Pattern> IcePatternSet::m_mutual_fillin[BLACK_AND_WHITE] [private] |
Definition at line 51 of file IcePatternSet.hpp.
Referenced by LoadPatterns().
std::vector<Pattern> IcePatternSet::m_permanently_inferior[BLACK_AND_WHITE] [private] |
Definition at line 50 of file IcePatternSet.hpp.
Referenced by LoadPatterns().
std::vector<Pattern> IcePatternSet::m_reversible[BLACK_AND_WHITE] [private] |
Definition at line 53 of file IcePatternSet.hpp.
Referenced by LoadPatterns().
std::vector<Pattern> IcePatternSet::m_vulnerable[BLACK_AND_WHITE] [private] |
Definition at line 52 of file IcePatternSet.hpp.
Referenced by LoadPatterns().