HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_Set< K, H, P > Class Template Reference

#include <GU_Detail.h>

+ Inheritance diagram for UT_Set< K, H, P >:

Public Types

typedef hboost::unordered_set
< K, H, P
Base
 
typedef H Hasher
 
typedef P Equal
 
typedef Base::key_type key_type
 
typedef Base::value_type value_type
 
typedef Base::hasher hasher
 
typedef Base::key_equal key_equal
 
typedef Base::iterator iterator
 
typedef Base::const_iterator const_iterator
 

Public Member Functions

 UT_Set (const Hasher &hf=Hasher(), const Equal &eql=Equal())
 
template<typename InputIt >
 UT_Set (InputIt first, InputIt last)
 
template<typename InputIt >
 UT_Set (InputIt first, InputIt last, const Hasher &hf=Hasher(), const Equal &eql=Equal())
 
 UT_Set (UT_Set const &other)
 
 UT_Set (const K &k, const Hasher &hf=Hasher(), const Equal &eql=Equal())
 
 UT_Set (std::initializer_list< K > init, const Hasher &hf=Hasher(), const Equal &eql=Equal())
 
int64 getMemoryUsage (bool inclusive) const
 
bool contains (const K &key) const
 
bool contains (const UT_Set< K > &src) const
 
UT_Set< K, H, P > & operator|= (const UT_Set< K, H, P > &src)
 Set-wise boolean operations. More...
 
UT_Set< K, H, P > & operator&= (const UT_Set< K, H, P > &src)
 
UT_Set< K, H, P > & operator-= (const UT_Set< K, H, P > &src)
 

Detailed Description

template<typename K, typename H, typename P>
class UT_Set< K, H, P >

Definition at line 48 of file GU_Detail.h.

Member Typedef Documentation

template<typename K, typename H, typename P>
typedef hboost::unordered_set<K, H, P> UT_Set< K, H, P >::Base

Definition at line 61 of file UT_Set.h.

template<typename K, typename H, typename P>
typedef Base::const_iterator UT_Set< K, H, P >::const_iterator

Definition at line 146 of file UT_Set.h.

template<typename K, typename H, typename P>
typedef P UT_Set< K, H, P >::Equal

Definition at line 63 of file UT_Set.h.

template<typename K, typename H, typename P>
typedef H UT_Set< K, H, P >::Hasher

Definition at line 62 of file UT_Set.h.

template<typename K, typename H, typename P>
typedef Base::hasher UT_Set< K, H, P >::hasher

Definition at line 143 of file UT_Set.h.

template<typename K, typename H, typename P>
typedef Base::iterator UT_Set< K, H, P >::iterator

Definition at line 145 of file UT_Set.h.

template<typename K, typename H, typename P>
typedef Base::key_equal UT_Set< K, H, P >::key_equal

Definition at line 144 of file UT_Set.h.

template<typename K, typename H, typename P>
typedef Base::key_type UT_Set< K, H, P >::key_type

Definition at line 141 of file UT_Set.h.

template<typename K, typename H, typename P>
typedef Base::value_type UT_Set< K, H, P >::value_type

Definition at line 142 of file UT_Set.h.

Constructor & Destructor Documentation

template<typename K, typename H, typename P>
UT_Set< K, H, P >::UT_Set ( const Hasher hf = Hasher(),
const Equal eql = Equal() 
)
inlineexplicit

Definition at line 65 of file UT_Set.h.

template<typename K, typename H, typename P>
template<typename InputIt >
UT_Set< K, H, P >::UT_Set ( InputIt  first,
InputIt  last 
)
inline

Definition at line 71 of file UT_Set.h.

template<typename K, typename H, typename P>
template<typename InputIt >
UT_Set< K, H, P >::UT_Set ( InputIt  first,
InputIt  last,
const Hasher hf = Hasher(),
const Equal eql = Equal() 
)
inline

Definition at line 74 of file UT_Set.h.

template<typename K, typename H, typename P>
UT_Set< K, H, P >::UT_Set ( UT_Set< K, H, P > const other)
inline

Definition at line 80 of file UT_Set.h.

template<typename K, typename H, typename P>
UT_Set< K, H, P >::UT_Set ( const K &  k,
const Hasher hf = Hasher(),
const Equal eql = Equal() 
)
inline

Definition at line 84 of file UT_Set.h.

template<typename K, typename H, typename P>
UT_Set< K, H, P >::UT_Set ( std::initializer_list< K >  init,
const Hasher hf = Hasher(),
const Equal eql = Equal() 
)
inline

Constructs a set from an initializer list: UT_Set<int> some_set({5,123,500});

Definition at line 94 of file UT_Set.h.

Member Function Documentation

template<typename K, typename H, typename P>
bool UT_Set< K, H, P >::contains ( const K &  key) const
inline

Determines membership in a set, a bit more semantically readable than count() or find()

Definition at line 113 of file UT_Set.h.

template<typename K, typename H, typename P>
bool UT_Set< K, H, P >::contains ( const UT_Set< K > &  src) const
inline

Definition at line 116 of file UT_Set.h.

template<typename K, typename H, typename P>
int64 UT_Set< K, H, P >::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 104 of file UT_Set.h.

template<typename K, typename H, typename P>
UT_Set<K,H,P>& UT_Set< K, H, P >::operator&= ( const UT_Set< K, H, P > &  src)
inline

Definition at line 127 of file UT_Set.h.

template<typename K, typename H, typename P>
UT_Set<K,H,P>& UT_Set< K, H, P >::operator-= ( const UT_Set< K, H, P > &  src)
inline

Definition at line 134 of file UT_Set.h.

template<typename K, typename H, typename P>
UT_Set<K,H,P>& UT_Set< K, H, P >::operator|= ( const UT_Set< K, H, P > &  src)
inline

Set-wise boolean operations.

Definition at line 123 of file UT_Set.h.


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