GNU CommonC++
Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ost::objMap< T, K, S > Class Template Reference

Used to create and manage a hash index of objects through a common type. More...

#include <objmap.h>

Static Public Member Functions

static T * getObject (keystring key)
 

Protected Member Functions

virtual unsigned keyIndex (K k)
 
unsigned getSize (void)
 
 objMap (const K key)
 

Protected Attributes

T * objNext
 
const K objKey
 

Static Protected Attributes

static T * objIndex [S]
 

Detailed Description

template<class T, class K, unsigned S>
class ost::objMap< T, K, S >

Used to create and manage a hash index of objects through a common type.

The objects can be examined and a specific instance located by a hash key.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

hash indexed searchable template chain.

Constructor & Destructor Documentation

◆ objMap()

template<class T , class K , unsigned S>
ost::objMap< T, K, S >::objMap ( const K  key)
inlineprotected

Member Function Documentation

◆ getObject()

template<class T , class K , unsigned S>
T * ost::objMap< T, K, S >::getObject ( keystring  key)
static

◆ getSize()

template<class T , class K , unsigned S>
unsigned ost::objMap< T, K, S >::getSize ( void  )
inlineprotected

◆ keyIndex()

template<class T , class K , unsigned S>
virtual unsigned ost::objMap< T, K, S >::keyIndex ( k)
inlineprotectedvirtual

Member Data Documentation

◆ objIndex

template<class T , class K , unsigned S>
T * ost::objMap< T, K, S >::objIndex ( )
staticprotected

◆ objKey

template<class T , class K , unsigned S>
const K ost::objMap< T, K, S >::objKey
protected

◆ objNext

template<class T , class K , unsigned S>
T* ost::objMap< T, K, S >::objNext
protected

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