BKeyedVector Class Template Reference

#include <KeyedVector.h>

List of all members.

template<class KEY, class VALUE>
class B::Support::BKeyedVector< KEY, VALUE >


Public Member Functions

 BKeyedVector (const VALUE &undefined=VALUE())
 BKeyedVector (const BKeyedVector< KEY, VALUE > &o)
 BKeyedVector (const BOrderedVector< KEY > &keys, const BVector< VALUE > &values, const VALUE &undefined=VALUE())
virtual ~BKeyedVector ()
BKeyedVector< KEY, VALUE > & operator= (const BKeyedVector< KEY, VALUE > &o)
void SetCapacity (size_t total_space)
void SetExtraCapacity (size_t extra_space)
size_t Capacity () const
size_t CountItems () const
const VALUE & ValueFor (const KEY &key, bool *found=NULL) const
VALUE & EditValueFor (const KEY &key, bool *found=NULL)
const KEY & KeyAt (size_t i) const
const VALUE & ValueAt (size_t i) const
VALUE & EditValueAt (size_t i)
const BOrderedVector< KEY > & KeyVector () const
const BVector< VALUE > & ValueVector () const
BVector< VALUE > & ValueVector ()
ssize_t IndexOf (const KEY &key) const
bool GetIndexOf (const KEY &key, size_t *index) const
ssize_t AddItem (const KEY &key, const VALUE &value)
void RemoveItemsAt (size_t index, size_t count=1)
ssize_t RemoveItemFor (const KEY &key)
void MakeEmpty ()
void Swap (BKeyedVector &o)

Constructor & Destructor Documentation

BKeyedVector const VALUE &  undefined = VALUE()  )  [inline]
 

BKeyedVector const BKeyedVector< KEY, VALUE > &  o  )  [inline]
 

BKeyedVector const BOrderedVector< KEY > &  keys,
const BVector< VALUE > &  values,
const VALUE &  undefined = VALUE()
[inline]
 

~BKeyedVector  )  [inline, virtual]
 


Member Function Documentation

ssize_t AddItem const KEY &  key,
const VALUE &  value
[inline]
 

size_t Capacity  )  const [inline]
 

size_t CountItems  )  const [inline]
 

VALUE & EditValueAt size_t  i  )  [inline]
 

VALUE & EditValueFor const KEY &  key,
bool *  found = NULL
[inline]
 

bool GetIndexOf const KEY &  key,
size_t *  index
const [inline]
 

ssize_t IndexOf const KEY &  key  )  const [inline]
 

const KEY & KeyAt size_t  i  )  const [inline]
 

const BOrderedVector< KEY > & KeyVector  )  const [inline]
 

void MakeEmpty  )  [inline]
 

BKeyedVector< KEY, VALUE > & operator= const BKeyedVector< KEY, VALUE > &  o  )  [inline]
 

ssize_t RemoveItemFor const KEY &  key  )  [inline]
 

void RemoveItemsAt size_t  index,
size_t  count = 1
[inline]
 

void SetCapacity size_t  total_space  )  [inline]
 

void SetExtraCapacity size_t  extra_space  )  [inline]
 

void Swap BKeyedVector< KEY, VALUE > &  o  ) 
 

const VALUE & ValueAt size_t  i  )  const [inline]
 

const VALUE & ValueFor const KEY &  key,
bool *  found = NULL
const [inline]
 

BVector< VALUE > & ValueVector  )  [inline]
 

const BVector< VALUE > & ValueVector  )  const [inline]
 


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