Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SbHash< Type, Key > Class Template Reference

#include <SbHash.h>

Public Types

typedef uintptr_t SbHashFunc(const Key &key)
 
typedef void SbHashApplyFunc(const Key &key, const Type &obj, void *closure)
 

Public Member Functions

 SbHash (unsigned int sizearg=256, float loadfactorarg=0.0f)
 
 SbHash (const SbHash &from)
 
SbHashoperator= (const SbHash &from)
 
 ~SbHash ()
 
void clear (void)
 
SbBool put (const Key &key, const Type &obj)
 
SbBool get (const Key &key, Type &obj) const
 
SbBool remove (const Key &key)
 
void apply (SbHashApplyFunc *func, void *closure) const
 
void makeKeyList (SbList< Key > &l) const
 
unsigned int getNumElements (void) const
 
void setHashFunc (SbHashFunc *func)
 

Protected Member Functions

unsigned int getIndex (const Key &key) const
 
void resize (unsigned int newsize)
 

Static Protected Member Functions

static uintptr_t default_hash_func (const Key &key)
 

Member Typedef Documentation

◆ SbHashApplyFunc

template<class Type , class Key >
typedef void SbHash< Type, Key >::SbHashApplyFunc(const Key &key, const Type &obj, void *closure)

◆ SbHashFunc

template<class Type , class Key >
typedef uintptr_t SbHash< Type, Key >::SbHashFunc(const Key &key)

Constructor & Destructor Documentation

◆ SbHash() [1/2]

template<class Type , class Key >
SbHash< Type, Key >::SbHash ( unsigned int  sizearg = 256,
float  loadfactorarg = 0.0f 
)
inline

◆ SbHash() [2/2]

template<class Type , class Key >
SbHash< Type, Key >::SbHash ( const SbHash< Type, Key > &  from)
inline

◆ ~SbHash()

template<class Type , class Key >
SbHash< Type, Key >::~SbHash ( )
inline

Member Function Documentation

◆ apply()

template<class Type , class Key >
void SbHash< Type, Key >::apply ( SbHashApplyFunc func,
void *  closure 
) const
inline

◆ clear()

template<class Type , class Key >
void SbHash< Type, Key >::clear ( void  )
inline

◆ default_hash_func()

template<class Type , class Key >
static uintptr_t SbHash< Type, Key >::default_hash_func ( const Key &  key)
inlinestaticprotected

◆ get()

template<class Type , class Key >
SbBool SbHash< Type, Key >::get ( const Key &  key,
Type &  obj 
) const
inline

◆ getIndex()

template<class Type , class Key >
unsigned int SbHash< Type, Key >::getIndex ( const Key &  key) const
inlineprotected

◆ getNumElements()

template<class Type , class Key >
unsigned int SbHash< Type, Key >::getNumElements ( void  ) const
inline

◆ makeKeyList()

template<class Type , class Key >
void SbHash< Type, Key >::makeKeyList ( SbList< Key > &  l) const
inline

◆ operator=()

template<class Type , class Key >
SbHash& SbHash< Type, Key >::operator= ( const SbHash< Type, Key > &  from)
inline

◆ put()

template<class Type , class Key >
SbBool SbHash< Type, Key >::put ( const Key &  key,
const Type &  obj 
)
inline

◆ remove()

template<class Type , class Key >
SbBool SbHash< Type, Key >::remove ( const Key &  key)
inline

◆ resize()

template<class Type , class Key >
void SbHash< Type, Key >::resize ( unsigned int  newsize)
inlineprotected

◆ setHashFunc()

template<class Type , class Key >
void SbHash< Type, Key >::setHashFunc ( SbHashFunc func)
inline

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