@ -22,7 +22,7 @@ class Base2Something: public OBTypeM<Func,O...>
public :
Base2Something ( const ObjectBase * arg ) : OBTypeM < Func , O . . . > ( arg ) { } ;
Base2Something ( const ObjectList * input , const std : : string & name ) : OBTypeM < Func , O . . . > ( input - > Find ( name ) ) { } ;
Base2Something ( const ObjectList * input , const ObjectList : : ListValues : : size_t ype i ) : OBTypeM < Func , O . . . > ( ( i < input - > Size ( ) ) ? input - > At ( i ) : 0 ) { } ; // Check index, because At is not safe
Base2Something ( const ObjectList * input , const ObjectList : : IndexT ype i ) : OBTypeM < Func , O . . . > ( ( i < input - > Size ( ) ) ? input - > At ( i ) : 0 ) { } ; // Check index, because At is not safe
template < class . . . Args >
auto operator ( ) ( bool * b , Args . . . args ) const - > decltype ( this - > OBTypeM < Func , O . . . > : : template operator ( ) < bool * , Args . . . > ( b , args . . . ) )
{
@ -149,7 +149,7 @@ struct SearchHelper<Struct,true>
{
void operator ( ) ( const ObjectList * input , Struct * s , bool * exist , bool * ok ) const
{
for ( ObjectList : : ListValues : : size_t ype i = 0 ; i < input - > Size ( ) ; i + + )
for ( ObjectList : : IndexT ype i = 0 ; i < input - > Size ( ) ; i + + )
{
OBType < ObjectGMTClass < Struct > > obj ( input - > At ( i ) ) ;
if ( obj )
@ -194,7 +194,7 @@ class SearchParameter<Struct,SearchByType>
// Bottom of recursion
SearchParameter ( const ObjectList * input ) : exist ( false ) , ok ( true ) { SearchHelper < Struct , SearchByType > ( ) ( input , & val , & exist , & ok ) ; }
// Search by index
SearchParameter ( const ObjectList * input , const ObjectList : : ListValues : : size_t ype i ) : exist ( false ) , ok ( true )
SearchParameter ( const ObjectList * input , const ObjectList : : IndexT ype i ) : exist ( false ) , ok ( true )
{
Base2Struct a ( input , i ) ;
if ( a . Exist ( ) )