blob: e8b7b636d6b4d6895764c245f5e72f3cb25650e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "indexer/data_header.hpp"
#include "indexer/features_vector.hpp"
#include "defines.hpp"
#include "coding/file_reader.hpp"
#include "coding/file_container.hpp"
#include "std/bind.hpp"
namespace feature
{
template <class ToDo>
void ForEachFromDat(ModelReaderPtr reader, ToDo && toDo)
{
FeaturesVectorTest features((FilesContainerR(reader)));
features.GetVector().ForEach(ref(toDo));
}
template <class ToDo>
void ForEachFromDat(string const & fPath, ToDo && toDo)
{
ForEachFromDat(make_unique<FileReader>(fPath), toDo);
}
}
|