susumu.yata
null+****@clear*****
Thu Nov 6 08:04:13 JST 2014
susumu.yata 2014-11-06 08:04:13 +0900 (Thu, 06 Nov 2014) New Revision: 3f8d1f1f23775be50e47ec891470162edc3fcefd https://github.com/groonga/grnxx/commit/3f8d1f1f23775be50e47ec891470162edc3fcefd Message: Add data_type() to vector data types. Modified files: include/grnxx/data_types/vector/bool.hpp include/grnxx/data_types/vector/float.hpp include/grnxx/data_types/vector/geo_point.hpp include/grnxx/data_types/vector/int.hpp include/grnxx/data_types/vector/text.hpp Modified: include/grnxx/data_types/vector/bool.hpp (+4 -0) =================================================================== --- include/grnxx/data_types/vector/bool.hpp 2014-11-05 20:40:18 +0900 (d317c00) +++ include/grnxx/data_types/vector/bool.hpp 2014-11-06 08:04:13 +0900 (d292f3e) @@ -11,7 +11,11 @@ template <typename T> class Vector; template <> class Vector<Bool> { + public: // TODO + constexpr DataType type() const { + return BOOL_VECTOR_DATA; + } }; using BoolVector = Vector<Bool>; Modified: include/grnxx/data_types/vector/float.hpp (+4 -0) =================================================================== --- include/grnxx/data_types/vector/float.hpp 2014-11-05 20:40:18 +0900 (effc7d3) +++ include/grnxx/data_types/vector/float.hpp 2014-11-06 08:04:13 +0900 (f289e92) @@ -11,7 +11,11 @@ template <typename T> class Vector; template <> class Vector<Float> { + public: // TODO + constexpr DataType type() const { + return FLOAT_VECTOR_DATA; + } }; using FloatVector = Vector<Float>; Modified: include/grnxx/data_types/vector/geo_point.hpp (+4 -0) =================================================================== --- include/grnxx/data_types/vector/geo_point.hpp 2014-11-05 20:40:18 +0900 (1c9d9e0) +++ include/grnxx/data_types/vector/geo_point.hpp 2014-11-06 08:04:13 +0900 (2bb0fd4) @@ -11,7 +11,11 @@ template <typename T> class Vector; template <> class Vector<GeoPoint> { + public: // TODO + constexpr DataType type() const { + return GEO_POINT_VECTOR_DATA; + } }; using GeoPointVector = Vector<GeoPoint>; Modified: include/grnxx/data_types/vector/int.hpp (+4 -0) =================================================================== --- include/grnxx/data_types/vector/int.hpp 2014-11-05 20:40:18 +0900 (892cc6c) +++ include/grnxx/data_types/vector/int.hpp 2014-11-06 08:04:13 +0900 (a1569f9) @@ -11,7 +11,11 @@ template <typename T> class Vector; template <> class Vector<Int> { + public: // TODO + constexpr DataType type() const { + return INT_VECTOR_DATA; + } }; using IntVector = Vector<Int>; Modified: include/grnxx/data_types/vector/text.hpp (+5 -0) =================================================================== --- include/grnxx/data_types/vector/text.hpp 2014-11-05 20:40:18 +0900 (189ca22) +++ include/grnxx/data_types/vector/text.hpp 2014-11-06 08:04:13 +0900 (cc4b5e4) @@ -2,6 +2,7 @@ #define GRNXX_DATA_TYPES_VECTOR_TEXT_HPP #include "grnxx/data_types/data_type.hpp" +#include "grnxx/data_types/na.hpp" #include "grnxx/data_types/scalar/text.hpp" namespace grnxx { @@ -10,7 +11,11 @@ template <typename T> class Vector; template <> class Vector<Text> { + public: // TODO + constexpr DataType type() const { + return TEXT_VECTOR_DATA; + } }; using TextVector = Vector<Text>; -------------- next part -------------- HTML����������������������������... 下載