blob: b4fe368c391f8305f926095f3c0a34e319d3e601 (
plain) (
blame)
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vector>
#include <vespa/messagebus/common.h>
namespace mbus {
class SlobrokState
{
public:
using TYPE = std::vector<std::pair<string, uint32_t> >;
using ITR = TYPE::const_iterator;
private:
TYPE _data;
public:
SlobrokState();
SlobrokState &add(const string &pattern, uint32_t cnt = 1);
ITR begin() const;
ITR end() const;
};
} // namespace mbus
|