IBR-DTNSuite  0.8
dtn::storage::BundleStorage::BundleFilterCallback Class Reference

#include <BundleStorage.h>

List of all members.

Public Member Functions

virtual ~BundleFilterCallback ()
virtual size_t limit () const
virtual bool shouldAdd (const dtn::data::MetaBundle &) const

Detailed Description

Definition at line 52 of file BundleStorage.h.


Constructor & Destructor Documentation

Definition at line 55 of file BundleStorage.h.


Member Function Documentation

virtual size_t dtn::storage::BundleStorage::BundleFilterCallback::limit ( ) const [inline, virtual]

Limit the number of selected items.

Returns:
The limit as number of items.

Definition at line 61 of file BundleStorage.h.

Referenced by dtn::storage::MemoryBundleStorage::get(), dtn::storage::SimpleBundleStorage::get(), and dtn::storage::SQLiteDatabase::get().

virtual bool dtn::storage::BundleStorage::BundleFilterCallback::shouldAdd ( const dtn::data::MetaBundle ) const [inline, virtual]

This method is called by the storage to determine if one bundle should added to a set or not.

Parameters:
idThe bundle id of the bundle to select.
Returns:
True, if the bundle should be added to the set.

Definition at line 69 of file BundleStorage.h.

Referenced by dtn::storage::MemoryBundleStorage::get(), and dtn::storage::SimpleBundleStorage::get().


The documentation for this class was generated from the following file: