ACE_Hashable(3)

ACE_Hashable3

Usage

#include <ace/Strategies.h>
class ACE_Hashable
{
  public:
    virtual ~ACE_Hashable (void);
    virtual u_long hash (void) const;
  protected:
    ACE_Hashable (void);
    virtual u_long hash_i (void) const = 0;
    u_long hash_value_;
};

Public members

virtual ~ACE_Hashable (void);

Destructor.

virtual u_long hash (void) const;

Computes and returns hash value. This "caches" the hash value to improve performance.

Protected members

ACE_Hashable (void);

Protected constructor.

virtual u_long hash_i (void) const = 0;

This is the method that actually performs the non-cached hash computation.

u_long hash_value_;

Pre-computed hash-value.

Library

ace

Author

Doug Schmidt

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.