kdevplatform/language/duchain
#include <constantintegraltype.h>

Public Member Functions | |
ConstantIntegralType (const ConstantIntegralType &rhs) | |
ConstantIntegralType (ConstantIntegralTypeData &data) | |
ConstantIntegralType (uint type=TypeNone) | |
KDevelop::AbstractType * | clone () const override |
bool | equals (const KDevelop::AbstractType *rhs) const override |
uint | hash () const override |
ConstantIntegralType & | operator= (const ConstantIntegralType &rhs)=delete |
qint64 | plainValue () const |
template<class ValueType > | |
void | setValue (ValueType value) |
QString | toString () const override |
template<class ValueType > | |
ValueType | value () const |
QString | valueAsString () const |
![]() | |
IntegralType (const IntegralType &rhs) | |
IntegralType (IntegralTypeData &data) | |
IntegralType (uint type=TypeNone) | |
~IntegralType () override | |
AbstractType * | clone () const override |
uint | dataType () const |
bool | equals (const AbstractType *rhs) const override |
uint | hash () const override |
IntegralType & | operator= (const IntegralType &rhs)=delete |
void | setDataType (uint dataType) |
QString | toString () const override |
WhichType | whichType () const override |
![]() | |
AbstractType () | |
AbstractType (AbstractTypeData &dd) | |
AbstractType (const AbstractType &rhs)=delete | |
virtual | ~AbstractType () |
void | accept (TypeVisitor *v) const |
int64_t | alignOf () const |
virtual void | exchangeTypes (TypeExchanger *exchanger) |
IndexedType | indexed () const |
void | makeDynamic () |
quint32 | modifiers () const |
AbstractType & | operator= (const AbstractType &rhs)=delete |
void | setAlignOf (int64_t alignedTo) |
void | setModifiers (quint32 modifiers) |
void | setSizeOf (int64_t sizeOf) |
int64_t | sizeOf () const |
![]() | |
QSharedData () | |
QSharedData (const QSharedData &other) | |
Protected Member Functions | |
TYPE_DECLARE_DATA (ConstantIntegralType) | |
![]() | |
void | accept0 (TypeVisitor *v) const override |
![]() | |
QString | toString (bool spaceOnLeft) const |
Additional Inherited Members | |
![]() | |
static void | acceptType (AbstractType::Ptr type, TypeVisitor *v) |
template<class Type > | |
static Type::Data & | copyData (const typename Type::Data &rhs) |
template<class DataType > | |
static DataType & | copyDataDirectly (const DataType &rhs) |
template<class Type > | |
static Type::Data & | createData () |
![]() | |
AbstractTypeData * | d_ptr |
Detailed Description
Definition at line 37 of file constantintegraltype.h.
Member Typedef Documentation
◆ Data
Definition at line 102 of file constantintegraltype.h.
◆ Ptr
Definition at line 49 of file constantintegraltype.h.
Member Enumeration Documentation
◆ anonymous enum
anonymous enum |
Enumerator | |
---|---|
Identity |
Definition at line 98 of file constantintegraltype.h.
Constructor & Destructor Documentation
◆ ConstantIntegralType() [1/3]
KDevelop::ConstantIntegralType::ConstantIntegralType | ( | const ConstantIntegralType & | rhs | ) |
Definition at line 31 of file constantintegraltype.cpp.
◆ ConstantIntegralType() [2/3]
|
explicit |
Definition at line 36 of file constantintegraltype.cpp.
◆ ConstantIntegralType() [3/3]
|
explicit |
Definition at line 41 of file constantintegraltype.cpp.
Member Function Documentation
◆ clone()
|
overridevirtual |
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 53 of file constantintegraltype.cpp.
◆ equals()
|
overridevirtual |
Should return whether this type's content equals the given one Since this is used by the type-repository, it must compare ALL members of the data type.
Reimplemented from KDevelop::AbstractType.
Definition at line 58 of file constantintegraltype.cpp.
◆ hash()
|
overridevirtual |
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 144 of file constantintegraltype.cpp.
◆ operator=()
|
delete |
◆ plainValue()
qint64 KDevelop::ConstantIntegralType::plainValue | ( | ) | const |
Definition at line 48 of file constantintegraltype.cpp.
◆ setValue()
|
inline |
The types and modifiers are not changed! The values are casted internally to the local representation, so you can lose precision.
Definition at line 55 of file constantintegraltype.h.
◆ toString()
|
overridevirtual |
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 73 of file constantintegraltype.cpp.
◆ TYPE_DECLARE_DATA()
|
protected |
◆ value()
|
inline |
For booleans, the value is 1 for true, and 0 for false.
All signed values should be retrieved and set through value(),
Definition at line 73 of file constantintegraltype.h.
◆ valueAsString()
QString KDevelop::ConstantIntegralType::valueAsString | ( | ) | const |
Definition at line 116 of file constantintegraltype.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 23:31:18 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.