mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-05 12:40:40 -06:00
Cleaned up a bunch of unused expression templates
This commit is contained in:
@@ -283,135 +283,6 @@ namespace sqlpp
|
||||
std::tuple<Rhs...> _rhs;
|
||||
};
|
||||
|
||||
template<typename F, typename... Rhs>
|
||||
struct nary_function_t: public F::_value_type::template operators<nary_function_t<F, Rhs...>>
|
||||
{
|
||||
using _value_type = typename F::_value_type;
|
||||
|
||||
nary_function_t(Rhs&&... r):
|
||||
_rhs(std::move(r)...)
|
||||
{}
|
||||
|
||||
nary_function_t(const Rhs&... r):
|
||||
_rhs(r...)
|
||||
{}
|
||||
|
||||
nary_function_t(const nary_function_t&) = default;
|
||||
nary_function_t(nary_function_t&&) = default;
|
||||
nary_function_t& operator=(const nary_function_t&) = default;
|
||||
nary_function_t& operator=(nary_function_t&&) = default;
|
||||
~nary_function_t() = default;
|
||||
|
||||
template<typename Db>
|
||||
void serialize(std::ostream& os, Db& db) const
|
||||
{
|
||||
os << F::_name;
|
||||
os << "(";
|
||||
detail::serialize_tuple(os, db, _rhs, ',');
|
||||
os << ")";
|
||||
}
|
||||
|
||||
private:
|
||||
std::tuple<Rhs...> _rhs;
|
||||
};
|
||||
|
||||
template<typename F, typename Rhs>
|
||||
struct unary_function_t: public F::_value_type::template operators<unary_function_t<F, Rhs>>
|
||||
{
|
||||
using _value_type = typename F::_value_type;
|
||||
|
||||
unary_function_t(Rhs&& r):
|
||||
_rhs(std::move(r))
|
||||
{}
|
||||
|
||||
unary_function_t(const Rhs& r):
|
||||
_rhs(r)
|
||||
{}
|
||||
|
||||
unary_function_t(const unary_function_t&) = default;
|
||||
unary_function_t(unary_function_t&&) = default;
|
||||
unary_function_t& operator=(const unary_function_t&) = default;
|
||||
unary_function_t& operator=(unary_function_t&&) = default;
|
||||
~unary_function_t() = default;
|
||||
|
||||
template<typename Db>
|
||||
void serialize(std::ostream& os, Db& db) const
|
||||
{
|
||||
os << F::_name;
|
||||
os << "(";
|
||||
_rhs.serialize(os, db);
|
||||
os << ")";
|
||||
}
|
||||
|
||||
private:
|
||||
Rhs _rhs;
|
||||
};
|
||||
|
||||
template<typename F, typename... Rhs>
|
||||
struct named_nary_function_t: public F::_value_type::template operators<named_nary_function_t<F, Rhs...>>
|
||||
{
|
||||
using _value_type = typename F::_value_type;
|
||||
using _name_t = typename F::_name_t;
|
||||
|
||||
named_nary_function_t(Rhs&&... r):
|
||||
_rhs(std::move(r)...)
|
||||
{}
|
||||
|
||||
named_nary_function_t(const Rhs&... r):
|
||||
_rhs(r...)
|
||||
{}
|
||||
|
||||
named_nary_function_t(const named_nary_function_t&) = default;
|
||||
named_nary_function_t(named_nary_function_t&&) = default;
|
||||
named_nary_function_t& operator=(const named_nary_function_t&) = default;
|
||||
named_nary_function_t& operator=(named_nary_function_t&&) = default;
|
||||
~named_nary_function_t() = default;
|
||||
|
||||
template<typename Db>
|
||||
void serialize(std::ostream& os, Db& db) const
|
||||
{
|
||||
os << F::_name_t::_get_name();
|
||||
os << "(";
|
||||
detail::serialize_tuple(os, db, _rhs, ',');
|
||||
os << ")";
|
||||
}
|
||||
|
||||
private:
|
||||
std::tuple<Rhs...> _rhs;
|
||||
};
|
||||
|
||||
template<typename F, typename Rhs>
|
||||
struct named_unary_function_t: public F::_value_type::template operators<named_unary_function_t<F, Rhs>>
|
||||
{
|
||||
using _value_type = typename F::_value_type;
|
||||
using _name_t = typename F::_name_t;
|
||||
|
||||
named_unary_function_t(Rhs&& r):
|
||||
_rhs(std::move(r))
|
||||
{}
|
||||
|
||||
named_unary_function_t(const Rhs& r):
|
||||
_rhs(r)
|
||||
{}
|
||||
|
||||
named_unary_function_t(const named_unary_function_t&) = default;
|
||||
named_unary_function_t(named_unary_function_t&&) = default;
|
||||
named_unary_function_t& operator=(const named_unary_function_t&) = default;
|
||||
named_unary_function_t& operator=(named_unary_function_t&&) = default;
|
||||
~named_unary_function_t() = default;
|
||||
|
||||
template<typename Db>
|
||||
void serialize(std::ostream& os, Db& db) const
|
||||
{
|
||||
os << F::_name_t::_get_name();
|
||||
os << "(";
|
||||
_rhs.serialize(os, db);
|
||||
os << ")";
|
||||
}
|
||||
|
||||
private:
|
||||
Rhs _rhs;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,8 +35,6 @@ namespace sqlpp
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
struct text;
|
||||
|
||||
template<typename Operand, typename Pattern>
|
||||
struct like_t: public Operand::_value_type::template operators<like_t<Operand, Pattern>>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user