oasys::AList< _Key, _Value > Class Template Reference

#include <AList.h>

Inheritance diagram for oasys::AList< _Key, _Value >:

oasys::SerializableObject

List of all members.


Detailed Description

template<typename _Key, typename _Value>
class oasys::AList< _Key, _Value >

Implements a map as an associatvie list in the cases where there is no need for full std::map implementation.

Definition at line 31 of file AList.h.


Public Member Functions

bool exists (const _Key &k) const
bool get (const _Key &k, _Value *v) const
void add (const _Key &k, _Value v)
const _Value & operator[] (const _Key &k) const
void process (oasys::SerializeAction *action)

Private Types

typedef std::list
< _Key, _Value > 
List

Private Attributes

List list_

Member Typedef Documentation

template<typename _Key, typename _Value>
typedef std::list<_Key, _Value> oasys::AList< _Key, _Value >::List [private]

Definition at line 32 of file AList.h.


Member Function Documentation

template<typename _Key, typename _Value>
bool oasys::AList< _Key, _Value >::exists ( const _Key &  k  )  const [inline]

Parameters:
k Key to retrieve.
Returns:
True if the key exists.

Definition at line 68 of file AList.h.

template<typename _Key, typename _Value>
bool oasys::AList< _Key, _Value >::get ( const _Key &  k,
_Value *  v 
) const [inline]

Parameters:
k Key to retrieve.
v Value to receive key. Must be copiable.
Returns:
True if the key exists.

Definition at line 75 of file AList.h.

template<typename _Key, typename _Value>
void oasys::AList< _Key, _Value >::add ( const _Key &  k,
_Value  v 
) [inline]

Parameters:
k Key to add.
v Value to add.

Definition at line 82 of file AList.h.

template<typename _Key, typename _Value>
const _Value & oasys::AList< _Key, _Value >::operator[] ( const _Key &  k  )  const [inline]

Returns:
Value, the default constructor if value does not exist.

Definition at line 88 of file AList.h.

template<typename _Key, typename _Value>
void oasys::AList< _Key, _Value >::process ( oasys::SerializeAction action  )  [inline]

Definition at line 94 of file AList.h.


Member Data Documentation

template<typename _Key, typename _Value>
List oasys::AList< _Key, _Value >::list_ [private]

Definition at line 63 of file AList.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 8 08:43:55 2007 for DTN Reference Implementation by  doxygen 1.5.3