• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/project

  • KDevelop
  • ProjectVisitor
Public Member Functions | List of all members
KDevelop::ProjectVisitor Class Reference

#include <projectmodel.h>

Public Member Functions

 ProjectVisitor ()
 
virtual ~ProjectVisitor ()
 
virtual void visit (IProject *)
 
virtual void visit (ProjectBuildFolderItem *)
 
virtual void visit (ProjectExecutableTargetItem *)
 
virtual void visit (ProjectFileItem *)
 
virtual void visit (ProjectFolderItem *)
 
virtual void visit (ProjectLibraryTargetItem *)
 
virtual void visit (ProjectModel *)
 

Detailed Description

Base class to implement the visitor pattern for the project item tree.

Feel free to subclass it and add overloads for the methods corresponding to the items you are interested in.

Start visiting using one of the visit methods.

Definition at line 56 of file projectmodel.h.

Constructor & Destructor Documentation

◆ ProjectVisitor()

KDevelop::ProjectVisitor::ProjectVisitor ( )

Definition at line 1029 of file projectmodel.cpp.

◆ ~ProjectVisitor()

KDevelop::ProjectVisitor::~ProjectVisitor ( )
virtual

Definition at line 1186 of file projectmodel.cpp.

Member Function Documentation

◆ visit() [1/7]

void KDevelop::ProjectVisitor::visit ( IProject *  prj)
virtual

Visit the tree starting from the project root item.

Definition at line 1128 of file projectmodel.cpp.

◆ visit() [2/7]

void KDevelop::ProjectVisitor::visit ( ProjectBuildFolderItem *  folder)
virtual

Visit the build folder and anything it contains.

Definition at line 1133 of file projectmodel.cpp.

◆ visit() [3/7]

void KDevelop::ProjectVisitor::visit ( ProjectExecutableTargetItem *  exec)
virtual

Visit the target and all children it may contain.

Definition at line 1138 of file projectmodel.cpp.

◆ visit() [4/7]

void KDevelop::ProjectVisitor::visit ( ProjectFileItem *  )
virtual

Visit the file.

Definition at line 1174 of file projectmodel.cpp.

◆ visit() [5/7]

void KDevelop::ProjectVisitor::visit ( ProjectFolderItem *  folder)
virtual

Visit the folder and anything it contains.

Definition at line 1146 of file projectmodel.cpp.

◆ visit() [6/7]

void KDevelop::ProjectVisitor::visit ( ProjectLibraryTargetItem *  lib)
virtual

Visit the target and all children it may contain.

Definition at line 1178 of file projectmodel.cpp.

◆ visit() [7/7]

void KDevelop::ProjectVisitor::visit ( ProjectModel *  model)
virtual

Visit the whole project model tree.

Definition at line 1120 of file projectmodel.cpp.


The documentation for this class was generated from the following files:
  • projectmodel.h
  • projectmodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Apr 13 2021 23:30:29 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/project

Skip menu "kdevplatform/project"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal