ACE 8.0.5
Loading...
Searching...
No Matches
ACE_Hashable Class Referenceabstract

ACE_Hashable. More...

#include <Hashable.h>

Inheritance diagram for ACE_Hashable:

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

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 >, and ACE_Refcounted_Hash_Recyclable< ACE_PEER_CONNECTOR_ADDR >.

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: