pstore2
Classes | Functions
diff.hpp File Reference

Comparing the contents of an index between two transactions. More...

#include "pstore/core/hamt_set.hpp"
Include dependency graph for diff.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pstore::diff_details::traverser< Index >
 

Functions

template<typename Index , typename OutputIterator >
OutputIterator pstore::diff (database const &db, Index const &index, revision_number const old, OutputIterator out)
 Write a series of addresses to an output iterator of the objects that were added to an index between the current revision and the revision number given by old. More...
 

Detailed Description

Comparing the contents of an index between two transactions.

Function Documentation

◆ diff()

template<typename Index , typename OutputIterator >
OutputIterator pstore::diff ( database const &  db,
Index const &  index,
revision_number const  old,
OutputIterator  out 
)

Write a series of addresses to an output iterator of the objects that were added to an index between the current revision and the revision number given by old.

Parameters
dbThe owning database instance.
indexThe index to be traversed.
oldThe revision number against which the index is to be compared.
outThe output iterator to which the address of objects added to the index since the given old revision.
Returns
The output iterator to which results were written.