Blender  V3.3
Public Member Functions | List of all members
blender::StdUnorderedSetWrapper< Key > Class Template Reference

#include <BLI_set.hh>

Public Member Functions

int64_t size () const
 
bool is_empty () const
 
void reserve (int64_t n)
 
void add_new (const Key &key)
 
void add_new (Key &&key)
 
bool add (const Key &key)
 
bool add (Key &&key)
 
void add_multiple (Span< Key > keys)
 
bool contains (const Key &key) const
 
bool remove (const Key &key)
 
void remove_contained (const Key &key)
 
void clear ()
 
SetType::iterator begin () const
 
SetType::iterator end () const
 

Detailed Description

template<typename Key>
class blender::StdUnorderedSetWrapper< Key >

A wrapper for std::unordered_set with the API of blender::Set. This can be used for benchmarking.

Definition at line 849 of file BLI_set.hh.

Member Function Documentation

◆ add() [1/2]

template<typename Key >
bool blender::StdUnorderedSetWrapper< Key >::add ( const Key key)
inline

Definition at line 879 of file BLI_set.hh.

◆ add() [2/2]

template<typename Key >
bool blender::StdUnorderedSetWrapper< Key >::add ( Key &&  key)
inline

Definition at line 883 of file BLI_set.hh.

◆ add_multiple()

template<typename Key >
void blender::StdUnorderedSetWrapper< Key >::add_multiple ( Span< Key keys)
inline

Definition at line 888 of file BLI_set.hh.

◆ add_new() [1/2]

template<typename Key >
void blender::StdUnorderedSetWrapper< Key >::add_new ( const Key key)
inline

Definition at line 870 of file BLI_set.hh.

◆ add_new() [2/2]

template<typename Key >
void blender::StdUnorderedSetWrapper< Key >::add_new ( Key &&  key)
inline

Definition at line 874 of file BLI_set.hh.

◆ begin()

template<typename Key >
SetType::iterator blender::StdUnorderedSetWrapper< Key >::begin ( ) const
inline

Definition at line 915 of file BLI_set.hh.

◆ clear()

template<typename Key >
void blender::StdUnorderedSetWrapper< Key >::clear ( )
inline

Definition at line 910 of file BLI_set.hh.

◆ contains()

template<typename Key >
bool blender::StdUnorderedSetWrapper< Key >::contains ( const Key key) const
inline

Definition at line 895 of file BLI_set.hh.

◆ end()

template<typename Key >
SetType::iterator blender::StdUnorderedSetWrapper< Key >::end ( ) const
inline

Definition at line 920 of file BLI_set.hh.

◆ is_empty()

template<typename Key >
bool blender::StdUnorderedSetWrapper< Key >::is_empty ( ) const
inline

Definition at line 860 of file BLI_set.hh.

◆ remove()

template<typename Key >
bool blender::StdUnorderedSetWrapper< Key >::remove ( const Key key)
inline

Definition at line 900 of file BLI_set.hh.

◆ remove_contained()

template<typename Key >
void blender::StdUnorderedSetWrapper< Key >::remove_contained ( const Key key)
inline

Definition at line 905 of file BLI_set.hh.

◆ reserve()

template<typename Key >
void blender::StdUnorderedSetWrapper< Key >::reserve ( int64_t  n)
inline

Definition at line 865 of file BLI_set.hh.

◆ size()

template<typename Key >
int64_t blender::StdUnorderedSetWrapper< Key >::size ( ) const
inline

Definition at line 855 of file BLI_set.hh.


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