This source file includes following definitions.
- toB
- trace
- traceAfterDispatch
- traceAfterDispatch
- traceAfterDispatch
- traceAfterDispatch
#include "trace_after_dispatch.h"
namespace WebCore {
static B* toB(A* a) { return static_cast<B*>(a); }
void A::trace(Visitor* visitor)
{
switch (m_type) {
case TB:
toB(this)->traceAfterDispatch(visitor);
break;
case TC:
static_cast<C*>(this)->traceAfterDispatch(visitor);
break;
case TD:
break;
}
}
void A::traceAfterDispatch(Visitor* visitor)
{
}
void B::traceAfterDispatch(Visitor* visitor)
{
visitor->trace(m_a);
}
void C::traceAfterDispatch(Visitor* visitor)
{
A::trace(visitor);
}
void D::traceAfterDispatch(Visitor* visitor)
{
visitor->trace(m_a);
Abstract::trace(visitor);
}
}