hashKeyStack.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hashKeyStack.cc
Go to the documentation of this file.
1 /* hashKeyStack.cc
2 */
3 #include "osl/hash/hashKeyStack.h"
4 #include <boost/foreach.hpp>
5 #include <iostream>
6
7 osl::hash::
8 HashKeyStack::HashKeyStack(size_t capacity)
9 {
10 data.reserve(capacity);
11 }
12
13 osl::hash::
14 HashKeyStack::~HashKeyStack()
15 {
16 }
17
18 void osl::hash::
19 HashKeyStack::push(const HashKey& key)
20 {
21 data.push_back(key);
22 }
23
24 void osl::hash::
25 HashKeyStack::dump() const
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: