sbLDBDSEnumerator Class Reference
Inheritance diagram for sbLDBDSEnumerator:
[legend]
Collaboration diagram for sbLDBDSEnumerator:
[legend]

Classes

class  IDCompare
 
struct  ItemInfo
 
class  OriginIDCompare
 

Public Types

enum  Index { INDEX_ID, INDEX_ORIGIN, INDEXES }
 
typedef std::vector< ItemInfoItemInfos
 
typedef nsID const &(* IDExtractorFunc )(ItemInfos::const_iterator)
 
typedef sbIndex< nsID,
ItemInfos::iterator, IDCompare
IDIndex
 
typedef sbIndex< nsID,
ItemInfos::iterator,
OriginIDCompare
OriginIDIndex
 
typedef ItemInfos::const_iterator const_iterator
 
typedef ItemInfos::iterator iterator
 
typedef IDIndex::const_iterator ConstIDIterator
 
typedef IDIndex::iterator IDIterator
 
typedef IDIndex::const_iterator ConstOriginIterator
 
typedef IDIndex::iterator OriginIterator
 

Public Member Functions

 sbLDBDSEnumerator ()
 
void Sort ()
 
IDIterator FindByID (nsID const &aID)
 
ConstIDIterator FindByID (nsID const &aID) const
 
OriginIterator FindByOrigin (nsID const &aID)
 
ConstOriginIterator FindByOrigin (nsID const &aID) const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
ConstIDIterator IDBegin () const
 
IDIterator IDBegin ()
 
ConstIDIterator IDEnd () const
 
IDIterator IDEnd ()
 
ConstOriginIterator OriginBegin () const
 
OriginIterator OriginBegin ()
 
ConstOriginIterator OriginEnd () const
 
OriginIterator OriginEnd ()
 
- Public Member Functions inherited from sbIMediaListEnumerationListener
unsigned short onEnumerationBegin (in sbIMediaList aMediaList)
 Called when enumeration is about to begin. More...
 
unsigned short onEnumeratedItem (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem)
 Called once for each item in the enumeration. More...
 
void onEnumerationEnd (in sbIMediaList aMediaList, in nsresult aStatusCode)
 Called when enumeration has completed. More...
 

Static Public Member Functions

static bool lessThan (nsID const &aLeftID, nsID const &aRightID)
 

Protected Member Functions

 ~sbLDBDSEnumerator ()
 

Additional Inherited Members

- Public Attributes inherited from sbIMediaListEnumerationListener
const unsigned short CONTINUE = 0
 
const unsigned short CANCEL = 1
 

Detailed Description

This class serves to enumerate and collect the ID and origin ID of items

Definition at line 150 of file sbLocalDatabaseDiffingService.cpp.

Member Typedef Documentation

typedef ItemInfos::const_iterator sbLDBDSEnumerator::const_iterator

Definition at line 296 of file sbLocalDatabaseDiffingService.cpp.

typedef nsID const&(* sbLDBDSEnumerator::IDExtractorFunc)(ItemInfos::const_iterator)

Definition at line 222 of file sbLocalDatabaseDiffingService.cpp.

typedef sbIndex<nsID, ItemInfos::iterator, IDCompare> sbLDBDSEnumerator::IDIndex

Definition at line 223 of file sbLocalDatabaseDiffingService.cpp.

typedef std::vector<ItemInfo> sbLDBDSEnumerator::ItemInfos

Definition at line 217 of file sbLocalDatabaseDiffingService.cpp.

typedef ItemInfos::iterator sbLDBDSEnumerator::iterator

Definition at line 297 of file sbLocalDatabaseDiffingService.cpp.

typedef sbIndex<nsID, ItemInfos::iterator, OriginIDCompare> sbLDBDSEnumerator::OriginIDIndex

Definition at line 224 of file sbLocalDatabaseDiffingService.cpp.

Member Enumeration Documentation

Enumerator
INDEX_ID 
INDEX_ORIGIN 
INDEXES 

Definition at line 291 of file sbLocalDatabaseDiffingService.cpp.

Constructor & Destructor Documentation

sbLDBDSEnumerator::sbLDBDSEnumerator ( )
sbLDBDSEnumerator::~sbLDBDSEnumerator ( )
protected

Definition at line 395 of file sbLocalDatabaseDiffingService.cpp.

Member Function Documentation

const_iterator sbLDBDSEnumerator::begin ( ) const
inline

Definition at line 324 of file sbLocalDatabaseDiffingService.cpp.

Here is the caller graph for this function:

iterator sbLDBDSEnumerator::begin ( )
inline

Definition at line 328 of file sbLocalDatabaseDiffingService.cpp.

const_iterator sbLDBDSEnumerator::end ( ) const
inline

Definition at line 332 of file sbLocalDatabaseDiffingService.cpp.

Here is the caller graph for this function:

iterator sbLDBDSEnumerator::end ( )
inline

Definition at line 336 of file sbLocalDatabaseDiffingService.cpp.

IDIterator sbLDBDSEnumerator::FindByID ( nsID const &  aID)
inline

Definition at line 312 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

ConstIDIterator sbLDBDSEnumerator::FindByID ( nsID const &  aID) const
inline

Definition at line 315 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

OriginIterator sbLDBDSEnumerator::FindByOrigin ( nsID const &  aID)
inline

Definition at line 318 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

ConstOriginIterator sbLDBDSEnumerator::FindByOrigin ( nsID const &  aID) const
inline

Definition at line 321 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

ConstIDIterator sbLDBDSEnumerator::IDBegin ( ) const
inline

Definition at line 341 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

IDIterator sbLDBDSEnumerator::IDBegin ( )
inline

Definition at line 345 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

ConstIDIterator sbLDBDSEnumerator::IDEnd ( ) const
inline

Definition at line 349 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

IDIterator sbLDBDSEnumerator::IDEnd ( )
inline

Definition at line 353 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

static bool sbLDBDSEnumerator::lessThan ( nsID const &  aLeftID,
nsID const &  aRightID 
)
inlinestatic

Definition at line 181 of file sbLocalDatabaseDiffingService.cpp.

Here is the caller graph for this function:

ConstOriginIterator sbLDBDSEnumerator::OriginBegin ( ) const
inline

Definition at line 358 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

OriginIterator sbLDBDSEnumerator::OriginBegin ( )
inline

Definition at line 362 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

ConstOriginIterator sbLDBDSEnumerator::OriginEnd ( ) const
inline

Definition at line 366 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

OriginIterator sbLDBDSEnumerator::OriginEnd ( )
inline

Definition at line 370 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

void sbLDBDSEnumerator::Sort ( )
inline

Definition at line 305 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:


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