forward operations to test/dummy onion layer
...first round of implementation happens here
This commit is contained in:
parent
b0ee330737
commit
6cf97f2478
3 changed files with 50 additions and 9 deletions
|
|
@ -296,6 +296,13 @@ namespace diff{
|
|||
{
|
||||
|
||||
/* ==== re-Implementation of the operation API ==== */
|
||||
|
||||
/** skip next src element and advance abstract source position */
|
||||
virtual void
|
||||
skipSrc ()
|
||||
{
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
/** record in the test taget
|
||||
* that a new child element is
|
||||
|
|
@ -307,6 +314,31 @@ namespace diff{
|
|||
: renderChild(n));
|
||||
}
|
||||
|
||||
/** ensure the next source element matches with given spec */
|
||||
virtual bool
|
||||
matchSrc (GenNode const&)
|
||||
{
|
||||
UNIMPLEMENTED();
|
||||
return false;
|
||||
}
|
||||
|
||||
/** accept existing element, when matching the given spec */
|
||||
virtual bool
|
||||
acceptSrc (GenNode const&)
|
||||
{
|
||||
UNIMPLEMENTED();
|
||||
return false;
|
||||
}
|
||||
|
||||
/** locate designated element and accept it at current position */
|
||||
virtual bool
|
||||
findSrc (GenNode const&)
|
||||
{
|
||||
UNIMPLEMENTED();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
TestWireTap(TestMutationTarget& dummy, PAR const& chain)
|
||||
: PAR(chain)
|
||||
, target_(dummy)
|
||||
|
|
|
|||
|
|
@ -121,34 +121,42 @@ namespace diff{
|
|||
|
||||
/* ==== operation API ==== */
|
||||
|
||||
/** skip next src element and advance abstract source position */
|
||||
virtual void
|
||||
skipSrc ()
|
||||
{
|
||||
UNIMPLEMENTED("skip next src element and advance abstract source position");
|
||||
// do nothing by default
|
||||
}
|
||||
|
||||
/** establish new element at current position */
|
||||
virtual void
|
||||
injectNew (GenNode const& n)
|
||||
injectNew (GenNode const&)
|
||||
{
|
||||
UNIMPLEMENTED("establish new child node at current position");
|
||||
// do nothing by default
|
||||
}
|
||||
|
||||
/** ensure the next source element matches with given spec */
|
||||
virtual bool
|
||||
matchSrc (GenNode const& n)
|
||||
matchSrc (GenNode const&)
|
||||
{
|
||||
UNIMPLEMENTED("ensure the next source element matches with given spec");
|
||||
// do nothing by default
|
||||
return false;
|
||||
}
|
||||
|
||||
/** accept existing element, when matching the given spec */
|
||||
virtual bool
|
||||
acceptSrc (GenNode const& n)
|
||||
acceptSrc (GenNode const&)
|
||||
{
|
||||
UNIMPLEMENTED("accept existing element, when matching the given spec");
|
||||
// do nothing by default
|
||||
return false;
|
||||
}
|
||||
|
||||
/** locate designated element and accept it at current position */
|
||||
virtual bool
|
||||
findSrc (GenNode const& n)
|
||||
findSrc (GenNode const&)
|
||||
{
|
||||
UNIMPLEMENTED("locate designated element and accept it at current position");
|
||||
// do nothing by default
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual TreeMutator&
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ namespace test{
|
|||
cout << "Content after population; "
|
||||
<< join(target) <<endl;
|
||||
|
||||
|
||||
// now attach new mutator for second round...
|
||||
auto mutator2 =
|
||||
TreeMutator::build()
|
||||
|
|
|
|||
Loading…
Reference in a new issue