equal
deleted
inserted
replaced
|
1 #ifndef VMAILMGR__PWENTRY_TABLE__H__ |
|
2 #define VMAILMGR__PWENTRY_TABLE__H__ |
|
3 |
|
4 #include "misc/pwentry.h" |
|
5 |
|
6 #if 0 |
|
7 |
|
8 #include "misc/hash_table.h" |
|
9 #include "misc/crc_hash.h" |
|
10 |
|
11 class pwentry_table : public hash_table<pwentry*,hash_ptr_node<pwentry>,crc_hash> |
|
12 { |
|
13 bool valid; |
|
14 public: |
|
15 pwentry_table(); |
|
16 ~pwentry_table(); |
|
17 bool operator!() const |
|
18 { |
|
19 return !valid; |
|
20 } |
|
21 }; |
|
22 |
|
23 #else |
|
24 |
|
25 class pwentry_table |
|
26 { |
|
27 public: |
|
28 bool operator!() const { return false; } |
|
29 pwentry* operator[](const mystring&) const; |
|
30 }; |
|
31 |
|
32 #endif |
|
33 |
|
34 #endif |