Syndication

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

KDE's Doxygen guidelines are available online.