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