hashKeyStack.cc
Go to the documentation of this file.
/* hashKeyStack.cc
*/
#include "osl/hash/hashKeyStack.h"
#include <iostream>
osl::hash::
HashKeyStack::HashKeyStack(size_t capacity)
{
data.reserve(capacity);
}
osl::hash::
HashKeyStack::~HashKeyStack()
{
}
void osl::hash::
HashKeyStack::push(const HashKey& key)
{
data.push_back(key);
}
void osl::hash::
HashKeyStack::dump() const
{
#ifndef MINIMAL
for (auto& key: data) {
std::cerr << key << std::endl;
}
#endif
}
namespace osl {
namespace hash {
bool operator==(const HashKeyStack& l, const HashKeyStack& r)
{
return l.data == r.data;
}
} // namespace hash
} // namespace osl
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
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
Definition hashKey.h:14
osl::hash::operator==
bool operator==(const HashKey128 &l, const HashKey128 &r)
Definition hashKey.h:129
osl
Definition additionalEffect.h:6