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
set(CMAKE_SYSTEM_NAME Linux) | |
set(CMAKE_SYSTEM_PROCESSOR aarch64) | |
set(TOOLS /opt/toolchains/aarch64-rpi3-linux-gnu) | |
set(CMAKE_C_COMPILER ${TOOLS}/bin/aarch64-rpi3-linux-gnu-gcc) | |
set(CMAKE_CXX_COMPILER ${TOOLS}/bin/aarch64-rpi3-linux-gnu-g++) | |
set(CMAKE_SYSROOT ${TOOLS}/aarch64-rpi3-linux-gnu/sysroot) | |
set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) | |
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
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
template <class T, class M> M GetFieldType(M T::*); | |
template <typename T> | |
void GenerateTest(DataType::Processed container, | |
const std::string &container_name, T field, | |
const std::string &field_name) { | |
std::set<decltype(GetFieldType(field))> values; | |
for (const auto &data_type : container) { | |
values.emplace(data_type.second.*field); | |
} |
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
#include <condition_variable> | |
#include <mutex> | |
#include <thread> | |
#include <queue> | |
#include <iostream> | |
#include <random> | |
#include <ctime> | |
#include <unistd.h> | |
template<typename T> |
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
pkgname="db-converter" | |
pkgver="0.4" | |
pkgrel="2" | |
pkgdesc="Game archive packer/unpacker for the S.T.A.L.K.E.R. game series" | |
arch=('x86_64') | |
url="https://github.com/Masterkatze/db-converter" | |
license=('unknown') | |
source=('git+https://github.com/Masterkatze/db-converter.git') | |
md5sums=('SKIP') | |
depends=('boost' 'spdlog' 'gtest') |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
int main() | |
{ | |
// s - subject list, t - target list | |
// s - data model, t - runtime model | |