00001 /* hashKeyStack.cc 00002 */ 00003 #include "osl/hash/hashKeyStack.h" 00004 #include <iostream> 00005 00006 osl::hash:: 00007 HashKeyStack::HashKeyStack(size_t capacity) 00008 { 00009 data.reserve(capacity); 00010 } 00011 00012 osl::hash:: 00013 HashKeyStack::~HashKeyStack() 00014 { 00015 } 00016 00017 void osl::hash:: 00018 HashKeyStack::push(const HashKey& key) 00019 { 00020 data.push_back(key); 00021 } 00022 00023 void osl::hash:: 00024 HashKeyStack::dump() const 00025 { 00026 #ifndef MINIMAL 00027 for (auto& key: data) { 00028 std::cerr << key << std::endl; 00029 } 00030 #endif 00031 } 00032 00033 bool osl::hash::operator==(const HashKeyStack& l, const HashKeyStack& r) 00034 { 00035 return l.data == r.data; 00036 } 00037 00038 // ;;; Local Variables: 00039 // ;;; mode:c++ 00040 // ;;; c-basic-offset:2 00041 // ;;; End: