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

language/duchain

delayedtype.h

00001 /* This file is part of KDevelop
00002     Copyright 2006 Roberto Raggi <roberto@kdevelop.org>
00003     Copyright 2006-2008 Hamish Rodda <rodda@kde.org>
00004     Copyright 2007-2008 David Nolden <david.nolden.kdevelop@art-master.de>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License version 2 as published by the Free Software Foundation.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef DELAYEDTYPE_H
00022 #define DELAYEDTYPE_H
00023 
00024 #include "abstracttype.h"
00025 #include "../identifier.h"
00026 
00027 namespace KDevelop
00028 {
00029 class DelayedTypeData;
00030 
00039 class KDEVPLATFORMLANGUAGE_EXPORT DelayedType : public KDevelop::AbstractType
00040 {
00041 public:
00042   typedef TypePtr<DelayedType> Ptr;
00043 
00045   enum Kind {
00046     Delayed ,
00047     Unresolved 
00048   };
00049 
00051   DelayedType();
00053   DelayedType(const DelayedType& rhs);
00055   DelayedType(DelayedTypeData& data);
00057   virtual ~DelayedType();
00058 
00064   KDevelop::IndexedTypeIdentifier identifier() const;
00065 
00071   void setIdentifier(const KDevelop::IndexedTypeIdentifier& identifier);
00072 
00073   virtual QString toString() const;
00074 
00075   virtual AbstractType* clone() const;
00076 
00077   virtual bool equals(const AbstractType* rhs) const;
00078 
00079   Kind kind() const;
00080   void setKind(Kind kind);
00081 
00082   virtual uint hash() const;
00083 
00084   virtual WhichType whichType() const;
00085 
00086   enum {
00087     Identity = 8
00088   };
00089 
00090   typedef DelayedTypeData Data;
00091 
00092   protected:
00093     virtual void accept0 (KDevelop::TypeVisitor *v) const ;
00094     TYPE_DECLARE_DATA(DelayedType)
00095 };
00096 
00097 template<>
00098 inline DelayedType* fastCast<DelayedType*>(AbstractType* from) {
00099   if(!from || from->whichType() != AbstractType::TypeDelayed)
00100     return 0;
00101   else
00102     return static_cast<DelayedType*>(from);
00103 }
00104 
00105 }
00106 
00107 #endif
00108 
00109 // 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