MAP Module Reference

#include <opt_base.h>

Collaboration diagram for MAP:

Collaboration graph
[legend]

Public Member Functions

 MAP (mUINT32 hash_size, MEM_POOL *pool)
 ~MAP (void)
void Alloc_hash_vec (void)
void Free_hash_vec (void)
mUINT32 Hash (POINTER k)
MAP_LISTFind_map_list (POINTER k)
void Add_map (POINTER k, POINTER v)
POINTER Get_val (POINTER k)

Private Member Functions

 MAP (void)
 MAP (const MAP &)
MAPoperator= (const MAP &)

Private Attributes

MEM_POOLmem_pool
mUINT32 size
MAP_LIST_Phash_vec

Detailed Description

Definition at line 120 of file opt_base.h.


Constructor & Destructor Documentation

MAP::MAP ( void   )  [private]

MAP::MAP ( const MAP  )  [private]

MAP::MAP ( mUINT32  hash_size,
MEM_POOL pool 
)

Definition at line 103 of file opt_base.cxx.

References Alloc_hash_vec(), and size.

MAP::~MAP ( void   ) 

Definition at line 110 of file opt_base.cxx.

References Free_hash_vec().


Member Function/Subroutine Documentation

MAP& MAP::operator= ( const MAP  )  [private]

void MAP::Alloc_hash_vec ( void   ) 

Definition at line 90 of file opt_base.cxx.

References BZERO, CXX_NEW_ARRAY, EC_No_Mem, ErrMsg(), hash_vec, NULL, and size.

Referenced by MAP().

void MAP::Free_hash_vec ( void   ) 

Definition at line 98 of file opt_base.cxx.

References CXX_DELETE_ARRAY, and hash_vec.

Referenced by ~MAP().

mUINT32 MAP::Hash ( POINTER  k  ) 

Definition at line 116 of file opt_base.cxx.

References mUINT32, and size.

Referenced by Find_map_list().

MAP_LIST * MAP::Find_map_list ( POINTER  k  ) 

Definition at line 125 of file opt_base.cxx.

References SLIST::Append(), CXX_NEW, FOR_ALL_NODE, Hash(), hash_vec, idx, Init, MAP_LIST::Key(), mUINT32, NULL, and tmp.

Referenced by Add_map(), and Get_val().

void MAP::Add_map ( POINTER  k,
POINTER  v 
)

POINTER MAP::Get_val ( POINTER  k  ) 

Definition at line 162 of file opt_base.cxx.

References Find_map_list(), and MAP_LIST::Val().

Referenced by CFG::Get_bb_from_label(), and LabelOpt::Get_Mark().


Field Documentation

MEM_POOL* MAP::mem_pool [private]

Definition at line 122 of file opt_base.h.

mUINT32 MAP::size [private]

Definition at line 123 of file opt_base.h.

Referenced by Alloc_hash_vec(), Hash(), and MAP().

Definition at line 124 of file opt_base.h.

Referenced by Alloc_hash_vec(), Find_map_list(), and Free_hash_vec().


The documentation for this module was generated from the following files:

Generated on Wed Apr 8 16:55:07 2009 for Open64 by  doxygen 1.5.6