2006-12-14 16:06:36 +01:00
|
|
|
#ifndef JEZUK_DOM_TRAVERSAL_IMPL_H
|
|
|
|
#define JEZUK_DOM_TRAVERSAL_IMPL_H
|
|
|
|
|
2007-09-05 13:47:13 +02:00
|
|
|
namespace Arabica
|
|
|
|
{
|
2006-12-14 16:06:36 +01:00
|
|
|
namespace DOM
|
|
|
|
{
|
|
|
|
|
|
|
|
//todo: move this class somewhere (or rename to TraversalImpl??)
|
|
|
|
class TraversalImpl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TraversalImpl() : refCount_(0)
|
|
|
|
{}
|
|
|
|
|
|
|
|
virtual ~TraversalImpl() {}
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////
|
|
|
|
// Ref counting
|
|
|
|
virtual void addRef()
|
|
|
|
{
|
|
|
|
++refCount_;
|
|
|
|
} // addRef
|
|
|
|
|
|
|
|
virtual void releaseRef()
|
|
|
|
{
|
|
|
|
if(--refCount_ == 0)
|
|
|
|
delete this;
|
|
|
|
} // releaseRef
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
int refCount_;
|
2007-09-05 13:47:13 +02:00
|
|
|
}; //class TraversalImpl
|
2006-12-14 16:06:36 +01:00
|
|
|
|
|
|
|
} // namespace DOM
|
2007-09-05 13:47:13 +02:00
|
|
|
} // namespace Arabica
|
2006-12-14 16:06:36 +01:00
|
|
|
|
|
|
|
#endif //JEZUK_DOM_TRAVERSAL_IMPL_H
|