GVectors::SyncLookup Class Reference

Class used to synchronize the lookup map. More...

#include <vstorefuncs.h>

List of all members.

Public Member Functions

 SyncLookup (std::map< gvid_t, VStoreItem * > &lr)
 Constructor.
 ~SyncLookup ()
 Destructor.
 SyncLookup (const SyncLookup &sl)
 Copy constructor.
void operator() (gvid_t id) const
 Function operator.

Private Member Functions

SyncLookupoperator= (const SyncLookup &)
 Assignment operator.

Private Attributes

std::map< gvid_t, VStoreItem * > & lookup_ref
 A reference to the lookup map.


Detailed Description

This class is used to synchronize the lookup map of VectorStore after deleting items. It can then be used to delete the items from the lookup map.


Constructor & Destructor Documentation

GVectors::SyncLookup::SyncLookup ( std::map< gvid_t, VStoreItem * > &  lr  )  [inline, explicit]

Constructor.

Parameters:
lr A reference to the lookup map to be synchronized.

GVectors::SyncLookup::~SyncLookup (  )  [inline]

Destructor. Does nothing. Just for completeness.

GVectors::SyncLookup::SyncLookup ( const SyncLookup sl  )  [inline]

Copy constructor.

Parameters:
sl A const reference to a SyncLookup object.


Member Function Documentation

SyncLookup& GVectors::SyncLookup::operator= ( const SyncLookup  )  [inline, private]

Assginment operator. Not used.

void SyncLookup::operator() ( gvid_t  id  )  const

Tries to find the id in the lookup_ref map. If it finds the id, the id is removed from the lookup_ref map and thus from the map referenced by lookup_ref.

Parameters:
id The id to search for.


Member Data Documentation

std::map<gvid_t, VStoreItem*>& GVectors::SyncLookup::lookup_ref [private]

This holds the reference to lookup map that has to be synchronized.


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 19:37:30 2007 for libgvectors by  doxygen 1.4.7