Commit b59c2c9a authored by vlad_burin's avatar vlad_burin
Browse files

reinterpret_cast changed to dynamic_cast because of upcast using VIRTUAL base class

--HG--
branch : BaseClassifierTest
parent 27e9ffa5757d
......@@ -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) {}
......
......@@ -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) {}
......
......@@ -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);
};
// -----------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment