![]() |
|
PhoenixGenerator
2.0.4
Set of tools to generate code
|
#include "type_utils.h"
Include dependency graph for type_utils.cpp: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++. | |
| 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 | 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_typeIsList().
Referenced by data_stream_trait_wrapper_classAttributeFromMessage(), data_stream_trait_wrapper_classAttributeGetSize(), data_stream_trait_wrapper_classAttributeToMessage(), data_stream_trait_wrapper_classImplCheck(), and pythonGetDefaultTestValue().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Referenced by data_stream_trait_wrapper_classAttributeFromMessage(), data_stream_trait_wrapper_classAttributeGetSize(), data_stream_trait_wrapper_classAttributeToMessage(), data_stream_trait_wrapper_classImplCheck(), generator_getListNestedType(), pythonGetDefaultTestValue(), and wrapper_generator_class_implNewc().
Here is the caller graph for this function:| PString getDefaultValueTypeInCpp | ( | const PString & | type | ) |
Get the default value of a type in C++.
| type | : type to be converted |
Definition at line 41 of file type_utils.cpp.
Referenced by class_saveClassInitialisationFunctionImpl().
Here is the caller graph for this function:| 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.
Referenced by class_createCheckClassEquality(), class_saveClassInitialisationFunctionImpl(), WrapperTraitGetterSetter::classMethodDeclaration(), WrapperTraitGetterSetter::classMethodImplementation(), data_stream_trait_wrapper_classAttributeFromMessage(), data_stream_trait_wrapper_classAttributeGetSize(), data_stream_trait_wrapper_classAttributeToMessage(), data_stream_trait_wrapper_classImplCheck(), makeVarType(), project_wrapper_attributeDef(), WrapperTraitGetterSetter::registerClassGetterSetter(), WrapperTraitGetterSetter::registerClassMember(), wrapper_generator_class_implDealloc(), and wrapper_generator_class_implNewc().
Here is the caller graph for this function:| PString getTestDefaultValueTypeInCpp | ( | const PString & | type | ) |
Get the default value of a type in C++.
| type | : type to be converted |
Definition at line 73 of file type_utils.cpp.
Referenced by class_createTestClassCopy().
Here is the caller graph for this function:| 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 109 of file type_utils.cpp.
References getIsSimpleType().
Referenced by getter_createGetterDecl(), and setter_createSetterDecl().
Here is the call graph for this function:
Here is the caller graph for this function: