aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/primitivetypeentry.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/primitivetypeentry.h')
-rw-r--r--sources/shiboken6/ApiExtractor/primitivetypeentry.h36
1 files changed, 21 insertions, 15 deletions
diff --git a/sources/shiboken6/ApiExtractor/primitivetypeentry.h b/sources/shiboken6/ApiExtractor/primitivetypeentry.h
index d0b50aa9c..6faaf7a61 100644
--- a/sources/shiboken6/ApiExtractor/primitivetypeentry.h
+++ b/sources/shiboken6/ApiExtractor/primitivetypeentry.h
@@ -5,6 +5,7 @@
#define PRIMITIVETYPEENTRY_H
#include "typesystem.h"
+#include "customconversion_typedefs.h"
class PrimitiveTypeEntryPrivate;
@@ -15,7 +16,7 @@ class PrimitiveTypeEntry : public TypeEntry
{
public:
explicit PrimitiveTypeEntry(const QString &entryName, const QVersionNumber &vr,
- const TypeEntry *parent);
+ const TypeEntryCPtr &parent);
QString defaultConstructor() const;
void setDefaultConstructor(const QString& defaultConstructor);
@@ -27,25 +28,13 @@ public:
* \return the type referenced by the typedef, or a null pointer
* if the current object is not an typedef
*/
- PrimitiveTypeEntry *referencedTypeEntry() const;
+ PrimitiveTypeEntryPtr referencedTypeEntry() const;
/**
* Defines type referenced by this entry.
* \param referencedTypeEntry type referenced by this entry
*/
- void setReferencedTypeEntry(PrimitiveTypeEntry* referencedTypeEntry);
-
- /// Finds the most basic primitive type that the typedef represents,
- /// i.e. a type that is not an typedef'ed.
- /// \return the most basic non-typedef'ed primitive type represented
- /// by this typedef or self in case it is not a reference.
- const PrimitiveTypeEntry* basicReferencedTypeEntry() const;
-
- /// Finds the basic primitive type that the typedef represents
- /// and was explicitly specified in the type system.
- /// \return the basic primitive type that was explicitly specified in
- /// the type system.
- const PrimitiveTypeEntry* basicReferencedNonBuiltinTypeEntry() const;
+ void setReferencedTypeEntry(PrimitiveTypeEntryPtr referencedTypeEntry);
/// Returns whether this entry references another entry.
bool referencesType() const;
@@ -53,6 +42,10 @@ public:
bool preferredTargetLangType() const;
void setPreferredTargetLangType(bool b);
+ bool hasCustomConversion() const;
+ void setCustomConversion(const CustomConversionPtr &customConversion);
+ CustomConversionPtr customConversion() const;
+
TypeEntry *clone() const override;
#ifndef QT_NO_DEBUG_STREAM
@@ -63,4 +56,17 @@ protected:
explicit PrimitiveTypeEntry(PrimitiveTypeEntryPrivate *d);
};
+/// Finds the most basic primitive type that the typedef represents,
+/// i.e. a type that is not an typedef'ed.
+/// \return the most basic non-typedef'ed primitive type represented
+/// by this typedef or self in case it is not a reference.
+PrimitiveTypeEntryCPtr basicReferencedTypeEntry(const PrimitiveTypeEntryCPtr &e);
+PrimitiveTypeEntryCPtr basicReferencedTypeEntry(const TypeEntryCPtr &e);
+
+/// Finds the basic primitive type that the typedef represents
+/// and was explicitly specified in the type system.
+/// \return the basic primitive type that was explicitly specified in
+/// the type system.
+PrimitiveTypeEntryCPtr basicReferencedNonBuiltinTypeEntry(const PrimitiveTypeEntryCPtr &e);
+
#endif // PRIMITIVETYPEENTRY_H