Blender  V2.93
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 836 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 866 of file BLI_set.hh.

◆ add() [2/2]

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

Definition at line 870 of file BLI_set.hh.

◆ add_multiple()

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

Definition at line 875 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 857 of file BLI_set.hh.

◆ add_new() [2/2]

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

Definition at line 861 of file BLI_set.hh.

◆ begin()

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

Definition at line 902 of file BLI_set.hh.

◆ clear()

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

Definition at line 897 of file BLI_set.hh.

◆ contains()

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

Definition at line 882 of file BLI_set.hh.

◆ end()

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

Definition at line 907 of file BLI_set.hh.

◆ is_empty()

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

Definition at line 847 of file BLI_set.hh.

◆ remove()

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

Definition at line 887 of file BLI_set.hh.

◆ remove_contained()

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

Definition at line 892 of file BLI_set.hh.

◆ reserve()

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

Definition at line 852 of file BLI_set.hh.

◆ size()

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

Definition at line 842 of file BLI_set.hh.


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