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

language/duchain

KDevelop::AliasDeclaration

KDevelop::AliasDeclaration Class Reference

An alias declaration maps one declaration to another. More...

#include <aliasdeclaration.h>

Inheritance diagram for KDevelop::AliasDeclaration:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { Identity = 6 }

Public Member Functions

 AliasDeclaration (AliasDeclarationData &data)
 AliasDeclaration (const SimpleRange &range, DUContext *context)
 AliasDeclaration (const AliasDeclaration &rhs)
virtual ~AliasDeclaration ()
IndexedDeclaration aliasedDeclaration () const
virtual void setAbstractType (AbstractType::Ptr type)
void setAliasedDeclaration (const IndexedDeclaration &decl)
virtual QString toString () const

Detailed Description

An alias declaration maps one declaration to another.

While searching in the duchain, an AliasDeclaration is transparently replaced by its aliased declaration.

Definition at line 44 of file aliasdeclaration.h.


Constructor & Destructor Documentation

KDevelop::AliasDeclaration::AliasDeclaration ( const AliasDeclaration &  rhs  ) 

Copy constructor.

Parameters:
rhs declaration to copy

Definition at line 30 of file aliasdeclaration.cpp.

KDevelop::AliasDeclaration::AliasDeclaration ( const SimpleRange &  range,
DUContext *  context 
)

Constructs an AliasDeclaration.

The default value for isNamespaceAlias is true.

Parameters:
url url of the document where this occurred
range range of the alias declaration's identifier
context context in which this declaration occurred

Definition at line 35 of file aliasdeclaration.cpp.

KDevelop::AliasDeclaration::~AliasDeclaration (  )  [virtual]

Destructor.

Definition at line 48 of file aliasdeclaration.cpp.


Member Function Documentation

IndexedDeclaration KDevelop::AliasDeclaration::aliasedDeclaration (  )  const

Access the declaration that is aliased by this declaration.

Returns:
the aliased declaration

Definition at line 70 of file aliasdeclaration.cpp.

void KDevelop::AliasDeclaration::setAbstractType ( AbstractType::Ptr  type  )  [virtual]

An AliasDeclaration cannot have a type, so setAbstractType does nothing here.

Parameters:
type ignored type

Reimplemented from KDevelop::Declaration.

Definition at line 74 of file aliasdeclaration.cpp.

void KDevelop::AliasDeclaration::setAliasedDeclaration ( const IndexedDeclaration &  decl  ) 

Set the declaration that is aliased by this declaration.

Parameters:
decl the declaration that this declaration references

Definition at line 63 of file aliasdeclaration.cpp.

QString KDevelop::AliasDeclaration::toString (  )  const [virtual]

Determine this declaration as a string.

Returns:
this declaration as a string.

Reimplemented from KDevelop::Declaration.

Definition at line 56 of file aliasdeclaration.cpp.


The documentation for this class was generated from the following files:
  • aliasdeclaration.h
  • aliasdeclaration.cpp

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