File indexing completed on 2024-05-12 05:43:33
0001 /* 0002 Copyright (C) 2013-2014 Volker Krause <vkrause@kde.org> 0003 0004 This program is free software; you can redistribute it and/or modify it 0005 under the terms of the GNU Library General Public License as published by 0006 the Free Software Foundation; either version 2 of the License, or (at your 0007 option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, but WITHOUT 0010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0011 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 0012 License for more details. 0013 0014 You should have received a copy of the GNU General Public License 0015 along with this program. If not, see <https://www.gnu.org/licenses/>. 0016 */ 0017 0018 #ifndef ROWCOUNTVISITOR_H 0019 #define ROWCOUNTVISITOR_H 0020 0021 #include "elfnodevisitor.h" 0022 0023 // TODO rename to "ChildCountVisitor" 0024 class RowCountVisitor : public ElfNodeVisitor<int> 0025 { 0026 protected: 0027 using ElfNodeVisitor<int>::doVisit; 0028 int doVisit(ElfFileSet* fileSet, int arg) const override; 0029 int doVisit(ElfFile* file, int) const override; 0030 int doVisit(ElfSymbolTableSection* symtab, int) const override; 0031 int doVisit(ElfDynamicSection* section, int arg) const override; 0032 int doVisit(ElfGNUSymbolVersionDefinitionsSection* section, int arg) const override; 0033 int doVisit(ElfGNUSymbolVersionDefinition *verDef, int arg) const override; 0034 int doVisit(ElfGNUSymbolVersionRequirementsSection* section, int) const override; 0035 int doVisit(ElfGNUSymbolVersionRequirement *verNeed, int) const override; 0036 int doVisit(ElfGotSection* section, int arg) const override; 0037 int doVisit(ElfNoteSection* section, int arg) const override; 0038 int doVisit(ElfPltSection *section, int) const override; 0039 int doVisit(ElfRelocationSection* section, int arg) const override; 0040 #if HAVE_DWARF 0041 int doVisit(DwarfInfo* info, int arg) const override; 0042 int doVisit(DwarfDie* die, int) const override; 0043 #endif 0044 }; 0045 0046 #endif