0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Some renaming cleanup

This commit is contained in:
rbock 2015-10-31 18:22:32 +01:00
parent f6f8eb0bef
commit a73572ecba
13 changed files with 35 additions and 35 deletions

View File

@ -32,7 +32,7 @@
#include <sqlpp11/data_types/boolean/wrap_operand.h> #include <sqlpp11/data_types/boolean/wrap_operand.h>
#include <sqlpp11/data_types/boolean/expression_operators.h> #include <sqlpp11/data_types/boolean/expression_operators.h>
#include <sqlpp11/data_types/boolean/column_operators.h> #include <sqlpp11/data_types/boolean/column_operators.h>
#include <sqlpp11/data_types/boolean/parameter_type.h> #include <sqlpp11/data_types/boolean/parameter_value.h>
#include <sqlpp11/data_types/boolean/result_field.h> #include <sqlpp11/data_types/boolean/result_field.h>
#endif #endif

View File

@ -24,8 +24,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef SQLPP_BOOLEAN_PARAMETER_TYPE_H #ifndef SQLPP_BOOLEAN_PARAMETER_VALUE_H
#define SQLPP_BOOLEAN_PARAMETER_TYPE_H #define SQLPP_BOOLEAN_PARAMETER_VALUE_H
#include <sqlpp11/data_types/parameter_value.h> #include <sqlpp11/data_types/parameter_value.h>
#include <sqlpp11/data_types/parameter_value_base.h> #include <sqlpp11/data_types/parameter_value_base.h>
@ -35,9 +35,9 @@
namespace sqlpp namespace sqlpp
{ {
template <> template <>
struct parameter_value_t<boolean> : public base_parameter_value<boolean, signed char> struct parameter_value_t<boolean> : public parameter_value_base<boolean, signed char>
{ {
using base = base_parameter_value<boolean, signed char>; using base = parameter_value_base<boolean, signed char>;
using base::base; using base::base;
using base::operator=; using base::operator=;

View File

@ -32,7 +32,7 @@
#include <sqlpp11/data_types/day_point/wrap_operand.h> #include <sqlpp11/data_types/day_point/wrap_operand.h>
#include <sqlpp11/data_types/day_point/expression_operators.h> #include <sqlpp11/data_types/day_point/expression_operators.h>
#include <sqlpp11/data_types/day_point/column_operators.h> #include <sqlpp11/data_types/day_point/column_operators.h>
#include <sqlpp11/data_types/day_point/parameter_type.h> #include <sqlpp11/data_types/day_point/parameter_value.h>
#include <sqlpp11/data_types/day_point/result_field.h> #include <sqlpp11/data_types/day_point/result_field.h>
#endif #endif

View File

@ -24,8 +24,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef SQLPP_DAY_POINT_PARAMETER_TYPE_H #ifndef SQLPP_DAY_POINT_PARAMETER_VALUE_H
#define SQLPP_DAY_POINT_PARAMETER_TYPE_H #define SQLPP_DAY_POINT_PARAMETER_VALUE_H
#include <sqlpp11/data_types/parameter_value.h> #include <sqlpp11/data_types/parameter_value.h>
#include <sqlpp11/data_types/parameter_value_base.h> #include <sqlpp11/data_types/parameter_value_base.h>
@ -37,9 +37,9 @@
namespace sqlpp namespace sqlpp
{ {
template <> template <>
struct parameter_value_t<day_point> : public base_parameter_value<day_point> struct parameter_value_t<day_point> : public parameter_value_base<day_point>
{ {
using base = base_parameter_value<day_point>; using base = parameter_value_base<day_point>;
using base::base; using base::base;
using base::operator=; using base::operator=;

View File

@ -32,7 +32,7 @@
#include <sqlpp11/data_types/floating_point/wrap_operand.h> #include <sqlpp11/data_types/floating_point/wrap_operand.h>
#include <sqlpp11/data_types/floating_point/expression_operators.h> #include <sqlpp11/data_types/floating_point/expression_operators.h>
#include <sqlpp11/data_types/floating_point/column_operators.h> #include <sqlpp11/data_types/floating_point/column_operators.h>
#include <sqlpp11/data_types/floating_point/parameter_type.h> #include <sqlpp11/data_types/floating_point/parameter_value.h>
#include <sqlpp11/data_types/floating_point/result_field.h> #include <sqlpp11/data_types/floating_point/result_field.h>
#endif #endif

View File

@ -24,8 +24,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef SQLPP_FLOATING_POINT_PARAMETER_TYPE_H #ifndef SQLPP_FLOATING_POINT_PARAMETER_VALUE_H
#define SQLPP_FLOATING_POINT_PARAMETER_TYPE_H #define SQLPP_FLOATING_POINT_PARAMETER_VALUE_H
#include <sqlpp11/data_types/parameter_value.h> #include <sqlpp11/data_types/parameter_value.h>
#include <sqlpp11/data_types/parameter_value_base.h> #include <sqlpp11/data_types/parameter_value_base.h>
@ -37,9 +37,9 @@
namespace sqlpp namespace sqlpp
{ {
template <> template <>
struct parameter_value_t<floating_point> : public base_parameter_value<floating_point> struct parameter_value_t<floating_point> : public parameter_value_base<floating_point>
{ {
using base = base_parameter_value<floating_point>; using base = parameter_value_base<floating_point>;
using base::base; using base::base;
using base::operator=; using base::operator=;

View File

@ -32,7 +32,7 @@
#include <sqlpp11/data_types/integral/wrap_operand.h> #include <sqlpp11/data_types/integral/wrap_operand.h>
#include <sqlpp11/data_types/integral/expression_operators.h> #include <sqlpp11/data_types/integral/expression_operators.h>
#include <sqlpp11/data_types/integral/column_operators.h> #include <sqlpp11/data_types/integral/column_operators.h>
#include <sqlpp11/data_types/integral/parameter_type.h> #include <sqlpp11/data_types/integral/parameter_value.h>
#include <sqlpp11/data_types/integral/result_field.h> #include <sqlpp11/data_types/integral/result_field.h>
#endif #endif

View File

@ -24,8 +24,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef SQLPP_INTEGRAL_PARAMETER_TYPE_H #ifndef SQLPP_INTEGRAL_PARAMETER_VALUE_H
#define SQLPP_INTEGRAL_PARAMETER_TYPE_H #define SQLPP_INTEGRAL_PARAMETER_VALUE_H
#include <sqlpp11/data_types/parameter_value.h> #include <sqlpp11/data_types/parameter_value.h>
#include <sqlpp11/data_types/parameter_value_base.h> #include <sqlpp11/data_types/parameter_value_base.h>
@ -35,9 +35,9 @@
namespace sqlpp namespace sqlpp
{ {
template <> template <>
struct parameter_value_t<integral> : public base_parameter_value<integral> struct parameter_value_t<integral> : public parameter_value_base<integral>
{ {
using base = base_parameter_value<integral>; using base = parameter_value_base<integral>;
using base::base; using base::base;
using base::operator=; using base::operator=;

View File

@ -33,28 +33,28 @@
namespace sqlpp namespace sqlpp
{ {
template <typename DataType, typename StorageType = typename DataType::_cpp_value_type> template <typename DataType, typename StorageType = typename DataType::_cpp_value_type>
struct base_parameter_value struct parameter_value_base
{ {
using _value_type = DataType; using _value_type = DataType;
using _cpp_value_type = typename _value_type::_cpp_value_type; using _cpp_value_type = typename _value_type::_cpp_value_type;
using _cpp_storage_type = StorageType; using _cpp_storage_type = StorageType;
base_parameter_value() : _value{}, _is_null{true} parameter_value_base() : _value{}, _is_null{true}
{ {
} }
explicit base_parameter_value(const _cpp_value_type& val) : _value(val), _is_null(false) explicit parameter_value_base(const _cpp_value_type& val) : _value(val), _is_null(false)
{ {
} }
base_parameter_value& operator=(const _cpp_value_type& val) parameter_value_base& operator=(const _cpp_value_type& val)
{ {
_value = val; _value = val;
_is_null = false; _is_null = false;
return *this; return *this;
} }
base_parameter_value& operator=(const tvin_t<wrap_operand_t<_cpp_value_type>>& t) parameter_value_base& operator=(const tvin_t<wrap_operand_t<_cpp_value_type>>& t)
{ {
if (t._is_trivial()) if (t._is_trivial())
{ {

View File

@ -32,7 +32,7 @@
#include <sqlpp11/data_types/text/wrap_operand.h> #include <sqlpp11/data_types/text/wrap_operand.h>
#include <sqlpp11/data_types/text/expression_operators.h> #include <sqlpp11/data_types/text/expression_operators.h>
#include <sqlpp11/data_types/text/column_operators.h> #include <sqlpp11/data_types/text/column_operators.h>
#include <sqlpp11/data_types/text/parameter_type.h> #include <sqlpp11/data_types/text/parameter_value.h>
#include <sqlpp11/data_types/text/result_field.h> #include <sqlpp11/data_types/text/result_field.h>
// text specific functions // text specific functions

View File

@ -24,8 +24,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef SQLPP_TEXT_PARAMETER_TYPE_H #ifndef SQLPP_TEXT_PARAMETER_VALUE_H
#define SQLPP_TEXT_PARAMETER_TYPE_H #define SQLPP_TEXT_PARAMETER_VALUE_H
#include <sqlpp11/data_types/parameter_value.h> #include <sqlpp11/data_types/parameter_value.h>
#include <sqlpp11/data_types/parameter_value_base.h> #include <sqlpp11/data_types/parameter_value_base.h>
@ -37,9 +37,9 @@
namespace sqlpp namespace sqlpp
{ {
template <> template <>
struct parameter_value_t<text> : public base_parameter_value<text> struct parameter_value_t<text> : public parameter_value_base<text>
{ {
using base = base_parameter_value<text>; using base = parameter_value_base<text>;
using base::base; using base::base;
using base::operator=; using base::operator=;

View File

@ -32,7 +32,7 @@
#include <sqlpp11/data_types/time_point/wrap_operand.h> #include <sqlpp11/data_types/time_point/wrap_operand.h>
#include <sqlpp11/data_types/time_point/expression_operators.h> #include <sqlpp11/data_types/time_point/expression_operators.h>
#include <sqlpp11/data_types/time_point/column_operators.h> #include <sqlpp11/data_types/time_point/column_operators.h>
#include <sqlpp11/data_types/time_point/parameter_type.h> #include <sqlpp11/data_types/time_point/parameter_value.h>
#include <sqlpp11/data_types/time_point/result_field.h> #include <sqlpp11/data_types/time_point/result_field.h>
#endif #endif

View File

@ -24,8 +24,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef SQLPP_TIME_POINT_PARAMETER_TYPE_H #ifndef SQLPP_TIME_POINT_PARAMETER_VALUE_H
#define SQLPP_TIME_POINT_PARAMETER_TYPE_H #define SQLPP_TIME_POINT_PARAMETER_VALUE_H
#include <sqlpp11/data_types/parameter_value.h> #include <sqlpp11/data_types/parameter_value.h>
#include <sqlpp11/data_types/parameter_value_base.h> #include <sqlpp11/data_types/parameter_value_base.h>
@ -37,9 +37,9 @@
namespace sqlpp namespace sqlpp
{ {
template <> template <>
struct parameter_value_t<time_point> : public base_parameter_value<time_point> struct parameter_value_t<time_point> : public parameter_value_base<time_point>
{ {
using base = base_parameter_value<time_point>; using base = parameter_value_base<time_point>;
using base::base; using base::base;
using base::operator=; using base::operator=;