-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 277e0851c12596eb09de77b465e608ec85359c27 Author: zekses <enmarantispam@gmail.com> Date: Sun Nov 11 04:55:33 2018 +0300 server load - ok commit 55e6313 Author: zekses <enmarantispam@gmail.com> Date: Sun Nov 11 02:12:44 2018 +0300 somewhat tolerable commit 0f79f91 Author: zekses <enmarantispam@gmail.com> Date: Sun Nov 11 01:34:36 2018 +0300 complete bullshit commit 7dfc628 Author: zekses <enmarantispam@gmail.com> Date: Sun Nov 11 01:01:04 2018 +0300 hm commit 29f1be8 Author: zekses <enmarantispam@gmail.com> Date: Sat Nov 10 23:56:32 2018 +0300 managed to get the bastard to compile# Please enter the commit message for your changes. Lines starting commit 6b7f315 Author: zekses <enmarantispam@gmail.com> Date: Sat Nov 10 22:29:50 2018 +0300 rip msvc commit 85d5e0c Author: zekses <enmarantispam@gmail.com> Date: Thu Nov 8 22:05:41 2018 +0300 hm hm commit 15ccb97 Author: zekses <enmarantispam@gmail.com> Date: Thu Nov 8 21:01:13 2018 +0300 mhmm commit a3f4eb7 Author: zekses <enmarantispam@gmail.com> Date: Thu Nov 8 19:33:46 2018 +0300 testing commit 799c426 Author: zekses <enmarantispam@gmail.com> Date: Thu Nov 8 17:20:32 2018 +0300 me stupid
- Loading branch information
Showing
18 changed files
with
20,450 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#pragma once | ||
#include <QSharedPointer> | ||
#include <QVector> | ||
#include <QSet> | ||
#include <QList> | ||
#include <array> | ||
template <typename T> | ||
struct is_shared_ptr { | ||
static const bool value = false; | ||
}; | ||
|
||
template <typename Key> | ||
struct is_shared_ptr<QSharedPointer<Key> > { | ||
static const bool value = true; | ||
}; | ||
|
||
template <typename T> | ||
struct is_hash { | ||
static const bool value = false; | ||
}; | ||
|
||
template <typename Key,typename Value> | ||
struct is_hash<QHash<Key,Value> > { | ||
static const bool value = true; | ||
}; | ||
|
||
template <typename T> | ||
struct is_vector{ | ||
static const bool value = false; | ||
}; | ||
|
||
template <typename Key> | ||
struct is_vector<QVector<Key> > { | ||
static const bool value = true; | ||
}; | ||
template <typename Key> | ||
struct is_vector<QList<Key> > { | ||
static const bool value = true; | ||
}; | ||
|
||
namespace detail{ | ||
template<class> struct sfinae_true : std::true_type{}; | ||
|
||
template<class T, class A0> | ||
static auto test_serialize(int) | ||
-> sfinae_true<decltype(std::declval<T>().Serialize(std::declval<A0>()))>; | ||
template<class, class A0> | ||
static auto test_serialize(long) -> std::false_type; | ||
} // detail:: | ||
|
||
template<class T, class Arg> | ||
struct has_serialize: decltype(detail::test_serialize<T, Arg>(0)){}; | ||
|
||
template <typename T> | ||
constexpr bool is_serializable_pointer (){ | ||
if constexpr(!is_shared_ptr<T>::value) | ||
return false; | ||
|
||
return has_serialize<typename T::value_type, QDataStream>(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
#include <QVector> | ||
#include <QList> | ||
#include <QHash> | ||
#include <QFile> | ||
#include <QDataStream> | ||
|
||
#include "include/core/section.h" | ||
|
||
namespace thread_boost{ | ||
void LoadFicWeightCalcData(QString storage, QVector<core::FicWeightPtr>& fics); | ||
void LoadAuthorsData(QString storage,QList<core::AuthorPtr> &authors); | ||
void LoadFavouritesData(QString storage, QHash<int, QSet<int>>& favourites); | ||
void LoadGenreDataForFavLists(QString storage, QHash<int, std::array<double, 22> >& genreData); | ||
void LoadFandomDataForFavLists(QString storage, QHash<int, core::AuthorFavFandomStatsPtr>& fandomLists); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
#include <QVector> | ||
#include <QList> | ||
#include <QHash> | ||
#include <QFile> | ||
#include <QDataStream> | ||
#include <array> | ||
#include "include/core/section.h" | ||
|
||
namespace thread_boost{ | ||
void SaveFicWeightCalcData(QString storageFolder,QVector<core::FicWeightPtr>& fics); | ||
void SaveAuthorsData(QString storageFolder,QList<core::AuthorPtr>& authors); | ||
void SaveFavouritesData(QString storageFolder, QHash<int, QSet<int>>& favourites); | ||
void SaveGenreDataForFavLists(QString storageFolder, QHash<int, std::array<double, 22> > &genreData); | ||
void SaveFandomDataForFavLists(QString storageFolder, QHash<int, core::AuthorFavFandomStatsPtr>& fandomLists); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.