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
SmHash< Type, Key > Class Template Reference

#include <SmHash.h>

Public Types

typedef uintptr_t SmHashFunc(const Key &key)
 
typedef void SmHashApplyFunc(const Key &key, const Type &obj, void *closure)
 

Public Member Functions

 SmHash (unsigned int sizearg=256, float loadfactorarg=0.0f)
 
 SmHash (const SmHash &from)
 
SmHashoperator= (const SmHash &from)
 
 ~SmHash ()
 
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 (SmHashApplyFunc *func, void *closure) const
 
void makeKeyList (SbList< Key > &l) const
 
unsigned int getNumElements (void) const
 
void setHashFunc (SmHashFunc *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

◆ SmHashApplyFunc

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

◆ SmHashFunc

template<class Type , class Key >
typedef uintptr_t SmHash< Type, Key >::SmHashFunc(const Key &key)

Constructor & Destructor Documentation

◆ SmHash() [1/2]

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

◆ SmHash() [2/2]

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

◆ ~SmHash()

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

Member Function Documentation

◆ apply()

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

◆ clear()

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

◆ default_hash_func()

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

◆ get()

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

◆ getIndex()

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

◆ getNumElements()

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

◆ makeKeyList()

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

◆ operator=()

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

◆ put()

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

◆ remove()

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

◆ resize()

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

◆ setHashFunc()

template<class Type , class Key >
void SmHash< Type, Key >::setHashFunc ( SmHashFunc func)
inline

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