_PointerList_ Class Reference

#include <ObjectList.h>

Inheritance diagram for _PointerList_:

BList BObjectList BObjectList< _ObserverWhatList > BObjectList< KeyedString > List of all members.

Public Types

typedef void *(* GenericEachFunction )(void *, void *)
typedef int(* GenericCompareFunction )(const void *, const void *)
typedef int(* GenericCompareFunctionWithState )(const void *, const void *, void *)
typedef int(* UnaryPredicateGlue )(const void *, void *)

Public Member Functions

 _PointerList_ (const _PointerList_ &list)
 _PointerList_ (int32 itemsPerBlock=20, bool owning=false)
 ~_PointerList_ ()
void * EachElement (GenericEachFunction, void *)
void SortItems (GenericCompareFunction)
void SortItems (GenericCompareFunctionWithState, void *state)
void HSortItems (GenericCompareFunction)
void HSortItems (GenericCompareFunctionWithState, void *state)
void * BinarySearch (const void *, GenericCompareFunction) const
void * BinarySearch (const void *, GenericCompareFunctionWithState, void *state) const
int32 BinarySearchIndex (const void *, GenericCompareFunction) const
int32 BinarySearchIndex (const void *, GenericCompareFunctionWithState, void *state) const
int32 BinarySearchIndexByPredicate (const void *, UnaryPredicateGlue) const
bool Owning () const
bool ReplaceItem (int32, void *)

Protected Attributes

bool owning

Member Typedef Documentation

typedef int(* GenericCompareFunction)(const void *, const void *)
 

typedef int(* GenericCompareFunctionWithState)(const void *, const void *, void *)
 

typedef void*(* GenericEachFunction)(void *, void *)
 

typedef int(* UnaryPredicateGlue)(const void *, void *)
 


Constructor & Destructor Documentation

_PointerList_ const _PointerList_ list  ) 
 

_PointerList_ int32  itemsPerBlock = 20,
bool  owning = false
 

~_PointerList_  ) 
 


Member Function Documentation

void * BinarySearch const void *  ,
GenericCompareFunctionWithState  ,
void *  state
const
 

void * BinarySearch const void *  ,
GenericCompareFunction 
const
 

int32 BinarySearchIndex const void *  ,
GenericCompareFunctionWithState  ,
void *  state
const
 

int32 BinarySearchIndex const void *  ,
GenericCompareFunction 
const
 

int32 BinarySearchIndexByPredicate const void *  ,
UnaryPredicateGlue 
const
 

void * EachElement GenericEachFunction  ,
void * 
 

void HSortItems GenericCompareFunctionWithState  ,
void *  state
 

Reimplemented in BObjectList, BObjectList< BMessenger >, BObjectList< _ObserverWhatList >, BObjectList< BHandler >, and BObjectList< KeyedString >.

void HSortItems GenericCompareFunction   ) 
 

Reimplemented in BObjectList, BObjectList< BMessenger >, BObjectList< _ObserverWhatList >, BObjectList< BHandler >, and BObjectList< KeyedString >.

bool Owning  )  const [inline]
 

bool ReplaceItem int32  ,
void * 
 

Reimplemented from BList.

void SortItems GenericCompareFunctionWithState  ,
void *  state
 

Reimplemented in BObjectList, BObjectList< BMessenger >, BObjectList< _ObserverWhatList >, BObjectList< BHandler >, and BObjectList< KeyedString >.

void SortItems GenericCompareFunction   ) 
 

Reimplemented in BObjectList, BObjectList< BMessenger >, BObjectList< _ObserverWhatList >, BObjectList< BHandler >, and BObjectList< KeyedString >.


Member Data Documentation

bool owning [protected]
 


Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.