relation_set.cc
//return the Variable value as boost variant
//used for the relation processing
return the Variable value as boost variant
used for the relation processing
return the Variable value as boost variant used for the relation processing
NumberVariant RelationSet::variableToNumberVariant(Variable var)  {
    NumberVariant result;
    if(var.type == VariableSetType::INT64)
        result = var.value.asInt64;
    else if(var.type == VariableSetType::INT32)
        result = var.value.asInt32;
    else if(var.type == VariableSetType::INT16)
        result = var.value.asInt16;
    else if(var.type == VariableSetType::INT8)
        result = var.value.asInt8;
    else if(var.type == VariableSetType::UINT32)
        result = var.value.asUInt32;
    else if(var.type == VariableSetType::UINT16)
        result = var.value.asUInt16;
    else if(var.type == VariableSetType::UINT8)
        result = var.value.asUInt8;
    else
        throw "Unimplemented type in variableToNumberVariant()!";
    return result;
}
NumberVariant RelationSet :: variableToNumberVariant ( Variable var ) { NumberVariant result ; if ( var . type == VariableSetType :: INT64 ) result = var . value . asInt64 ; else if ( var . type == VariableSetType :: INT32 ) result = var . value . asInt32 ; else if ( var . type == VariableSetType :: INT16 ) result = var . value . asInt16 ; else if ( var . type == VariableSetType :: INT8 ) result = var . value . asInt8 ; else if ( var . type == VariableSetType :: UINT32 ) result = var . value . asUInt32 ; else if ( var . type == VariableSetType :: UINT16 ) result = var . value . asUInt16 ; else if ( var . type == VariableSetType :: UINT8 ) result = var . value . asUInt8 ; else throw " " ; return result ; }
return the Variable value as boost variant
used for the relation processing
return the Variable value as boost variant used for the relation processing
//signed integers //unsigned integers