Polaris: BaseRefMap Class Reference

BaseRefMap Class Reference

file BaseRefMap.h An abstract base class for a map of keys of type BMKey to objects of type Listable where: More...

#include <BaseRefMap.h>

Inheritance diagram for BaseRefMap:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BaseRefMap ()
virtual ~BaseRefMap ()

Protected Member Functions

virtual void _list_insert (BMNode *z, Listable *new_data)
 Insert new_data into the internal list.

Protected Attributes

BaseRefList _data_list
 List of actual data objects.

Friends

ostream & operator<< (ostream &o, const BaseRefMap &map)

Detailed Description

file BaseRefMap.h An abstract base class for a map of keys of type BMKey to objects of type Listable where:

    1.  The pure virtual functions _kill_key, _less, _equal and _print have
        been defined in the class derived from BaseMap.

Definition at line 26 of file BaseRefMap.h.


Constructor & Destructor Documentation

BaseRefMap::BaseRefMap  )  [inline]
 

< nothing to do

Definition at line 43 of file BaseRefMap.h.

BaseRefMap::~BaseRefMap  )  [virtual]
 

... Nothing to do

Definition at line 62 of file BaseRefMap.cc.


Member Function Documentation

void BaseRefMap::_list_insert BMNode z,
Listable new_data
[protected, virtual]
 

Insert new_data into the internal list.

Set z's _data field to point to new_data's wrapper.

Implements BaseMapRoot.

Definition at line 18 of file BaseRefMap.cc.

References _data_list, Collection::_entries, Collection::_first, Collection::_last, BaseMapRoot::entries(), RefKeyWrapper::key_node(), Wrapper::next(), Wrapper::next_ref(), RefWrapper::object(), Wrapper::prev(), Wrapper::ref_dec(), and Wrapper::ref_inc().


Friends And Related Function Documentation

ostream& operator<< ostream &  o,
const BaseRefMap map
[friend]
 

Definition at line 11 of file BaseRefMap.cc.


Member Data Documentation

BaseRefList BaseRefMap::_data_list [protected]
 

List of actual data objects.

Definition at line 28 of file BaseRefMap.h.

Referenced by _list_insert().


The documentation for this class was generated from the following files:
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:07:01 2005