|
Inferno
0.2
|
#include <search_replace.hpp>
Definition at line 76 of file search_replace.hpp.
| TreePtr< Node > CompareReplace::BuildReplace | ( | TreePtr< Node > | pattern | ) | const |
Definition at line 362 of file search_replace.cpp.
References NormalAgent::BuildReplace(), NormalAgent::Configure(), and coupling_keys.
Referenced by BuildIdentifierBase::GetNewName().
| bool CompareReplace::Compare | ( | const TreePtrInterface & | x, |
| TreePtr< Node > | pattern, | ||
| bool | can_key = false |
||
| ) | const |
Definition at line 185 of file search_replace.cpp.
References ASSERT, Conjecture::Increment(), INDENT, and TRACE.
Referenced by IsMatch(), StarBase::MatchRange(), and Test().
Reimplemented in SearchReplace.
Definition at line 60 of file search_replace.cpp.
References ASSERT, compare_pattern, coupling_keys, FOREACH, replace_pattern, and TRACE.
Referenced by CompareReplace().
| bool CompareReplace::DecidedCompare | ( | const TreePtrInterface & | x, |
| TreePtr< Node > | pattern, | ||
| bool | can_key, | ||
| Conjecture & | conj | ||
| ) | const |
Definition at line 126 of file search_replace.cpp.
References NormalAgent::Configure(), coupling_keys, and NormalAgent::DecidedCompare().
Referenced by NestedBase::DecidedCompare(), and PointerIs< PRE_RESTRICTION >::DecidedCompare().
| TreePtr<Node> CompareReplace::GetContext | ( | ) | const [inline] |
Definition at line 94 of file search_replace.hpp.
| void CompareReplace::GetGraphInfo | ( | vector< string > * | labels, |
| vector< TreePtr< Node > > * | links | ||
| ) | const [virtual] |
Reimplemented from Transformation.
Reimplemented in SlaveIntermediate< SearchReplace >, SlaveIntermediate< CompareReplace >, and SearchReplace.
Definition at line 114 of file search_replace.cpp.
References compare_pattern, and replace_pattern.
| const CompareReplace* CompareReplace::GetOverallMaster | ( | ) | const [inline] |
Definition at line 118 of file search_replace.hpp.
References master_ptr.
Referenced by NormalAgent::DecidedCompare().
| bool CompareReplace::IsMatch | ( | TreePtr< Node > | context, |
| TreePtr< Node > | root | ||
| ) | [virtual] |
Implements Filter.
Definition at line 228 of file search_replace.cpp.
References ASSERT, Compare(), compare_pattern, and pcontext.
Implements Transformation.
Definition at line 460 of file search_replace.cpp.
References ASSERT, compare_pattern, INDENT, pcontext, and TRACE.
| static void CompareReplace::SetMaxReps | ( | int | n, |
| bool | e | ||
| ) | [inline, static] |
Definition at line 117 of file search_replace.hpp.
Referenced by main().
| void CompareReplace::Test | ( | ) | [static] |
Definition at line 630 of file search_replace.cpp.
References ASSERT, Compare(), CompareReplace(), and TRACE.
Referenced by SelfTest().
friend class Conjecture [friend] |
Definition at line 136 of file search_replace.hpp.
friend class NormalAgent [friend] |
Definition at line 169 of file search_replace.hpp.
Definition at line 100 of file search_replace.hpp.
Referenced by Configure(), StuffBase::GetContainerInterface(), GetGraphInfo(), SearchReplace::GetGraphInfo(), IsMatch(), and operator()().
CouplingKeys CompareReplace::coupling_keys [mutable] |
Definition at line 104 of file search_replace.hpp.
Referenced by BuildReplace(), Configure(), DecidedCompare(), and IsLabelReached::DecidedCompare().
set< TreePtr<Node> > CompareReplace::dirty_grass [mutable] |
Definition at line 105 of file search_replace.hpp.
Referenced by NormalAgent::DecidedCompare().
Set< TreePtr<Node> > CompareReplace::duplicated_pedigree [mutable] |
Definition at line 111 of file search_replace.hpp.
Definition at line 99 of file search_replace.hpp.
Set< TreePtr<Node> > CompareReplace::keyed_pedigree [mutable] |
Definition at line 112 of file search_replace.hpp.
Definition at line 102 of file search_replace.hpp.
Referenced by GetOverallMaster().
Definition at line 110 of file search_replace.hpp.
Definition at line 103 of file search_replace.hpp.
Referenced by GetContext(), IsMatch(), and operator()().
Definition at line 101 of file search_replace.hpp.
Referenced by Configure(), and GetGraphInfo().