Syndication

node.cpp
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "node.h"
9#include "nodevisitor.h"
10
11namespace Syndication
12{
13namespace RDF
14{
15unsigned int Node::idCounter = 1;
16
17void Node::accept(NodeVisitor *visitor, NodePtr ptr)
18{
19 visitor->visitNode(ptr);
20}
21
23{
24}
25
26} // namespace RDF
27} // namespace Syndication
Visitor interface, following the Visitor design pattern.
Definition nodevisitor.h:42
virtual bool visitNode(NodePtr node)
reimplement this method to handle nodes that weren't handled by the more specific method.
virtual void accept(NodeVisitor *visitor, NodePtr ptr)
Used by visitors for double dispatch.
Definition node.cpp:17
static unsigned int idCounter
used to generate unique IDs for node objects
Definition node.h:113
virtual ~Node()
destructor
Definition node.cpp:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 12:02:35 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.