My Project
std
osl
hash
hashKeyStack.cc
Go to the documentation of this file.
1
/* hashKeyStack.cc
2
*/
3
#include "
osl/hash/hashKeyStack.h
"
4
#include <iostream>
5
6
osl::hash::
7
HashKeyStack::HashKeyStack
(
size_t
capacity)
8
{
9
data.reserve(capacity);
10
}
11
12
osl::hash::
13
HashKeyStack::~HashKeyStack
()
14
{
15
}
16
17
void
osl::hash::
18
HashKeyStack::push
(
const
HashKey
& key)
19
{
20
data.push_back(key);
21
}
22
23
void
osl::hash::
24
HashKeyStack::dump
()
const
25
{
26
#ifndef MINIMAL
27
for
(
auto
& key: data) {
28
std::cerr << key << std::endl;
29
}
30
#endif
31
}
32
33
namespace
osl
{
34
namespace
hash {
35
36
bool
operator==
(
const
HashKeyStack
& l,
const
HashKeyStack
& r)
37
{
38
return
l.
data
== r.
data
;
39
}
40
41
}
// namespace hash
42
}
// namespace osl
43
44
// ;;; Local Variables:
45
// ;;; mode:c++
46
// ;;; c-basic-offset:2
47
// ;;; End:
osl::hash::HashKeyStack
Definition
hashKeyStack.h:12
osl::hash::HashKeyStack::data
vector_t data
Definition
hashKeyStack.h:14
osl::hash::HashKeyStack::dump
void dump() const
Definition
hashKeyStack.cc:24
osl::hash::HashKeyStack::push
void push(const HashKey &)
Definition
hashKeyStack.cc:18
osl::hash::HashKeyStack::~HashKeyStack
~HashKeyStack()
Definition
hashKeyStack.cc:13
osl::hash::HashKeyStack::HashKeyStack
HashKeyStack(size_t capacity=0)
Definition
hashKeyStack.cc:7
osl::hash::HashKey
Definition
hashKey.h:153
hashKeyStack.h
osl::hash::operator==
bool operator==(const HashKey128 &l, const HashKey128 &r)
Definition
hashKey.h:129
osl
Definition
additionalEffect.h:6
Generated by
1.9.8