Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cmplr_segmented_array.h File Reference
#include <algorithm>
#include <vector>
#include <list>
#include "errors.h"
#include "mempool.h"
#include "segmented_array.h"
#include "mempool_allocator.h"
Include dependency graph for cmplr_segmented_array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  growing_table
class  RELATED_SEGMENTED_ARRAY< T, block_size >

Defines

#define NOT_FOUND   ((UINT) -1)

Functions

template<class T , UINT block_size, class OP >
void For_all_entries (RELATED_SEGMENTED_ARRAY< T, block_size > &array, const OP &op, UINT32 first=0)
template<class T , UINT block_size, class OP >
void For_all_blocks (RELATED_SEGMENTED_ARRAY< T, block_size > &array, const OP &op)
template<class T , UINT block_size, class PREDICATE >
UINT Find_entry_if (const RELATED_SEGMENTED_ARRAY< T, block_size > &array, const PREDICATE &pred, UINT i=0)
template<class T , UINT block_size>
UINT32 Copy_array_range (const RELATED_SEGMENTED_ARRAY< T, block_size > &from_array, RELATED_SEGMENTED_ARRAY< T, block_size > &to_array, UINT32 first_idx=0, UINT32 last_idx=(UINT32)-1)

Define Documentation

#define NOT_FOUND   ((UINT) -1)

Definition at line 699 of file cmplr_segmented_array.h.

Referenced by Find_entry_if(), and For_all_until().


Function Documentation

template<class T , UINT block_size>
UINT32 Copy_array_range ( const RELATED_SEGMENTED_ARRAY< T, block_size > &  from_array,
RELATED_SEGMENTED_ARRAY< T, block_size > &  to_array,
UINT32  first_idx = 0,
UINT32  last_idx = (UINT32) -1 
)
template<class T , UINT block_size, class PREDICATE >
UINT Find_entry_if ( const RELATED_SEGMENTED_ARRAY< T, block_size > &  array,
const PREDICATE &  pred,
UINT  i = 0 
) [inline]

Definition at line 703 of file cmplr_segmented_array.h.

References block, RELATED_SEGMENTED_ARRAY< T, block_size >::Get_block_size(), NOT_FOUND, size, RELATED_SEGMENTED_ARRAY< T, block_size >::Size(), and T.

Referenced by For_all_until().

Here is the call graph for this function:

template<class T , UINT block_size, class OP >
void For_all_blocks ( RELATED_SEGMENTED_ARRAY< T, block_size > &  array,
const OP &  op 
) [inline]

Definition at line 685 of file cmplr_segmented_array.h.

References RELATED_SEGMENTED_ARRAY< T, block_size >::Get_block_size(), size, RELATED_SEGMENTED_ARRAY< T, block_size >::Size(), and T.

Referenced by write_table().

Here is the call graph for this function:

template<class T , UINT block_size, class OP >
void For_all_entries ( RELATED_SEGMENTED_ARRAY< T, block_size > &  array,
const OP &  op,
UINT32  first = 0 
) [inline]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines