#include "components/segmentation_platform/internal/database/signal_sample_view.h"
#include "base/containers/contains.h"
namespace segmentation_platform {
bool SignalSampleView::Query::IsFeatureMatching(
const SignalDatabase::DbEntry& sample) const { … }
SignalSampleView::Query::Query(proto::SignalType type,
uint64_t metric_hash,
base::Time start,
base::Time end,
const std::vector<int>& enum_ids)
: … { … }
SignalSampleView::Query::~Query() = default;
SignalSampleView::Query::Query(const Query& query) = default;
SignalSampleView::Iterator::Iterator(const SignalSampleView* view,
size_t current)
: … { … }
SignalSampleView::Iterator::~Iterator() = default;
SignalSampleView::Iterator::Iterator(Iterator& other) = default;
SignalSampleView::SignalSampleView(
const std::vector<SignalDatabase::DbEntry>& samples,
const std::optional<Query>& query)
: … { … }
SignalSampleView::~SignalSampleView() = default;
size_t SignalSampleView::FindNext(int index) const { … }
size_t SignalSampleView::FindPrev(int index) const { … }
size_t SignalSampleView::size() const { … }
}