コード例 #1
0
ファイル: operations_multiply.cpp プロジェクト: bhbosman/code
DataStore Integer_Multiply_Double_Operator_Calculation::doInternalCalculation(const DataStore &left, const DataStore &right) const
{
    double ans = left.intValue () * right.doubleValue();
    return DataStore(SupportedType::stDouble, ans);
}
コード例 #2
0
ファイル: operations_plus.cpp プロジェクト: bhbosman/code
DataStore Integer_Plus_Integer_Operator_Calculation::doInternalCalculation(const DataStore &left, const DataStore &right) const
{
    int ans = left.intValue() + right.intValue();
    return DataStore(SupportedType::stInteger, ans);
}