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

language/duchain

KDevelop::DelayedType

KDevelop::DelayedType Class Reference

A type which has not yet been resolved. More...

#include <delayedtype.h>

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

List of all members.

Public Types

enum  { Identity = 8 }
typedef DelayedTypeData Data
enum  Kind { Delayed, Unresolved }
typedef TypePtr< DelayedType > Ptr

Public Member Functions

 DelayedType (DelayedTypeData &data)
 DelayedType (const DelayedType &rhs)
 DelayedType ()
virtual ~DelayedType ()
virtual AbstractType * clone () const
virtual bool equals (const AbstractType *rhs) const
virtual uint hash () const
KDevelop::IndexedTypeIdentifier identifier () const
Kind kind () const
void setIdentifier (const KDevelop::IndexedTypeIdentifier &identifier)
void setKind (Kind kind)
virtual QString toString () const
virtual WhichType whichType () const

Protected Member Functions

virtual void accept0 (KDevelop::TypeVisitor *v) const

Detailed Description

A type which has not yet been resolved.

Delayed types can be used for any types that cannot be resolved in the moment they are encountered. They can be used for example in template-classes, or to store the names of unresolved types. In a template-class, many types can not be evaluated at the time they are used, because they depend on unknown template-parameters. Delayed types store the way the type would be searched, and can be used to find the type once the template-paremeters have values.

Definition at line 39 of file delayedtype.h.


Member Enumeration Documentation

enum KDevelop::DelayedType::Kind

An enumeration of.

Enumerator:
Delayed 

The type should be resolved later.

This is the default.

Unresolved 

The type could not be resolved.

Definition at line 45 of file delayedtype.h.


Constructor & Destructor Documentation

KDevelop::DelayedType::DelayedType (  ) 

Default constructor.

Definition at line 73 of file delayedtype.cpp.

KDevelop::DelayedType::DelayedType ( const DelayedType &  rhs  ) 

Copy constructor.

Parameters:
rhs type to copy

Definition at line 78 of file delayedtype.cpp.

KDevelop::DelayedType::DelayedType ( DelayedTypeData &  data  ) 

Constructor using raw data.

Parameters:
data internal data.

Definition at line 33 of file delayedtype.cpp.

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

Destructor.

Definition at line 81 of file delayedtype.cpp.


Member Function Documentation

void KDevelop::DelayedType::accept0 ( KDevelop::TypeVisitor *  v  )  const [protected, virtual]

Visitor method, reimplement to allow visiting of types.

Parameters:
v visitor which is visiting.

Implements KDevelop::AbstractType.

Definition at line 95 of file delayedtype.cpp.

AbstractType * KDevelop::DelayedType::clone (  )  const [virtual]

Should create a clone of the source-type, with as much data copied as possible without breaking the du-chain.

Implements KDevelop::AbstractType.

Definition at line 36 of file delayedtype.cpp.

uint KDevelop::DelayedType::hash (  )  const [virtual]

A hash-value that should have the following properties:

  • When two types match on equals(), it should be same.

  • When two types don't match on equals(), it should be different with a high probability.

Reimplemented from KDevelop::AbstractType.

Definition at line 101 of file delayedtype.cpp.

IndexedTypeIdentifier KDevelop::DelayedType::identifier (  )  const

Access the type identifier which this type represents.

Returns:
the type identifier.

Definition at line 90 of file delayedtype.cpp.

void KDevelop::DelayedType::setIdentifier ( const KDevelop::IndexedTypeIdentifier &  identifier  ) 

Set the type identifier which this type represents.

Parameters:
identifier the type identifier.

Definition at line 85 of file delayedtype.cpp.

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

Returns this type as a string, preferably the same as it is expressed in the code.

Returns:
this type as a string

Reimplemented from KDevelop::AbstractType.

Definition at line 60 of file delayedtype.cpp.

AbstractType::WhichType KDevelop::DelayedType::whichType (  )  const [virtual]

Determine which data type this abstract type represents.

Returns:
the data type represented by this type.

Reimplemented from KDevelop::AbstractType.

Definition at line 55 of file delayedtype.cpp.


The documentation for this class was generated from the following files:
  • delayedtype.h
  • delayedtype.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