1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef ARY_DOC_D_NODE_HXX
21 #define ARY_DOC_D_NODE_HXX
24 #include <cosv/tpl/processor.hxx>
26 #include <cosv/tpl/vvector.hxx>
27 #include <ary/doc/d_types4doc.hxx>
38 /** The abstract base class for any type of documentation content.
40 A ->Documentation has as content a hierarchy of Nodes, each can be a
41 different kind of content, like descriptions of single items or structs
44 class Node
: public csv::ConstProcessorClient
52 DYN Node
& pass_nextNode
);
54 nodetype::id
Type() const;
55 const Node
* Next() const;
56 bool IsSingle() const;
57 uintt
ListSize() const;
65 Node
& operator=(const Node
&);
69 Dyn
<Node
> pNext
; /// Next ->Node in same list.
72 typedef csv::VirtualVector
<Node
> NodeList
;
91 Node::IsSingle() const
93 return pNext
.operator bool();
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */