![]() |
LeechCraft
0.6.70-6645-gcd10d7e
Modular cross-platform feature rich live environment.
|
Typedefs | |
template<typename Seq , int Idx> | |
using | ValueAtC_t = typename boost::fusion::result_of::value_at_c< Seq, Idx >::type |
template<typename Seq , typename Idx > | |
using | ValueAt_t = typename boost::fusion::result_of::value_at< Seq, Idx >::type |
template<typename T , typename Ret > | |
using | WrapAsFunc_t = typename WrapAsFunc< T, Ret >::type |
using | transform_view = typename boost::mpl::transform< objects_vector, WrapAsFunc< boost::mpl::_1, T >>::type |
Functions | |
template<typename T > | |
QString | MorphFieldNameImpl (const QString &str, int, decltype(&T::FieldNameMorpher)*=nullptr) |
template<typename T > | |
QString | MorphFieldNameImpl (const QString &str, float) |
template<typename T > | |
QString | MorphFieldName (const QString &str) |
template<typename T > | |
std::function< void(T)> | MakeInserter (CachedFieldsData data, QSqlQuery_ptr insertQuery, bool bindPrimaryKey) |
template<typename Seq , int Idx = FindPKey<Seq>::result_type::value> | |
constexpr bool | HasAutogenPKeyImpl (int) |
template<typename > | |
constexpr bool | HasAutogenPKeyImpl (float) |
template<typename Seq > | |
constexpr bool | HasAutogenPKey () |
QString | GetInsertPrefix (InsertAction action) |
template<typename T > | |
std::function< void(T)> | AdaptUpdate (const CachedFieldsData &data) |
template<typename T > | |
std::function< void(T)> | AdaptDelete (CachedFieldsData data) |
template<typename T > | |
QList< T > | PerformSelect (QSqlQuery_ptr q) |
template<typename T > | |
std::function< QList< T >)> | AdaptSelectAll (const CachedFieldsData &data) |
QString | TypeToSql (ExprType type) |
template<typename T > | |
constexpr T | Ctfy (T t) |
template<ExprType T1, ExprType T2> | |
constexpr bool | CheckCompatible () |
constexpr bool | IsRelational (ExprType type) |
template<typename Seq , typename L , typename R > | |
constexpr bool | AreComparableTypesImpl (int, decltype(std::declval< typename L::template ValueType_t< Seq >>()==std::declval< typename R::template ValueType_t< Seq >>())*=nullptr) |
template<typename Seq , typename L , typename R > | |
constexpr bool | AreComparableTypesImpl (float) |
template<typename Seq , typename L , typename R > | |
constexpr bool | AreComparableTypes () |
template<ExprType LType, typename LL , typename LR , ExprType RType, typename RL , typename RR > | |
ExprTree< ExprType::Less, ExprTree< LType, LL, LR >, ExprTree< RType, RL, RR > > | operator< (const ExprTree< LType, LL, LR > &left, const ExprTree< RType, RL, RR > &right) |
template<ExprType LType, typename LL , typename LR , typename R > | |
ExprTree< ExprType::Less, ExprTree< LType, LL, LR >, ExprTree< ExprType::LeafData, R > > | operator< (const ExprTree< LType, LL, LR > &left, const R &right) |
template<ExprType RType, typename RL , typename RR , typename L > | |
ExprTree< ExprType::Less, ExprTree< ExprType::LeafData, L >, ExprTree< RType, RL, RR > > | operator< (const L &left, const ExprTree< RType, RL, RR > &right) |
template<ExprType LType, typename LL , typename LR , ExprType RType, typename RL , typename RR > | |
ExprTree< ExprType::Equal, ExprTree< LType, LL, LR >, ExprTree< RType, RL, RR > > | operator== (const ExprTree< LType, LL, LR > &left, const ExprTree< RType, RL, RR > &right) |
template<ExprType LType, typename LL , typename LR , typename R > | |
ExprTree< ExprType::Equal, ExprTree< LType, LL, LR >, ExprTree< ExprType::LeafData, R > > | operator== (const ExprTree< LType, LL, LR > &left, const R &right) |
template<ExprType RType, typename RL , typename RR , typename L > | |
ExprTree< ExprType::Equal, ExprTree< ExprType::LeafData, L >, ExprTree< RType, RL, RR > > | operator== (const L &left, const ExprTree< RType, RL, RR > &right) |
template<ExprType LType, typename LL , typename LR , ExprType RType, typename RL , typename RR > | |
ExprTree< ExprType::And, ExprTree< LType, LL, LR >, ExprTree< RType, RL, RR > > | operator&& (const ExprTree< LType, LL, LR > &left, const ExprTree< RType, RL, RR > &right) |
template<ExprType LType, typename LL , typename LR , typename R > | |
ExprTree< ExprType::And, ExprTree< LType, LL, LR >, ExprTree< ExprType::LeafData, R > > | operator&& (const ExprTree< LType, LL, LR > &left, const R &right) |
template<ExprType RType, typename RL , typename RR , typename L > | |
ExprTree< ExprType::And, ExprTree< ExprType::LeafData, L >, ExprTree< RType, RL, RR > > | operator&& (const L &left, const ExprTree< RType, RL, RR > &right) |
template<typename Seq , ExprType Type, typename L , typename R > | |
QPair< QString, std::function< void(QSqlQuery_ptr)> > | HandleExprTree (const ExprTree< Type, L, R > &tree) |
template<typename T > | |
SelectByFieldsWrapper< T > | AdaptSelectFields (const CachedFieldsData &data) |
template<typename T > | |
SelectOneByFieldsWrapper< T > | AdaptSelectOneFields (const CachedFieldsData &data) |
template<typename T > | |
DeleteByFieldsWrapper< T > | AdaptDeleteFields (const CachedFieldsData &data) |
template<typename T , typename ObjInfo > | |
std::enable_if< CollectRefs< T >::type_list::size::value==1 >::type | AdaptSelectRef (const CachedFieldsData &data, ObjInfo &info) |
Variables | |
std::function< QList< T >objects_vector)> | SelectByFKeysActor_ |
boost::fusion::result_of::as_vector< transform_view >::type | SingleFKeySelectors_ |
using LeechCraft::Util::oral::detail::transform_view = typedef typename boost::mpl::transform<objects_vector, WrapAsFunc<boost::mpl::_1, T>>::type |
using LeechCraft::Util::oral::detail::ValueAt_t = typedef typename boost::fusion::result_of::value_at<Seq, Idx>::type |
using LeechCraft::Util::oral::detail::ValueAtC_t = typedef typename boost::fusion::result_of::value_at_c<Seq, Idx>::type |
using LeechCraft::Util::oral::detail::WrapAsFunc_t = typedef typename WrapAsFunc<T, Ret>::type |
|
strong |
std::function<void (T)> LeechCraft::Util::oral::detail::AdaptDelete | ( | CachedFieldsData | data | ) |
DeleteByFieldsWrapper<T> LeechCraft::Util::oral::detail::AdaptDeleteFields | ( | const CachedFieldsData & | data | ) |
std::function<QList<T>)> LeechCraft::Util::oral::detail::AdaptSelectAll | ( | const CachedFieldsData & | data | ) |
Definition at line 593 of file oral.h.
References LeechCraft::Util::oral::detail::CachedFieldsData::DB_, LeechCraft::Util::oral::detail::CachedFieldsData::Fields_, and LeechCraft::Util::oral::detail::CachedFieldsData::Table_.
SelectByFieldsWrapper<T> LeechCraft::Util::oral::detail::AdaptSelectFields | ( | const CachedFieldsData & | data | ) |
SelectOneByFieldsWrapper<T> LeechCraft::Util::oral::detail::AdaptSelectOneFields | ( | const CachedFieldsData & | data | ) |
std::enable_if<CollectRefs<T>::type_list::size::value == 1>::type LeechCraft::Util::oral::detail::AdaptSelectRef | ( | const CachedFieldsData & | data, |
ObjInfo & | info | ||
) |
Definition at line 1150 of file oral.h.
References LeechCraft::Util::oral::detail::CachedFieldsData::DB_, LeechCraft::Util::oral::detail::CachedFieldsData::Fields_, and LeechCraft::Util::oral::detail::CachedFieldsData::Table_.
std::function<void (T)> LeechCraft::Util::oral::detail::AdaptUpdate | ( | const CachedFieldsData & | data | ) |
Definition at line 530 of file oral.h.
References LeechCraft::Util::oral::detail::CachedFieldsData::BoundFields_, LeechCraft::Util::oral::detail::CachedFieldsData::DB_, LeechCraft::Util::oral::detail::CachedFieldsData::Fields_, LeechCraft::Util::oral::detail::CachedFieldsData::Table_, and LeechCraft::Util::ZipWith().
constexpr bool LeechCraft::Util::oral::detail::AreComparableTypes | ( | ) |
constexpr bool LeechCraft::Util::oral::detail::AreComparableTypesImpl | ( | int | , |
decltype(std::declval< typename L::template ValueType_t< Seq >>()==std::declval< typename R::template ValueType_t< Seq >>())* | = nullptr |
||
) |
constexpr bool LeechCraft::Util::oral::detail::AreComparableTypesImpl | ( | float | ) |
constexpr bool LeechCraft::Util::oral::detail::CheckCompatible | ( | ) |
constexpr T LeechCraft::Util::oral::detail::Ctfy | ( | T | t | ) |
QString LeechCraft::Util::oral::detail::GetInsertPrefix | ( | InsertAction | action | ) |
Definition at line 439 of file oral.h.
References LeechCraft::Util::oral::Default, LeechCraft::Util::oral::Ignore, and LeechCraft::Util::oral::Replace.
Referenced by LeechCraft::Util::oral::detail::AdaptInsert< T >::operator()().
QPair<QString, std::function<void (QSqlQuery_ptr)> > LeechCraft::Util::oral::detail::HandleExprTree | ( | const ExprTree< Type, L, R > & | tree | ) |
Definition at line 896 of file oral.h.
References LeechCraft::Util::Stlize(), and LeechCraft::Util::oral::detail::ExprTree< Type, L, R >::ToSql().
constexpr bool LeechCraft::Util::oral::detail::HasAutogenPKey | ( | ) |
constexpr bool LeechCraft::Util::oral::detail::HasAutogenPKeyImpl | ( | int | ) |
constexpr bool LeechCraft::Util::oral::detail::HasAutogenPKeyImpl | ( | float | ) |
constexpr bool LeechCraft::Util::oral::detail::IsRelational | ( | ExprType | type | ) |
std::function<void (T)> LeechCraft::Util::oral::detail::MakeInserter | ( | CachedFieldsData | data, |
QSqlQuery_ptr | insertQuery, | ||
bool | bindPrimaryKey | ||
) |
Definition at line 383 of file oral.h.
References LeechCraft::Util::oral::detail::CachedFieldsData::BoundFields_, LeechCraft::Util::DBLock::DumpError(), and LeechCraft::Util::oral::QueryException::QueryException().
QString LeechCraft::Util::oral::detail::MorphFieldName | ( | const QString & | str | ) |
QString LeechCraft::Util::oral::detail::MorphFieldNameImpl | ( | const QString & | str, |
int | , | ||
decltype &::FieldNameMorpher * | = nullptr |
||
) |
QString LeechCraft::Util::oral::detail::MorphFieldNameImpl | ( | const QString & | str, |
float | |||
) |
ExprTree<ExprType::And, ExprTree<LType, LL, LR>, ExprTree<ExprType::LeafData, R> > LeechCraft::Util::oral::detail::operator&& | ( | const ExprTree< LType, LL, LR > & | left, |
const R & | right | ||
) |
ExprTree<ExprType::And, ExprTree<ExprType::LeafData, L>, ExprTree<RType, RL, RR> > LeechCraft::Util::oral::detail::operator&& | ( | const L & | left, |
const ExprTree< RType, RL, RR > & | right | ||
) |
ExprTree<ExprType::Less, ExprTree<ExprType::LeafData, L>, ExprTree<RType, RL, RR> > LeechCraft::Util::oral::detail::operator< | ( | const L & | left, |
const ExprTree< RType, RL, RR > & | right | ||
) |
ExprTree<ExprType::Less, ExprTree<LType, LL, LR>, ExprTree<ExprType::LeafData, R> > LeechCraft::Util::oral::detail::operator< | ( | const ExprTree< LType, LL, LR > & | left, |
const R & | right | ||
) |
ExprTree<ExprType::Equal, ExprTree<LType, LL, LR>, ExprTree<RType, RL, RR> > LeechCraft::Util::oral::detail::operator== | ( | const ExprTree< LType, LL, LR > & | left, |
const ExprTree< RType, RL, RR > & | right | ||
) |
ExprTree<ExprType::Equal, ExprTree<LType, LL, LR>, ExprTree<ExprType::LeafData, R> > LeechCraft::Util::oral::detail::operator== | ( | const ExprTree< LType, LL, LR > & | left, |
const R & | right | ||
) |
ExprTree<ExprType::Equal, ExprTree<ExprType::LeafData, L>, ExprTree<RType, RL, RR> > LeechCraft::Util::oral::detail::operator== | ( | const L & | left, |
const ExprTree< RType, RL, RR > & | right | ||
) |
QList<T> LeechCraft::Util::oral::detail::PerformSelect | ( | QSqlQuery_ptr | q | ) |
QString LeechCraft::Util::oral::detail::TypeToSql | ( | ExprType | type | ) |
Definition at line 657 of file oral.h.
Referenced by LeechCraft::Util::oral::detail::ExprTree< Type, L, R >::ToSql().
std::function<QList<T>objects_vector)> LeechCraft::Util::oral::detail::SelectByFKeysActor_ |
boost::fusion::result_of::as_vector<transform_view>::type LeechCraft::Util::oral::detail::SingleFKeySelectors_ |