My Project
hashKeyStack.cc
Go to the documentation of this file.
1 /* hashKeyStack.cc
2  */
4 #include <iostream>
5 
7 HashKeyStack::HashKeyStack(size_t capacity)
8 {
9  data.reserve(capacity);
10 }
11 
14 {
15 }
16 
18 HashKeyStack::push(const HashKey& key)
19 {
20  data.push_back(key);
21 }
22 
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::dump
void dump() const
Definition: hashKeyStack.cc:24
osl::hash::HashKeyStack::~HashKeyStack
~HashKeyStack()
Definition: hashKeyStack.cc:13
osl::hash::HashKey
Definition: hashKey.h:153
osl::hash::operator==
bool operator==(const HashKey128 &l, const HashKey128 &r)
Definition: hashKey.h:129
osl::hash::HashKeyStack
Definition: hashKeyStack.h:12
hashKeyStack.h
osl::hash::HashKeyStack::HashKeyStack
HashKeyStack(size_t capacity=0)
Definition: hashKeyStack.cc:7
osl::hash::HashKeyStack::push
void push(const HashKey &)
Definition: hashKeyStack.cc:18
osl::hash::HashKeyStack::data
vector_t data
Definition: hashKeyStack.h:14
osl
Definition: additionalEffect.h:6