[Groonga-commit] groonga/grnxx at 5717bc8 [new_data_types] Update DereferenceNode to support Vector<T>. (#106)

Back to archive index

susumu.yata null+****@clear*****
Mon Nov 17 20:10:07 JST 2014


susumu.yata	2014-11-17 20:10:07 +0900 (Mon, 17 Nov 2014)

  New Revision: 5717bc8dea119fe7b605f72160d91a09394424fc
  https://github.com/groonga/grnxx/commit/5717bc8dea119fe7b605f72160d91a09394424fc

  Message:
    Update DereferenceNode to support Vector<T>. (#106)

  Modified files:
    lib/grnxx/impl/expression.cpp

  Modified: lib/grnxx/impl/expression.cpp (+16 -16)
===================================================================
--- lib/grnxx/impl/expression.cpp    2014-11-17 19:50:01 +0900 (e71e841)
+++ lib/grnxx/impl/expression.cpp    2014-11-17 20:10:07 +0900 (c6e1420)
@@ -2083,22 +2083,22 @@ Node *ExpressionBuilder::create_dereference_node(
           return new DereferenceNode<Text>(
               std::move(arg1), std::move(arg2));
         }
-//        case BOOL_VECTOR_DATA: {
-//          return new DereferenceNode<Vector<Bool>>(
-//              std::move(arg1), std::move(arg2));
-//        }
-//        case INT_VECTOR_DATA: {
-//          return new DereferenceNode<Vector<Int>>(
-//              std::move(arg1), std::move(arg2));
-//        }
-//        case FLOAT_VECTOR_DATA: {
-//          return new DereferenceNode<Vector<Float>>(
-//              std::move(arg1), std::move(arg2));
-//        }
-//        case GEO_POINT_VECTOR_DATA: {
-//          return new DereferenceNode<Vector<GeoPoint>>(
-//              std::move(arg1), std::move(arg2));
-//        }
+        case BOOL_VECTOR_DATA: {
+          return new DereferenceNode<Vector<Bool>>(
+              std::move(arg1), std::move(arg2));
+        }
+        case INT_VECTOR_DATA: {
+          return new DereferenceNode<Vector<Int>>(
+              std::move(arg1), std::move(arg2));
+        }
+        case FLOAT_VECTOR_DATA: {
+          return new DereferenceNode<Vector<Float>>(
+              std::move(arg1), std::move(arg2));
+        }
+        case GEO_POINT_VECTOR_DATA: {
+          return new DereferenceNode<Vector<GeoPoint>>(
+              std::move(arg1), std::move(arg2));
+        }
 //        case TEXT_VECTOR_DATA: {
 //          return new DereferenceNode<Vector<Text>>(
 //              std::move(arg1), std::move(arg2));
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index