irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods::lookup_table< ValueType, KeyType, HashType > Class Template Reference

#include <irods_lookup_table.hpp>

Public Types

typedef irods_hash_map::iterator iterator
 
typedef irods_hash_map::const_iterator const_iterator
 

Public Member Functions

 lookup_table ()
 
virtual ~lookup_table ()
 
ValueType & operator[] (KeyType _k)
 
int size () const
 
bool has_entry (KeyType _k) const
 
size_t erase (KeyType _k)
 
void clear ()
 
bool empty () const
 
iterator begin ()
 
iterator end ()
 
iterator cbegin ()
 
iterator cend ()
 
iterator find (KeyType _k)
 
error get (const std::string &_key, ValueType &_val)
 
error set (const std::string &_key, const ValueType &_val)
 
 lookup_table ()
 
 ~lookup_table ()
 

Protected Types

typedef boost::unordered_map< KeyType, ValueType, HashType > irods_hash_map
 

Protected Attributes

irods_hash_map table_
 

Detailed Description

template<typename ValueType, typename KeyType = std::string, typename HashType = irods_string_hash>
class irods::lookup_table< ValueType, KeyType, HashType >

Definition at line 24 of file irods_lookup_table.hpp.

Member Typedef Documentation

◆ const_iterator

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
typedef irods_hash_map::const_iterator irods::lookup_table< ValueType, KeyType, HashType >::const_iterator

Definition at line 32 of file irods_lookup_table.hpp.

◆ irods_hash_map

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
typedef boost::unordered_map< KeyType, ValueType, HashType > irods::lookup_table< ValueType, KeyType, HashType >::irods_hash_map
protected

Definition at line 26 of file irods_lookup_table.hpp.

◆ iterator

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
typedef irods_hash_map::iterator irods::lookup_table< ValueType, KeyType, HashType >::iterator

Definition at line 31 of file irods_lookup_table.hpp.

Constructor & Destructor Documentation

◆ lookup_table() [1/2]

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
irods::lookup_table< ValueType, KeyType, HashType >::lookup_table ( )
inline

Definition at line 33 of file irods_lookup_table.hpp.

◆ ~lookup_table() [1/2]

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
virtual irods::lookup_table< ValueType, KeyType, HashType >::~lookup_table ( )
inlinevirtual

Definition at line 34 of file irods_lookup_table.hpp.

◆ lookup_table() [2/2]

◆ ~lookup_table() [2/2]

Definition at line 307 of file reAction.hpp.

Member Function Documentation

◆ begin()

◆ cbegin()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
iterator irods::lookup_table< ValueType, KeyType, HashType >::cbegin ( )
inline

Definition at line 59 of file irods_lookup_table.hpp.

◆ cend()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
iterator irods::lookup_table< ValueType, KeyType, HashType >::cend ( )
inline

Definition at line 62 of file irods_lookup_table.hpp.

◆ clear()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
void irods::lookup_table< ValueType, KeyType, HashType >::clear ( )
inline

Definition at line 47 of file irods_lookup_table.hpp.

Referenced by irods::resource_manager::init_from_catalog().

◆ empty()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
bool irods::lookup_table< ValueType, KeyType, HashType >::empty ( ) const
inline

◆ end()

◆ erase()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
size_t irods::lookup_table< ValueType, KeyType, HashType >::erase ( KeyType  _k)
inline

Definition at line 44 of file irods_lookup_table.hpp.

Referenced by irods::resource::remove_child().

◆ find()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
iterator irods::lookup_table< ValueType, KeyType, HashType >::find ( KeyType  _k)
inline

Definition at line 65 of file irods_lookup_table.hpp.

Referenced by apiTableLookup(), matchPackInstruct(), and sendApiRequest().

◆ get()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
error irods::lookup_table< ValueType, KeyType, HashType >::get ( const std::string &  _key,
ValueType &  _val 
)
inline

Definition at line 71 of file irods_lookup_table.hpp.

Referenced by add_self_to_hierarchy(), auto_replication_is_enabled(), build_sorted_child_vector(), call_rebalance_on_children(), capture_weight(), compound_file_modified(), compound_file_notify(), compound_file_rebalance(), compound_file_redirect_create(), compound_file_redirect_open(), compound_file_redirect_unlink(), compound_file_resolve_hierarchy(), compound_resource::compound_resource(), compound_start_operation(), create_replication_list(), irods::data_obj_repl_with_retry(), deferred_file_rebalance(), deferred_file_resolve_hierarchy(), deferred_get_resc_for_call(), deferred_redirect_for_operation(), irods::resource_manager::gather_operations_recursive(), get_archive(), get_cache(), get_next_child(), get_next_child_in_hier(), get_next_valid_child_resource(), irods::plugin_base::get_property(), get_selected_hierarchy(), getLocalZone(), impostor_file_resolve_hierarchy(), impostor_file_resolve_hierarchy_create(), impostor_file_resolve_hierarchy_open(), load_balanced_file_rebalance(), load_balanced_file_resolve_hierarchy(), load_balanced_get_resc_for_call(), load_balanced_redirect_for_create_operation(), load_balanced_redirect_for_open_operation(), make_hashed_path(), mock_archive_file_resolve_hierarchy(), mock_archive_file_stage_to_cache(), mock_archive_generate_full_path(), mock_archive_redirect_open(), non_blocking_file_redirect_create(), non_blocking_file_redirect_open(), non_blocking_file_resolve_hierarchy(), non_blocking_generate_full_path(), open_for_prefer_archive_policy(), passthru_file_notify(), passthru_file_rebalance(), passthru_file_resolve_hierarchy(), passthru_get_first_child_resc(), proc_child_list_for_create_policy(), random_file_rebalance(), random_file_resolve_hierarchy(), random_get_resc_for_call(), repl_file_close(), repl_file_create(), repl_file_modified(), repl_file_rebalance(), repl_file_write(), repl_object(), replGetNextRescInHier(), replica_exceeds_resource_free_space(), replicate_create_write_operation(), replUpdateObjectAndOperProperties(), irods::impostor_resource::report_error(), resolve_children(), round_robin_file_modified(), round_robin_file_rebalance(), round_robin_file_resolve_hierarchy(), round_robin_get_resc_for_call(), round_robin_start_operation(), select_child(), irods::server_api_call(), ssl_client_start(), tar_file_extract(), univ_mss_file_chmod(), univ_mss_file_mkdir(), univ_mss_file_rename(), univ_mss_file_resolve_hierarchy(), univ_mss_file_resolve_hierarchy_create(), univ_mss_file_resolve_hierarchy_open(), univ_mss_file_stage_to_cache(), univ_mss_file_stat(), univ_mss_file_sync_to_arch(), univ_mss_file_unlink(), unix_file_rename(), unix_file_resolve_hierarchy(), unix_generate_full_path(), unix_resolve_hierarchy_create(), unix_resolve_hierarchy_open(), update_next_child_resource(), and warn_if_deprecated_context_string_set().

◆ has_entry()

◆ operator[]()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
ValueType& irods::lookup_table< ValueType, KeyType, HashType >::operator[] ( KeyType  _k)
inline

Definition at line 35 of file irods_lookup_table.hpp.

◆ set()

◆ size()

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
int irods::lookup_table< ValueType, KeyType, HashType >::size ( ) const
inline

Member Data Documentation

◆ table_

template<typename ValueType , typename KeyType = std::string, typename HashType = irods_string_hash>
irods_hash_map irods::lookup_table< ValueType, KeyType, HashType >::table_
protected

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