Classes | Public Types | Public Member Functions | Friends

js::HashSet< T, HashPolicy, AllocPolicy > Class Template Reference

#include <jshashtable.h>

Collaboration diagram for js::HashSet< T, HashPolicy, AllocPolicy >:

List of all members.

Classes

struct  SetOps

Public Types

typedef Impl::Ptr Ptr
typedef Impl::AddPtr AddPtr
typedef Impl::Range Range
typedef Impl::Enum Enum

Public Member Functions

 HashSet (AllocPolicy a=AllocPolicy())
bool init (uint32 len=0)
bool initialized () const
Ptr lookup (const Lookup &l) const
void remove (Ptr p)
AddPtr lookupForAdd (const Lookup &l) const
bool add (AddPtr &p, const T &t)
bool relookupOrAdd (AddPtr &p, const Lookup &l, const T &t)
Range all () const
size_t count () const
void clear ()
bool empty () const
unsigned generation () const
bool has (const Lookup &l) const
const T * put (const T &t)
void remove (const Lookup &l)

Friends

class Impl::Enum

template<class T, class HashPolicy, class AllocPolicy>
class js::HashSet< T, HashPolicy, AllocPolicy >


Member Typedef Documentation

template<class T, class HashPolicy, class AllocPolicy>
typedef Impl::AddPtr js::HashSet< T, HashPolicy, AllocPolicy >::AddPtr
template<class T, class HashPolicy, class AllocPolicy>
typedef Impl::Enum js::HashSet< T, HashPolicy, AllocPolicy >::Enum
template<class T, class HashPolicy, class AllocPolicy>
typedef Impl::Ptr js::HashSet< T, HashPolicy, AllocPolicy >::Ptr
template<class T, class HashPolicy, class AllocPolicy>
typedef Impl::Range js::HashSet< T, HashPolicy, AllocPolicy >::Range

Constructor & Destructor Documentation

template<class T, class HashPolicy, class AllocPolicy>
js::HashSet< T, HashPolicy, AllocPolicy >::HashSet ( AllocPolicy  a = AllocPolicy()  )  [inline]

Member Function Documentation

template<class T, class HashPolicy, class AllocPolicy>
bool js::HashSet< T, HashPolicy, AllocPolicy >::add ( AddPtr p,
const T &  t 
) [inline]
template<class T, class HashPolicy, class AllocPolicy>
Range js::HashSet< T, HashPolicy, AllocPolicy >::all (  )  const [inline]
template<class T, class HashPolicy, class AllocPolicy>
void js::HashSet< T, HashPolicy, AllocPolicy >::clear (  )  [inline]
template<class T, class HashPolicy, class AllocPolicy>
size_t js::HashSet< T, HashPolicy, AllocPolicy >::count (  )  const [inline]
template<class T, class HashPolicy, class AllocPolicy>
bool js::HashSet< T, HashPolicy, AllocPolicy >::empty (  )  const [inline]
template<class T, class HashPolicy, class AllocPolicy>
unsigned js::HashSet< T, HashPolicy, AllocPolicy >::generation (  )  const [inline]
template<class T, class HashPolicy, class AllocPolicy>
bool js::HashSet< T, HashPolicy, AllocPolicy >::has ( const Lookup &  l  )  const [inline]
template<class T, class HashPolicy, class AllocPolicy>
bool js::HashSet< T, HashPolicy, AllocPolicy >::init ( uint32  len = 0  )  [inline]
template<class T, class HashPolicy, class AllocPolicy>
bool js::HashSet< T, HashPolicy, AllocPolicy >::initialized (  )  const [inline]
template<class T, class HashPolicy, class AllocPolicy>
Ptr js::HashSet< T, HashPolicy, AllocPolicy >::lookup ( const Lookup &  l  )  const [inline]
template<class T, class HashPolicy, class AllocPolicy>
AddPtr js::HashSet< T, HashPolicy, AllocPolicy >::lookupForAdd ( const Lookup &  l  )  const [inline]
template<class T, class HashPolicy, class AllocPolicy>
const T* js::HashSet< T, HashPolicy, AllocPolicy >::put ( const T &  t  )  [inline]
template<class T, class HashPolicy, class AllocPolicy>
bool js::HashSet< T, HashPolicy, AllocPolicy >::relookupOrAdd ( AddPtr p,
const Lookup &  l,
const T &  t 
) [inline]
template<class T, class HashPolicy, class AllocPolicy>
void js::HashSet< T, HashPolicy, AllocPolicy >::remove ( const Lookup &  l  )  [inline]
template<class T, class HashPolicy, class AllocPolicy>
void js::HashSet< T, HashPolicy, AllocPolicy >::remove ( Ptr  p  )  [inline]

Friends And Related Function Documentation

template<class T, class HashPolicy, class AllocPolicy>
friend class Impl::Enum [friend]

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