NAME

ACE_Hash_Map_Manager_Ex_Adapter - Defines a map implementation.

SYNOPSIS

#include <ace/Map_T.h>

template<class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS, class KEY_GENERATOR> class ACE_Hash_Map_Manager_Ex_Adapter : public ACE_Map<KEY, VALUE> { public: typedef ACE_Hash_Map_Manager_Ex_Iterator_Adapter<ACE_Reference_Pair<const KEY, VALUE>, KEY, VALUE, HASH_KEY, COMPARE_KEYS> iterator_impl; typedef ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<ACE_Reference_Pair<const KEY, VALUE>, KEY, VALUE, HASH_KEY, COMPARE_KEYS> reverse_iterator_impl; typedef ACE_Hash_Map_Manager_Ex<KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex> implementation; ACE_Hash_Map_Manager_Ex_Adapter (ACE_Allocator *alloc = 0); ACE_Hash_Map_Manager_Ex_Adapter ( size_t size, ACE_Allocator *alloc = 0 ); virtual ~ACE_Hash_Map_Manager_Ex_Adapter (void); virtual int open ( size_t length = ACE_DEFAULT_MAP_SIZE, ACE_Allocator *alloc = 0 ); virtual int close (void); virtual int bind (const KEY &key, const VALUE &value); virtual int bind_modify_key (const VALUE &value, KEY &key); virtual int bind_create_key (const VALUE &value, KEY &key); virtual int bind_create_key (const VALUE &value); virtual int recover_key ( const KEY &modified_key, KEY &original_key ); virtual int rebind (const KEY &key, const VALUE &value); virtual int rebind ( const KEY &key, const VALUE &value, VALUE &old_value ); virtual int rebind ( const KEY &key, const VALUE &value, KEY &old_key, VALUE &old_value ); virtual int trybind (const KEY &key, VALUE &value); virtual int find (const KEY &key, VALUE &value); virtual int find (const KEY &key); virtual int unbind (const KEY &key); virtual int unbind (const KEY &key, VALUE &value); virtual size_t current_size (void) const; virtual size_t total_size (void) const; virtual void dump (void) const; ACE_Hash_Map_Manager_Ex<KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex> &impl ( void ); KEY_GENERATOR &key_generator (void); protected: ACE_Hash_Map_Manager_Ex<KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex> implementation_; KEY_GENERATOR key_generator_; virtual ACE_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *begin_impl ( void ); virtual ACE_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *end_impl ( void ); virtual ACE_Reverse_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *rbegin_impl ( void ); virtual ACE_Reverse_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *rend_impl ( void ); private: inline ACE_UNIMPLEMENTED_FUNC ( void operator= (const ACE_Hash_Map_Manager_Ex_Adapter<KEY, VALUE, HASH_KEY, COMPARE_KEYS, KEY_GENERATOR> &) ); };

DESCRIPTION

Implementation to be provided by ACE_Hash_Map_Manager_Ex.

Traits.

    typedef ACE_Hash_Map_Manager_Ex_Iterator_Adapter<ACE_Reference_Pair<const KEY, VALUE>, KEY, VALUE, HASH_KEY, COMPARE_KEYS>  iterator_impl;
    

    typedef ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<ACE_Reference_Pair<const KEY, VALUE>, KEY, VALUE, HASH_KEY, COMPARE_KEYS>  reverse_iterator_impl;
    

    typedef ACE_Hash_Map_Manager_Ex<KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex>  implementation;
    

Initialization and termination methods.

ACE_Hash_Map_Manager_Ex_Adapter (ACE_Allocator *alloc = 0);

ACE_Hash_Map_Manager_Ex_Adapter (
    size_t size,
    ACE_Allocator *alloc = 0
    );

virtual ~ACE_Hash_Map_Manager_Ex_Adapter (void);

virtual int open (
    size_t length = ACE_DEFAULT_MAP_SIZE,
    ACE_Allocator *alloc = 0
    );

virtual int close (void);

virtual int bind (const KEY &key, const VALUE &value);

virtual int bind_modify_key (const VALUE &value, KEY &key);

virtual int bind_create_key (const VALUE &value, KEY &key);

virtual int bind_create_key (const VALUE &value);

virtual int recover_key (const KEY &modified_key, KEY &original_key);

virtual int rebind (const KEY &key, const VALUE &value);

virtual int rebind (
    const KEY &key,
    const VALUE &value,
    VALUE &old_value
    );

virtual int rebind (
    const KEY &key,
    const VALUE &value,
    KEY &old_key,
    VALUE &old_value
    );

virtual int trybind (const KEY &key, VALUE &value);

virtual int find (const KEY &key, VALUE &value);

virtual int find (const KEY &key);

virtual int unbind (const KEY &key);

virtual int unbind (const KEY &key, VALUE &value);

virtual size_t current_size (void) const;

virtual size_t total_size (void) const;

virtual void dump (void) const;

ACE_Hash_Map_Manager_Ex<KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex> &impl (
    void
    );

KEY_GENERATOR &key_generator (void);

STL styled iterator factory functions.

virtual ACE_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *begin_impl (
    void
    );

virtual ACE_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *end_impl (
    void
    );

virtual ACE_Reverse_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *rbegin_impl (
    void
    );

virtual ACE_Reverse_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *rend_impl (
    void
    );

Disallow these operations.

inline ACE_UNIMPLEMENTED_FUNC (
    void operator= (const ACE_Hash_Map_Manager_Ex_Adapter<KEY, VALUE, HASH_KEY, COMPARE_KEYS, KEY_GENERATOR> &)
    );

AUTHOR

Irfan Pyarali irfan@cs.wustl.edu

LIBRARY

ace