GVectors::FindTopLevel Class Reference

Finds the top level item serving as root for the given id. More...

#include <vstorefuncs.h>

List of all members.

Public Member Functions

 FindTopLevel (gvid_t id)
 Constructor.
bool operator() (const VStoreItem *vsi) const
 Function operator.

Private Attributes

gvid_t id_to_find
 The vector store id to find.


Detailed Description

Given an vector store id, it finds the item having the id associated.

It is used to find an item in the top level item list, thus the name.


Constructor & Destructor Documentation

GVectors::FindTopLevel::FindTopLevel ( gvid_t  id  )  [inline, explicit]

Constructor.

Parameters:
id The id to search for.


Member Function Documentation

bool FindTopLevel::operator() ( const VStoreItem vsi  )  const

Finds a VStoreItem by its id.

Parameters:
vsi A const pointer to a VStoreItem.
Returns:
A boolean value indicating whether or not the pointer points to the item associated with the id.
Return values:
true The pointer points to the item having the sought id associated.
false The pointer points to an item not having the sought id associated.


Member Data Documentation

gvid_t GVectors::FindTopLevel::id_to_find [private]

The vector store id to find.


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