lib/misc/pwentry_table.h
author "Tomas Zeman <tzeman@volny.cz>"
Sun, 20 Jan 2008 00:22:25 +0100
changeset 3 3d1d327cfa68
parent 0 6f7a81934006
permissions -rw-r--r--
vmailmgr-0.97

#ifndef VMAILMGR__PWENTRY_TABLE__H__
#define VMAILMGR__PWENTRY_TABLE__H__

#include "misc/pwentry.h"

#if 0

#include "misc/hash_table.h"
#include "misc/crc_hash.h"

class pwentry_table : public hash_table<pwentry*,hash_ptr_node<pwentry>,crc_hash>
{
  bool valid;
public:
  pwentry_table();
  ~pwentry_table();
  bool operator!() const
    {
      return !valid;
    }
};

#else

class pwentry_table
{
public:
  bool operator!() const { return false; }
  pwentry* operator[](const mystring&) const;
};

#endif

#endif