Merge pull request #558 from yikenan/master

move the getType() function implementation from hpp file to cpp file
This commit is contained in:
Leonid Stryzhevskyi 2022-02-07 02:16:10 +02:00 committed by GitHub
commit 3805abfcb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 77 additions and 52 deletions

View File

@ -28,6 +28,11 @@ namespace oatpp { namespace data { namespace mapping { namespace type {
namespace __class { namespace __class {
const ClassId Any::CLASS_ID("Any"); const ClassId Any::CLASS_ID("Any");
Type* Any::getType() {
static Type type(CLASS_ID);
return &type;
}
} }
Any::Any() Any::Any()

View File

@ -44,10 +44,7 @@ namespace __class {
*/ */
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type *getType() { static Type *getType();
static Type type(CLASS_ID);
return &type;
}
}; };

View File

@ -125,6 +125,65 @@ namespace __class {
const ClassId Boolean::CLASS_ID("Boolean"); const ClassId Boolean::CLASS_ID("Boolean");
Type* String::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Int8::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* UInt8::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Int16::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* UInt16::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Int32::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* UInt32::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Int64::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* UInt64::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Float32::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Float64::getType(){
static Type type(CLASS_ID);
return &type;
}
Type* Boolean::getType(){
static Type type(CLASS_ID);
return &type;
}
} }
}}}} }}}}

View File

@ -546,10 +546,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -557,10 +554,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -568,10 +562,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -579,10 +570,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -590,10 +578,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -601,10 +586,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -612,10 +594,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -623,10 +602,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -634,10 +610,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -645,10 +618,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -656,10 +626,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };
@ -667,10 +634,7 @@ namespace __class {
public: public:
static const ClassId CLASS_ID; static const ClassId CLASS_ID;
static Type* getType(){ static Type* getType();
static Type type(CLASS_ID);
return &type;
}
}; };