![]() |
|
PhoenixGenerator
3.4.0
Generate code from template files and projects in C++, Rust, Python and wrapped C++ to Python
|
#include "PString.h"Go to the source code of this file.
Functions | |
| PString | generator_getListNestedType (const PString &type) |
| Get the nested type inside a std::list. | |
| bool | generator_typeIsList (const PString &type) |
| Say if a given type is a std::list. | |
| PString | getDefaultValueTypeInCpp (const PString &type) |
| Get the default value of a type in C++. | |
| PString | getDefaultValueTypeInPython (const PString &type) |
| Get default value for a given type in Python. | |
| bool | getIsPointerType (const PString &varType) |
| Say if a given type is a pointer type (i.e. it ends with a '*'). | |
| bool | getIsSimpleType (const PString &varType) |
| Check if the given type is a simple type. | |
| PString | getTestDefaultValueTypeInCpp (const PString &type) |
| Get the default value of a type in C++. | |
| PString | getTestDefaultValueTypeInPython (const PString &type) |
| Get default test value for a given type in Python. | |
| PString | makeVarType (const PString &varType, bool isSetter, bool isConst, bool isRef, bool isPtr) |
| Makes the var type by taking account of the type. | |
| PString generator_getListNestedType | ( | const PString & | type | ) |
Get the nested type inside a std::list.
| type | : type of be used |
Definition at line 22 of file type_utils.cpp.
References generator_getListNestedType(), and generator_typeIsList().
Referenced by data_stream_trait_wrapper_classAttributeFromMessage(), data_stream_trait_wrapper_classAttributeGetSize(), data_stream_trait_wrapper_classAttributeToMessage(), data_stream_trait_wrapper_classImplCheck(), generator_getListNestedType(), getRustType(), and pythonGetDefaultTestValue().
| bool generator_typeIsList | ( | const PString & | type | ) |
Say if a given type is a std::list.
| type | : type of be checked |
Definition at line 14 of file type_utils.cpp.
References generator_typeIsList().
Referenced by data_stream_trait_wrapper_classAttributeFromMessage(), data_stream_trait_wrapper_classAttributeGetSize(), data_stream_trait_wrapper_classAttributeToMessage(), data_stream_trait_wrapper_classImplCheck(), generator_getListNestedType(), generator_typeIsList(), getRustAttributeDefaultValue(), getRustType(), getRustTypeIsCopy(), pythonGetDefaultTestValue(), and wrapper_generator_class_implNewc().
| PString getDefaultValueTypeInCpp | ( | const PString & | type | ) |
Get the default value of a type in C++.
| type | : type to be converted |
Definition at line 50 of file type_utils.cpp.
References getDefaultValueTypeInCpp().
Referenced by class_getAttributeDefaultInit(), and getDefaultValueTypeInCpp().
| PString getDefaultValueTypeInPython | ( | const PString & | type | ) |
Get default value for a given type in Python.
| type | : type to be converted |
Definition at line 82 of file type_utils.cpp.
References getDefaultValueTypeInPython().
Referenced by getDefaultValueTypeInPython().
| bool getIsPointerType | ( | const PString & | varType | ) |
Say if a given type is a pointer type (i.e. it ends with a '*').
| varType | : type to be checked |
Definition at line 41 of file type_utils.cpp.
References getIsPointerType().
Referenced by class_getAttributeDefaultInit(), class_hasPointerAttribute(), class_savePointerOwnershipSpecialMembersImpl(), CppTraitConfigStream::classExtraFunctionImplementation(), copy_hasPointerAttribute(), getIsPointerType(), getRustAttributeDefaultValue(), getRustType(), getRustTypeIsCopy(), RustTraitGetterSetter::implMethodDeclaration(), CppTraitGetter::publicMethodDeclaration(), CppTraitSetter::publicMethodDeclaration(), CppTraitGetter::publicMethodImplementation(), CppTraitSetter::publicMethodImplementation(), and RustTraitGetterSetter::testFunction().
| bool getIsSimpleType | ( | const PString & | varType | ) |
Check if the given type is a simple type.
| varType | : type to be checked |
Definition at line 32 of file type_utils.cpp.
References getIsSimpleType().
Referenced by class_createCheckClassEquality(), WrapperTraitGetterSetter::classMethodDeclaration(), WrapperTraitGetterSetter::classMethodImplementation(), data_stream_trait_wrapper_classAttributeFromMessage(), data_stream_trait_wrapper_classAttributeGetSize(), data_stream_trait_wrapper_classAttributeToMessage(), data_stream_trait_wrapper_classImplCheck(), getIsSimpleType(), makeVarType(), project_wrapper_attributeDef(), WrapperTraitGetterSetter::registerClassGetterSetter(), WrapperTraitGetterSetter::registerClassMember(), wrapper_generator_class_implDealloc(), and wrapper_generator_class_implNewc().
| PString getTestDefaultValueTypeInCpp | ( | const PString & | type | ) |
Get the default value of a type in C++.
| type | : type to be converted |
Definition at line 104 of file type_utils.cpp.
References getTestDefaultValueTypeInCpp().
Referenced by class_createTestClassCopy(), and getTestDefaultValueTypeInCpp().
| PString getTestDefaultValueTypeInPython | ( | const PString & | type | ) |
Get default test value for a given type in Python.
| type | : type to be converted |
Definition at line 136 of file type_utils.cpp.
References getTestDefaultValueTypeInPython().
Referenced by getTestDefaultValueTypeInPython(), NanobindTraitCheckStream::testFunction(), NanobindTraitDataStream::testFunction(), and NanobindTraitProperty::testFunction().
| PString makeVarType | ( | const PString & | varType, |
| bool | isSetter, | ||
| bool | isConst, | ||
| bool | isRef, | ||
| bool | isPtr ) |
Makes the var type by taking account of the type.
| varType | : variable type name |
| isSetter | : true if the type is made for a setter |
| isConst | : true if the type must be const |
| isRef | : true if the variable is a reference |
| isPtr | : true if te variable is a pointer |
Definition at line 162 of file type_utils.cpp.
References getIsSimpleType(), and makeVarType().
Referenced by getter_createGetterDecl(), makeVarType(), NanobindTraitProperty::registerProperty(), and setter_createSetterDecl().