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

language/duchain

aliasdeclaration.h

00001 /* This file is part of KDevelop
00002     Copyright 2008 David Nolden<david.nolden.kdevelop@art-master.de>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef ALIASDECLARATION_H
00020 #define ALIASDECLARATION_H
00021 
00022 #include "declaration.h"
00023 #include "duchainpointer.h"
00024 #include "declarationdata.h"
00025 
00026 namespace KDevelop
00027 {
00028 class KDEVPLATFORMLANGUAGE_EXPORT AliasDeclarationData : public DeclarationData
00029 {
00030 public:
00031   AliasDeclarationData() {}
00032   AliasDeclarationData( const AliasDeclarationData& rhs )
00033       : DeclarationData( rhs )
00034   {
00035     m_aliasedDeclaration = rhs.m_aliasedDeclaration;
00036   }
00037   IndexedDeclaration m_aliasedDeclaration;
00038 };
00044 class KDEVPLATFORMLANGUAGE_EXPORT AliasDeclaration : public Declaration
00045 {
00046 public:
00048   AliasDeclaration(const AliasDeclaration& rhs);
00056   AliasDeclaration(const SimpleRange& range, DUContext* context);
00057   
00058   AliasDeclaration(AliasDeclarationData& data);
00060   virtual ~AliasDeclaration();
00061 
00067   virtual void setAbstractType(AbstractType::Ptr type);
00068 
00074   void setAliasedDeclaration(const IndexedDeclaration& decl);
00075 
00081   IndexedDeclaration aliasedDeclaration() const;
00082 
00083   virtual QString toString() const;
00084 
00085   enum {
00086     Identity = 6
00087   };
00088   
00089 private:
00090   virtual Declaration* clonePrivate() const;
00091   DUCHAIN_DECLARE_DATA(AliasDeclaration)
00092 };
00093 }
00094 
00095 #endif // FUNCTIONDECLARATION_H
00096 
00097 // 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