ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ACE_Hashable Class Referenceabstract

ACE_Hashable. More...

#include <Hashable.h>

Inheritance diagram for ACE_Hashable:
Inheritance graph
[legend]

Public Member Functions

virtual ~ACE_Hashable ()=default
 Destructor.
 
virtual unsigned long hash () const
 

Protected Member Functions

 ACE_Hashable ()=default
 Protected constructor.
 
virtual unsigned long hash_i () const =0
 

Protected Attributes

unsigned long hash_value_ {}
 Pre-computed hash-value.
 

Detailed Description

ACE_Hashable.

Constructor & Destructor Documentation

◆ ~ACE_Hashable()

virtual ACE_Hashable::~ACE_Hashable ( )
virtualdefault

Destructor.

◆ ACE_Hashable()

ACE_Hashable::ACE_Hashable ( )
protecteddefault

Protected constructor.

Member Function Documentation

◆ hash()

unsigned long ACE_Hashable::hash ( ) const
virtual

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

◆ hash_i()

virtual unsigned long ACE_Hashable::hash_i ( ) const
protectedpure virtual

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

Implemented in ACE_Refcounted_Hash_Recyclable< T >.

Member Data Documentation

◆ hash_value_

unsigned long ACE_Hashable::hash_value_ {}
mutableprotected

Pre-computed hash-value.


The documentation for this class was generated from the following files: