DYN_ARRAY< T > Class Template Reference

#include <cxx_template.h>

Inheritance diagram for DYN_ARRAY< T >:
Inheritance graph
[legend]
Collaboration diagram for DYN_ARRAY< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DYN_ARRAY (void)
 DYN_ARRAY (MEM_POOL *pool)
 ~DYN_ARRAY (void)
MEM_POOLGet_Mem_Pool ()
void Set_Mem_Pool (MEM_POOL *mpool)
void Alloc_array (mUINT32 arr_size)
void Force_Alloc_array (mUINT32 arr_size)
void Realloc_array (mUINT32 new_size)
void Free_array (void)
void Bzero_array (void)
DYN_ARRAY< T > & operator= (const DYN_ARRAY< T > &a)
TGet (mUINT32 idx) const
void Set (mUINT32 idx, const T &val)
Toperator[] (mUINT32 idx) const
Toperator[] (mUINT32 idx)
void AddElement (const T &val)
mUINT32 Elements () const
mUINT32 Newidx (void)
void Decidx (void)
void Initidx (UINT32 idx)
void Setidx (UINT32 idx)
void Resetidx (void)
mUINT32 Sizeof (void) const
mINT32 Lastidx (void) const
mUINT32 Idx (T *t) const

Private Member Functions

 DYN_ARRAY (const DYN_ARRAY &)

Private Attributes

MEM_POOL_mpool
mUINT32 _size
mINT32 _lastidx
T_array

Detailed Description

template<class T>
class DYN_ARRAY< T >

Definition at line 175 of file cxx_template.h.


Constructor & Destructor Documentation

template<class T>
DYN_ARRAY< T >::DYN_ARRAY ( const DYN_ARRAY< T > &   )  [private]
template<class T >
DYN_ARRAY< T >::DYN_ARRAY ( void   )  [inline]
template<class T >
DYN_ARRAY< T >::DYN_ARRAY ( MEM_POOL pool  )  [inline]
template<class T >
DYN_ARRAY< T >::~DYN_ARRAY ( void   )  [inline]

Definition at line 361 of file cxx_template.h.

References DYN_ARRAY< T >::Free_array().

Here is the call graph for this function:


Member Function Documentation

template<class T>
void DYN_ARRAY< T >::AddElement ( const T val  )  [inline]
template<class T >
void DYN_ARRAY< T >::Alloc_array ( mUINT32  arr_size  )  [inline]
template<class T >
void DYN_ARRAY< T >::Bzero_array ( void   )  [inline]

Definition at line 411 of file cxx_template.h.

References DYN_ARRAY< T >::_array, DYN_ARRAY< T >::_size, bzero(), NULL, and T.

Here is the call graph for this function:

template<class T>
void DYN_ARRAY< T >::Decidx ( void   )  [inline]
template<class T>
mUINT32 DYN_ARRAY< T >::Elements (  )  const [inline]
template<class T >
void DYN_ARRAY< T >::Force_Alloc_array ( mUINT32  arr_size  )  [inline]

Definition at line 379 of file cxx_template.h.

References DYN_ARRAY< T >::_array, DYN_ARRAY< T >::_mpool, DYN_ARRAY< T >::_size, EC_No_Mem, ErrMsg(), MEM_POOL_Alloc, NULL, and T.

Referenced by PROJECTED_REGION::PROJECTED_REGION(), and PROJECTED_REGION::Set_region().

Here is the call graph for this function:

template<class T >
void DYN_ARRAY< T >::Free_array ( void   )  [inline]
template<class T>
T& DYN_ARRAY< T >::Get ( mUINT32  idx  )  const
template<class T>
MEM_POOL* DYN_ARRAY< T >::Get_Mem_Pool (  )  [inline]

Definition at line 189 of file cxx_template.h.

Referenced by LINEX::Merge(), LINEX::Substitute_Lindex(), and LINEX::Subtract().

template<class T>
mUINT32 DYN_ARRAY< T >::Idx ( T t  )  const [inline]

Definition at line 218 of file cxx_template.h.

template<class T >
void DYN_ARRAY< T >::Initidx ( UINT32  idx  )  [inline]

Definition at line 444 of file cxx_template.h.

References DYN_ARRAY< T >::_array, DYN_ARRAY< T >::_lastidx, DYN_ARRAY< T >::_size, DYN_ARRAY< T >::Alloc_array(), DYN_ARRAY< T >::Free_array(), and NULL.

Here is the call graph for this function:

template<class T>
mINT32 DYN_ARRAY< T >::Lastidx ( void   )  const [inline]

Definition at line 217 of file cxx_template.h.

Referenced by CFG_NODE_INFO::Add_array_may_reduc(), CFG_NODE_INFO::Add_array_reduc(), CFG_NODE_INFO::Add_def_array(), CFG_NODE_INFO::Add_may_def_array(), CFG_NODE_INFO::Add_may_use_array(), CFG_NODE_INFO::Add_scalar_def(), CFG_NODE_INFO::Add_scalar_may_def(), CFG_NODE_INFO::Add_scalar_may_reduc(), CFG_NODE_INFO::Add_scalar_may_use(), CFG_NODE_INFO::Add_scalar_reduc(), CFG_NODE_INFO::Add_scalar_ref_may_passed(), CFG_NODE_INFO::Add_scalar_ref_passed(), CFG_NODE_INFO::Add_scalar_use(), CFG_NODE_INFO::Add_use_array(), Check_Exprs(), Check_Trip_Counts(), DIRECTED_GRAPH16< ARRAY_EDGE16, ARRAY_VERTEX16 >::Edge_Is_In_Graph(), Eliminate_Expr(), Exp_To_Linex(), Exp_To_Linex_Array(), Find_Useless_Exprs(), ARRAY_SUMMARY::Get_cfg_node_array_count(), PROJECTED_KERNEL::Get_Difference(), DIRECTED_GRAPH16< EDGE_TYPE, VERTEX_TYPE >::Get_Edge(), ARRAY_SUMMARY::Get_ivar_array_count(), ARRAY_SUMMARY::Get_loopinfo_array_count(), PROJECTED_KERNEL::Get_num_dims(), ARRAY_SUMMARY::Get_projected_array_count(), REGION_ARRAYS::Get_Projected_Region(), ARRAY_SUMMARY::Get_projected_region_array_count(), ARRAY_SUMMARY::Get_region_array_count(), ARRAY_SUMMARY::Get_term_array_count(), DIRECTED_GRAPH16< EDGE_TYPE, VERTEX_TYPE >::Get_Vertex(), LINEX::Has_loop_coeff(), IPL_EX_Add_Expr_Offsets(), IPL_EX_Add_Value_Offsets(), IPL_EX_Collapse_Trip_Counts(), IPL_EX_Eliminate_Value(), IPL_EXS_Eliminate_Duplicate_Exprs(), IPL_EXS_Eliminate_Duplicate_Values(), IPL_EXS_Eliminate_Expr_Identities(), IPL_EXS_Inner_Fold(), IPL_EXS_Outer_Fold(), IPL_EXS_Reassociate(), IPL_EXS_Sort_Exprs(), IPL_EXS_Too_Complicated(), IPL_EXS_Useless(), LINEX::Map_access_vector(), LINEX::Num_terms(), LOOPINFO::Print(), LINEX::Print(), DIRECTED_GRAPH16< EDGE_TYPE, VERTEX_TYPE >::Print(), Print_Exprs(), Print_Symbol_Array(), PROJECTED_REGION::PROJECTED_REGION(), ARRAY_SUMMARY::Record_tlogs(), Substitute_Expr(), Substitute_Expr_Value(), Substitute_Value(), and DIRECTED_GRAPH16< ARRAY_EDGE16, ARRAY_VERTEX16 >::Vertex_Is_In_Graph().

template<class T >
mUINT32 DYN_ARRAY< T >::Newidx ( void   )  [inline]
template<class T>
DYN_ARRAY< T > & DYN_ARRAY< T >::operator= ( const DYN_ARRAY< T > &  a  )  [inline]

Definition at line 418 of file cxx_template.h.

References DYN_ARRAY< T >::_array, DYN_ARRAY< T >::_lastidx, DYN_ARRAY< T >::_size, DYN_ARRAY< T >::Realloc_array(), and T.

Here is the call graph for this function:

template<class T>
T& DYN_ARRAY< T >::operator[] ( mUINT32  idx  )  [inline]

Definition at line 204 of file cxx_template.h.

template<class T>
T& DYN_ARRAY< T >::operator[] ( mUINT32  idx  )  const [inline]

Definition at line 201 of file cxx_template.h.

template<class T >
void DYN_ARRAY< T >::Realloc_array ( mUINT32  new_size  )  [inline]
template<class T>
void DYN_ARRAY< T >::Resetidx ( void   )  [inline]
template<class T>
void DYN_ARRAY< T >::Set ( mUINT32  idx,
const T val 
)
template<class T>
void DYN_ARRAY< T >::Set_Mem_Pool ( MEM_POOL mpool  )  [inline]
template<class T >
void DYN_ARRAY< T >::Setidx ( UINT32  idx  )  [inline]
template<class T>
mUINT32 DYN_ARRAY< T >::Sizeof ( void   )  const [inline]

Definition at line 216 of file cxx_template.h.


Member Data Documentation

template<class T>
T* DYN_ARRAY< T >::_array [private]
template<class T>
mINT32 DYN_ARRAY< T >::_lastidx [private]
template<class T>
MEM_POOL* DYN_ARRAY< T >::_mpool [private]
template<class T>
mUINT32 DYN_ARRAY< T >::_size [private]

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

Generated on Tue Nov 17 06:39:06 2009 for Open64 (mfef90, whirl2f, and IR tools) by  doxygen 1.6.1