PhoenixGenerator
3.4.0
Generate code from template files and projects in C++, Rust, Python and wrapped C++ to Python
Toggle main menu visibility
Loading...
Searching...
No Matches
type_utils.h
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : LGPL-3.0-only
5
****************************************/
6
7
#ifndef __TYPE_UTILS_H__
8
#define __TYPE_UTILS_H__
9
10
#include "PString.h"
11
12
bool
generator_typeIsList
(
const
PString & type);
13
PString
generator_getListNestedType
(
const
PString & type);
14
15
bool
getIsSimpleType
(
const
PString & varType);
16
bool
getIsPointerType
(
const
PString & varType);
17
PString
getDefaultValueTypeInCpp
(
const
PString & type);
18
PString
getDefaultValueTypeInPython
(
const
PString & type);
19
PString
getTestDefaultValueTypeInCpp
(
const
PString & type);
20
PString
getTestDefaultValueTypeInPython
(
const
PString & type);
21
PString
makeVarType
(
const
PString & varType,
bool
isSetter,
bool
isConst,
bool
isRef,
bool
isPtr);
22
23
24
25
#endif
getTestDefaultValueTypeInCpp
PString getTestDefaultValueTypeInCpp(const PString &type)
Get the default value of a type in C++.
Definition
type_utils.cpp:104
generator_getListNestedType
PString generator_getListNestedType(const PString &type)
Get the nested type inside a std::list.
Definition
type_utils.cpp:22
getDefaultValueTypeInPython
PString getDefaultValueTypeInPython(const PString &type)
Get default value for a given type in Python.
Definition
type_utils.cpp:82
generator_typeIsList
bool generator_typeIsList(const PString &type)
Say if a given type is a std::list.
Definition
type_utils.cpp:14
getTestDefaultValueTypeInPython
PString getTestDefaultValueTypeInPython(const PString &type)
Get default test value for a given type in Python.
Definition
type_utils.cpp:136
getIsPointerType
bool getIsPointerType(const PString &varType)
Say if a given type is a pointer type (i.e. it ends with a '*').
Definition
type_utils.cpp:41
makeVarType
PString makeVarType(const PString &varType, bool isSetter, bool isConst, bool isRef, bool isPtr)
Makes the var type by taking account of the type.
Definition
type_utils.cpp:162
getDefaultValueTypeInCpp
PString getDefaultValueTypeInCpp(const PString &type)
Get the default value of a type in C++.
Definition
type_utils.cpp:50
getIsSimpleType
bool getIsSimpleType(const PString &varType)
Check if the given type is a simple type.
Definition
type_utils.cpp:32
src
Representation
type_utils.h
Generated by
1.18.0