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

language/duchain

KDevelop::StructureType

KDevelop::StructureType Class Reference

A type representing structure types. More...

#include <structuretype.h>

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

List of all members.

Public Types

enum  { Identity = 6 }
typedef StructureTypeData Data
typedef TypePtr< StructureType > Ptr

Public Member Functions

 StructureType (StructureTypeData &data)
 StructureType (const StructureType &rhs)
 StructureType ()
virtual ~StructureType ()
virtual AbstractType * clone () const
virtual bool equals (const AbstractType *rhs) const
virtual uint hash () const
virtual QString toString () const
virtual WhichType whichType () const

Protected Member Functions

virtual void accept0 (TypeVisitor *v) const

Detailed Description

A type representing structure types.

StructureType represents all structures, including classes, interfaces, etc.

Definition at line 39 of file structuretype.h.


Constructor & Destructor Documentation

KDevelop::StructureType::StructureType (  ) 

Default constructor.

Definition at line 63 of file structuretype.cpp.

KDevelop::StructureType::StructureType ( const StructureType &  rhs  ) 

Copy constructor.

Parameters:
rhs type to copy

Definition at line 34 of file structuretype.cpp.

KDevelop::StructureType::StructureType ( StructureTypeData &  data  ) 

Constructor using raw data.

Parameters:
data internal data.

Definition at line 39 of file structuretype.cpp.

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

Destructor.

Definition at line 68 of file structuretype.cpp.


Member Function Documentation

void KDevelop::StructureType::accept0 ( 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 72 of file structuretype.cpp.

AbstractType * KDevelop::StructureType::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 44 of file structuretype.cpp.

uint KDevelop::StructureType::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 97 of file structuretype.cpp.

QString KDevelop::StructureType::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 80 of file structuretype.cpp.

AbstractType::WhichType KDevelop::StructureType::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 92 of file structuretype.cpp.


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