#include <GoChain.h>
Definition at line 37 of file GoChain.h.
Public Member Functions | |
GoChainCondition (GoChainType type) | |
A condition with no parameters. | |
GoChainCondition (GoChainType type, SgPoint lib1, SgPoint lib2) | |
A condition depending on two liberties. | |
bool | Overlaps (const GoChainCondition &condition) const |
Is there a potential conflict between this and condition? | |
bool | Overlaps (const SgVectorOf< GoChainCondition > &conditions) const |
Is there a potential conflict between this and conditions? | |
bool | UsesLibs () const |
Are liberties used? | |
GoChainType | Type () const |
SgPoint | Lib1 () const |
first liberty used in condition | |
SgPoint | Lib2 () const |
second liberty used in condition | |
Private Attributes | |
GoChainType | m_type |
Type. | |
SgPoint | m_lib1 |
condition depends on these two liberties | |
SgPoint | m_lib2 |
GoChainCondition::GoChainCondition | ( | GoChainType | type | ) |
A condition with no parameters.
Definition at line 42 of file GoChain.h.
References GO_CHAIN_BY_SEARCH, and SG_ASSERT.
GoChainCondition::GoChainCondition | ( | GoChainType | type, | |
SgPoint | lib1, | |||
SgPoint | lib2 | |||
) |
A condition depending on two liberties.
Definition at line 51 of file GoChain.h.
References GO_CHAIN_TWO_LIBERTIES_IN_REGION, and SG_ASSERT.
SgPoint GoChainCondition::Lib1 | ( | ) | const |
first liberty used in condition
Definition at line 72 of file GoChain.h.
References GO_CHAIN_BY_SEARCH, m_lib1, m_type, and SG_ASSERT.
Referenced by operator<<().
SgPoint GoChainCondition::Lib2 | ( | ) | const |
second liberty used in condition
Definition at line 79 of file GoChain.h.
References GO_CHAIN_BY_SEARCH, m_lib2, m_type, and SG_ASSERT.
Referenced by operator<<().
bool GoChainCondition::Overlaps | ( | const SgVectorOf< GoChainCondition > & | conditions | ) | const |
Is there a potential conflict between this and conditions?
Definition at line 131 of file GoChain.cpp.
References Overlaps().
bool GoChainCondition::Overlaps | ( | const GoChainCondition & | condition | ) | const |
Is there a potential conflict between this and condition?
Definition at line 120 of file GoChain.cpp.
References m_lib1, m_lib2, and UsesLibs().
Referenced by GoChain::GoChain(), and Overlaps().
GoChainType GoChainCondition::Type | ( | ) | const |
bool GoChainCondition::UsesLibs | ( | ) | const |
Are liberties used?
Definition at line 67 of file GoChain.h.
References GO_CHAIN_BY_SEARCH, and m_type.
Referenced by operator<<(), and Overlaps().
SgPoint GoChainCondition::m_lib1 [private] |
condition depends on these two liberties
Definition at line 90 of file GoChain.h.
Referenced by Lib1(), and Overlaps().
SgPoint GoChainCondition::m_lib2 [private] |
GoChainType GoChainCondition::m_type [private] |