From 1d52d59e57392b99fa783cd9702d438dbe6ed3e6 Mon Sep 17 00:00:00 2001 From: rbock Date: Tue, 26 Aug 2014 23:33:05 +0200 Subject: [PATCH] Added a few comments for better orientation --- include/sqlpp11/boolean.h | 4 ++++ include/sqlpp11/floating_point.h | 4 ++++ include/sqlpp11/integral.h | 5 +++++ include/sqlpp11/text.h | 5 +++++ 4 files changed, 18 insertions(+) diff --git a/include/sqlpp11/boolean.h b/include/sqlpp11/boolean.h index c96ea101..26f84070 100644 --- a/include/sqlpp11/boolean.h +++ b/include/sqlpp11/boolean.h @@ -48,6 +48,7 @@ namespace sqlpp using _is_valid_operand = is_boolean_t; }; + // boolean parameter type template<> struct parameter_value_t { @@ -116,6 +117,7 @@ namespace sqlpp bool _is_null; }; + // boolean expression operators template struct expression_operators: public basic_expression_operators { @@ -146,11 +148,13 @@ namespace sqlpp } }; + // boolean column operators template struct column_operators { }; + // boolean result field template struct result_field_t: public result_field_methods_t> { diff --git a/include/sqlpp11/floating_point.h b/include/sqlpp11/floating_point.h index 94230075..0dde778b 100644 --- a/include/sqlpp11/floating_point.h +++ b/include/sqlpp11/floating_point.h @@ -46,6 +46,7 @@ namespace sqlpp using _is_valid_operand = is_numeric_t; }; + // floating_point parameter type template<> struct parameter_value_t { @@ -114,6 +115,7 @@ namespace sqlpp bool _is_null; }; + // floating_point expression operators template struct expression_operators: public basic_expression_operators @@ -166,6 +168,7 @@ namespace sqlpp } }; + // floating_point column operators template struct column_operators { @@ -208,6 +211,7 @@ namespace sqlpp return { *static_cast(this), { *static_cast(this), rhs{t} } }; } }; + // floating_point result field template struct result_field_t: public result_field_methods_t> { diff --git a/include/sqlpp11/integral.h b/include/sqlpp11/integral.h index a14e966b..0cf251e6 100644 --- a/include/sqlpp11/integral.h +++ b/include/sqlpp11/integral.h @@ -48,6 +48,7 @@ namespace sqlpp using _is_valid_operand = is_numeric_t; }; + // integral parameter value template<> struct parameter_value_t { @@ -115,6 +116,7 @@ namespace sqlpp bool _is_null; }; + // integral expression operators template struct expression_operators: public basic_expression_operators { @@ -196,6 +198,7 @@ namespace sqlpp }; + // integral column operators template struct column_operators { @@ -239,6 +242,7 @@ namespace sqlpp } }; + // integral result field template struct result_field_t: public result_field_methods_t> { @@ -309,6 +313,7 @@ namespace sqlpp _cpp_value_type _value; }; + // ostream operator for integral result field template inline std::ostream& operator<<(std::ostream& os, const result_field_t& e) { diff --git a/include/sqlpp11/text.h b/include/sqlpp11/text.h index 5ecd5841..f666f715 100644 --- a/include/sqlpp11/text.h +++ b/include/sqlpp11/text.h @@ -47,6 +47,7 @@ namespace sqlpp using _is_valid_operand = is_text_t; }; + // text parameter type template<> struct parameter_value_t { @@ -116,6 +117,8 @@ namespace sqlpp }; + // text expression operators + template<> template struct expression_operators: public basic_expression_operators { @@ -141,6 +144,7 @@ namespace sqlpp } }; + // text column operators template struct column_operators { @@ -157,6 +161,7 @@ namespace sqlpp } }; + // text result field template struct result_field_t: public result_field_methods_t> {