Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nmsdk
rdk
Commits
3fafd8de9d55
Commit
b59c2c9a
authored
Aug 26, 2020
by
vlad_burin
Browse files
reinterpret_cast changed to dynamic_cast because of upcast using VIRTUAL base class
--HG-- branch : BaseClassifierTest
parent
27e9ffa5757d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Core/Engine/ULocalProperty.h
View file @
3fafd8de
...
...
@@ -39,11 +39,11 @@ public: //
// .
UVBaseLProperty
(
const
string
&
name
,
OwnerT
*
const
owner
)
:
UVBaseProperty
<
T
,
OwnerT
>
(
owner
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
UVBaseLProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
T
*
const
pdata
)
:
UVBaseProperty
<
T
,
OwnerT
>
(
owner
,
pdata
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
// -----------------------------
};
...
...
@@ -67,11 +67,11 @@ public: //
UVLProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
T
,
OwnerT
>::
SetterRT
setmethod
,
typename
UVProperty
<
T
,
OwnerT
>::
GetterRT
getmethod
)
:
UVProperty
<
T
,
OwnerT
>
(
owner
,
setmethod
,
getmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
UVLProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
T
*
const
pdata
,
typename
UVProperty
<
T
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UVProperty
<
T
,
OwnerT
>
(
owner
,
pdata
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
UVLProperty
(
UVLProperty
<
T
,
OwnerT
>
&
v
)
{}
...
...
@@ -106,7 +106,7 @@ public:
//
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
T
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
T
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
T
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -157,12 +157,12 @@ public:
//
UCLProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
T
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UCProperty
<
T
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
//
UCLProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UCProperty
<
T
,
OwnerT
>::
VSetterRT
setmethod
)
:
UCProperty
<
T
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
UCLProperty
(
const
UCProperty
<
T
,
OwnerT
>
&
v
)
{}
...
...
Core/Engine/UPropertyEndpoints.h
View file @
3fafd8de
...
...
@@ -20,7 +20,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
std
::
vector
<
V
>
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
std
::
vector
<
V
>
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
std
::
vector
<
V
>
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -139,7 +139,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
std
::
list
<
V
>
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
std
::
list
<
V
>
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
std
::
list
<
V
>
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -249,7 +249,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
std
::
map
<
T
,
V
>
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
std
::
map
<
T
,
V
>
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
std
::
map
<
T
,
V
>
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -359,7 +359,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
MDMatrix
<
V
>
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
MDMatrix
<
V
>
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
MDMatrix
<
V
>
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -539,7 +539,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
MDVector
<
V
>
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
MDVector
<
V
>
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
MDVector
<
V
>
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -707,7 +707,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
double
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
double
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
double
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -756,7 +756,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
int
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
int
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
int
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -834,7 +834,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
unsigned
int
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
unsigned
int
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
unsigned
int
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -913,7 +913,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
unsigned
long
int
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
unsigned
long
int
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
size_t
,
OwnerT
,
type
>
&
v
)
{}
...
...
@@ -986,7 +986,7 @@ public: //
// .
ULProperty
(
const
string
&
name
,
OwnerT
*
const
owner
,
typename
UVProperty
<
unsigned
long
long
,
OwnerT
>::
SetterRT
setmethod
=
0
)
:
UProperty
<
unsigned
long
long
,
OwnerT
>
(
owner
,
setmethod
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
{
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
}
protected:
ULProperty
(
const
ULProperty
<
unsigned
long
long
,
OwnerT
,
type
>
&
v
)
{}
...
...
Core/Engine/UPropertyInput.h
View file @
3fafd8de
...
...
@@ -56,7 +56,7 @@ public: //
UPropertyInputBase
(
const
string
&
name
,
OwnerT
*
const
owner
,
int
input_type
)
:
UPropertyInputPreBase
<
T
,
OwnerT
>
(
owner
,
input_type
)
{
reinterpret
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
dynamic
_cast
<
UComponent
*
const
>
(
owner
)
->
AddLookupProperty
(
name
,
type
,
this
,
false
);
};
// -----------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment