home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CMapStringToOb

CObject
   |
   +--CMapStringToOb

   in AFXCOLL.H

class CMapStringToOb
extends CObject


Inner Classes, Typedefs, and Enums
typedef CMapStringToOb::BASE_ARG_KEY
          
typedef CMapStringToOb::BASE_ARG_VALUE
          
typedef CMapStringToOb::BASE_KEY
          
typedef CMapStringToOb::BASE_VALUE
          
struct CMapStringToOb::CAssoc
          
 
Field Summary
protected int m_nBlockSize
          
protected int m_nCount
          
protected UINT m_nHashTableSize
          
protected struct CPlex* m_pBlocks
          
protected CMapStringToOb::CAssoc* m_pFreeList
          
protected CMapStringToOb::CAssoc** m_pHashTable
          
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CMapStringToOb( int nBlockSize = 10 )
          
~CMapStringToOb()
          
 
Method Summary
protected void FreeAssoc( CMapStringToOb::CAssoc* )
          
protected CMapStringToOb::CAssoc* GetAssocAt( LPCTSTR, UINT& ) const
          
 int GetCount() const
          
 UINT GetHashTableSize() const
          
 void GetNextAssoc( POSITION& rNextPosition, CString& rKey, CObject*& rValue ) const
          
 POSITION GetStartPosition() const
          
 UINT HashKey( LPCTSTR key ) const
          
 void InitHashTable( UINT hashSize, BOOL bAllocNow = TRUE )
          
 BOOL IsEmpty() const
          
 BOOL Lookup( LPCTSTR key, CObject*& rValue ) const
          
 BOOL LookupKey( LPCTSTR key, LPCTSTR& rKey ) const
          
protected CMapStringToOb::CAssoc* NewAssoc()
          
 CObject*& operator[]( LPCTSTR key )
          
 void RemoveAll()
          
 BOOL RemoveKey( LPCTSTR key )
          
 void Serialize( CArchive& )
          
 void SetAt( LPCTSTR key, CObject* newValue )
          
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_nBlockSize

protected int m_nBlockSize;

m_nCount

protected int m_nCount;

m_nHashTableSize

protected UINT m_nHashTableSize;

m_pBlocks

protected struct CPlex* m_pBlocks;

m_pFreeList

protected CMapStringToOb::CAssoc* m_pFreeList;

m_pHashTable

protected CMapStringToOb::CAssoc** m_pHashTable;


Constructor Detail

CMapStringToOb

public CMapStringToOb( int nBlockSize = 10 );

~CMapStringToOb

public ~CMapStringToOb();


Method Detail

FreeAssoc

protected void FreeAssoc( CMapStringToOb::CAssoc* );

GetAssocAt

protected CMapStringToOb::CAssoc* GetAssocAt( LPCTSTR, UINT& ) const;

GetCount

public int GetCount() const;

GetHashTableSize

public UINT GetHashTableSize() const;

GetNextAssoc

public void GetNextAssoc( POSITION& rNextPosition, CString& rKey, CObject*& rValue ) const;

GetStartPosition

public POSITION GetStartPosition() const;

HashKey

public UINT HashKey( LPCTSTR key ) const;

InitHashTable

public void InitHashTable( UINT hashSize, BOOL bAllocNow = TRUE );

IsEmpty

public BOOL IsEmpty() const;

Lookup

public BOOL Lookup( LPCTSTR key, CObject*& rValue ) const;

LookupKey

public BOOL LookupKey( LPCTSTR key, LPCTSTR& rKey ) const;

NewAssoc

protected CMapStringToOb::CAssoc* NewAssoc();

operator[]

public CObject*& operator[]( LPCTSTR key );

RemoveAll

public void RemoveAll();

RemoveKey

public BOOL RemoveKey( LPCTSTR key );

Serialize

public void Serialize( CArchive& );

SetAt

public void SetAt( LPCTSTR key, CObject* newValue );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.4.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD