X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=libstdc%2B%2B-v3%2Fdoc%2Fhtml%2Fext%2Fpb_ds%2Fcc_hash_max_collision_check_resize_trigger.html;fp=libstdc%2B%2B-v3%2Fdoc%2Fhtml%2Fext%2Fpb_ds%2Fcc_hash_max_collision_check_resize_trigger.html;h=a6b512b0d1630bee267b2c9d08e587c0569822c4;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=0000000000000000000000000000000000000000;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libstdc++-v3/doc/html/ext/pb_ds/cc_hash_max_collision_check_resize_trigger.html b/libstdc++-v3/doc/html/ext/pb_ds/cc_hash_max_collision_check_resize_trigger.html new file mode 100644 index 00000000..a6b512b0 --- /dev/null +++ b/libstdc++-v3/doc/html/ext/pb_ds/cc_hash_max_collision_check_resize_trigger.html @@ -0,0 +1,532 @@ + + + + + + + cc_hash_max_collision_check_resize_trigger + Interface + + + + +
+

cc_hash_max_collision_check_resize_trigger + Interface

+ +

A resize trigger policy based on collision checks. It keeps + the simulated load factor lower than some given load + factor.

+ +

Defined in: hash_policy.hpp

+ +

Template Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterDescriptionDefault Value
+
+bool External_Load_Access 
+
+
+

Specifies whether the load factor can be accessed + externally. The two options have different trade-offs in + terms of flexibility, genericity, and encapsulation.

+
false
+
+typename Size_Type 
+
+
+

Size type.

+
size_t
+ +

Public Types and + Constants

+ +

General Definitions

+ + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDefinitionDescription
+
+size_type
+
+
+
+Size_Type
+
+
+

Size type.

+
+
+external_load_access
+
+
+
+External_Load_Access
+
+
+

Indicates whether loads can be accessed externally

+
+ +

Public Methods

+ +

Constructors, Destructor, and + Related

+ + + + + + + + + + + + + + + + + + + +
MethodDescription
+
+  cc_hash_max_collision_check_resize_trigger
+  (float load = 0.5)
+
+
+

Default constructor, or constructor taking + load, a load factor + which it will attempt to maintain.

+
+
+void
+  swap
+  (cc_hash_max_collision_check_resize_trigger &other)
+
+
+

Swaps content.

+
+ +

Load Access Methods

+ +

These methods are only available if the external access + parameter is set.

+ + + + + + + + + + + + + + + + + + + +
MethodDescription
+
+inline float
+  get_load
+  () const
+
+
+

Returns the current load.

+ +

Calling this method will not compile when External_Load_Access + == false.

+
+
+void 
+  set_load
+  (float load)
+
+
+

Sets the load; does + not resize the container.

+ +

It is the responsibility of the user to pass an + appropriate load to this + function. Calling this method will not compile when + External_Load_Access + == false.

+
+ +

Protected Methods

+ +

Insert Search + Notifications.

+ +

Notifications called during an insert operation.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
+
+inline void
+  notify_insert_search_start
+  ()
+
+
+

Notifies a search started.

+
+
+inline void
+  notify_insert_search_collision
+  ()
+
+
+

Notifies a search encountered a collision.

+
+
+inline void
+  notify_insert_search_end
+  ()
+
+
+

Notifies a search ended.

+
+ +

Find Search + Notifications.

+ +

Notifications called during a find operation.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
+
+inline void
+  notify_find_search_start
+  ()
+
+
+

Notifies a search started.

+
+
+inline void
+  notify_find_search_collision
+  ()
+
+
+

Notifies a search encountered a collision.

+
+
+inline void
+  notify_find_search_end
+  ()
+
+
+

Notifies a search ended.

+
+ +

Erase Search + Notifications.

+ +

Notifications called during an insert operation.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
+
+inline void
+  notify_erase_search_start
+  ()
+
+
+

Notifies a search started.

+
+
+inline void
+  notify_erase_search_collision
+  ()
+
+
+

Notifies a search encountered a collision.

+
+
+inline void
+  notify_erase_search_end
+  ()
+
+
+

Notifies a search ended.

+
+ +

Content Change + Notifications

+ +

Notifications called when the content of the table changes + in a way that can affect the resize policy.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
+
+inline void
+  notify_inserted
+  (size_type num_entries)
+
+
+

Notifies an element was inserted.

+
+
+inline void
+  notify_erased
+  (size_type num_entries)
+
+
+

Notifies an element was erased.

+
+
+void 
+  notify_cleared
+  ()
+
+
+

Notifies the table was cleared.

+
+ +

Size Change + Notifications

+ +

Notifications called when the table changes size.

+ + + + + + + + + + + + + + + + + + + +
MethodDescription
+
+void
+  notify_resized
+  (size_type new_size)
+
+
+

Notifies the table was resized as a result of this + object's signifying that a resize is needed.

+
+
+void
+  notify_externally_resized
+  (size_type new_size)
+
+
+

Notifies the table was resized externally.

+
+ +

Queries

+ +

Called to query whether/how to resize.

+ + + + + + + + + + + + + + + + + + + +
MethodDescription
+
+inline bool 
+  is_resize_needed
+  () const
+
+
+

Queries whether a resize is needed.

+
+
+inline bool
+  is_grow_needed
+  (size_type size, size_type num_entries) const
+
+
+

Queries whether a grow is needed.

+ +

This method is called only if this object indicated is + needed.

+
+
+ +