osprey/common/com/segmented_array.h File Reference

#include <CC/vector>
#include "errors.h"
#include "mempool.h"
#include "mempool_allocator.h"

Include dependency graph for segmented_array.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Types

module  SEGMENTED_ARRAY_ITERATOR< ARRAY_Ptr, T, VALUE_Ptr, REF >
module  SEGMENTED_ARRAY< T, block_size >

Defines

#define NOT_FOUND   ((UINT) -1)

Functions/Subroutines

template<class T, UINT block_size, class OP>
void For_all_entries (SEGMENTED_ARRAY< T, block_size > &array, const OP &op, UINT32 first=0)
template<class T, UINT block_size, class OP>
void For_all_blocks (SEGMENTED_ARRAY< T, block_size > &array, const OP &op)
template<class T, UINT block_size, class PREDICATE>
UINT Find_entry_if (const SEGMENTED_ARRAY< T, block_size > &array, const PREDICATE &pred, UINT i=0)
template<class T, UINT block_size>
UINT32 Copy_array_range (const SEGMENTED_ARRAY< T, block_size > &from_array, 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 574 of file segmented_array.h.


Function Documentation

template<class T, UINT block_size>
UINT32 Copy_array_range ( const SEGMENTED_ARRAY< T, block_size > &  from_array,
SEGMENTED_ARRAY< T, block_size > &  to_array,
UINT32  first_idx = 0,
UINT32  last_idx = (UINT32) -1 
) [inline]

template<class T, UINT block_size, class PREDICATE>
UINT Find_entry_if ( const SEGMENTED_ARRAY< T, block_size > &  array,
const PREDICATE &  pred,
UINT  i = 0 
) [inline]

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

template<class T, UINT block_size, class OP>
void For_all_entries ( SEGMENTED_ARRAY< T, block_size > &  array,
const OP op,
UINT32  first = 0 
) [inline]


Generated on Wed Apr 8 14:39:59 2009 for Open64 by  doxygen 1.5.6