• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

language/duchain

forwarddeclaration.h

00001 /* This file is part of KDevelop
00002     Copyright 2006-2008 Hamish Rodda <rodda@kde.org>
00003     Copyright 2007-2008 David Nolden <david.nolden.kdevelop@art-master.de>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef FORWARDDECLARATION_H
00021 #define FORWARDDECLARATION_H
00022 
00023 #include "declaration.h"
00024 #include "declarationdata.h"
00025 
00026 namespace KDevelop
00027 {
00028 class KDEVPLATFORMLANGUAGE_EXPORT ForwardDeclarationData : public DeclarationData
00029 {
00030 public:
00031   ForwardDeclarationData() {
00032   }
00033   ForwardDeclarationData( const ForwardDeclarationData& rhs ) 
00034       : DeclarationData( rhs )
00035   {
00036   }
00037 };
00041 class KDEVPLATFORMLANGUAGE_EXPORT ForwardDeclaration : public Declaration
00042 {
00043 public:
00053   ForwardDeclaration(const SimpleRange& range, DUContext* context);
00054   ForwardDeclaration(ForwardDeclarationData& data);
00055 
00057   ForwardDeclaration(const ForwardDeclaration& rhs);
00058 
00060   virtual ~ForwardDeclaration();
00061 
00062   virtual bool isForwardDeclaration() const;
00063 
00073   virtual Declaration* resolve(const TopDUContext* topContext) const;
00074 
00075   virtual DUContext * logicalInternalContext(const TopDUContext* topContext) const;
00076 
00077   virtual QString toString() const;
00078 
00079   enum {
00080     Identity = 10
00081   };
00082   
00083   typedef Declaration BaseClass;
00084   
00085 private:
00086   virtual Declaration* clonePrivate() const;
00087   DUCHAIN_DECLARE_DATA(ForwardDeclaration)
00088 };
00089 
00090 }
00091 
00092 #endif // DECLARATION_H
00093 
00094 // kate: space-indent on; indent-width 2; tab-width 4; replace-tabs on; auto-insert-doxygen on

language/duchain

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

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal