All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hashKeyStack.cc
Go to the documentation of this file.
1 /* hashKeyStack.cc
2  */
4 #include <boost/foreach.hpp>
5 #include <iostream>
6 
8 HashKeyStack::HashKeyStack(size_t capacity)
9 {
10  data.reserve(capacity);
11 }
12 
15 {
16 }
17 
18 void osl::hash::
20 {
21  data.push_back(key);
22 }
23 
24 void osl::hash::
26 {
27 #ifndef MINIMAL
28  BOOST_FOREACH(const HashKey& key, data) {
29  std::cerr << key << std::endl;
30  }
31 #endif
32 }
33 
34 bool osl::hash::operator==(const HashKeyStack& l, const HashKeyStack& r)
35 {
36  return l.data == r.data;
37 }
38 
39 // ;;; Local Variables:
40 // ;;; mode:c++
41 // ;;; c-basic-offset:2
42 // ;;; End: