vg
tools for working with variation graphs
|
#include <scanner.hpp>
Public Member Functions | |
bool | scan (const Mapping &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Path &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Alignment &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Node &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Edge &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Graph &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Mapping &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Path &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Alignment &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Node &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Edge &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
bool | scan (const Graph &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
Static Public Member Functions | |
static bool | scan (const Message &msg, const function< bool(const Position &)> &pos_iteratee, const function< bool(const id_t &)> &id_iteratee) |
We define a PositionIDScanner that scans a VG Protobuf message tree for whole Position objects and node IDs. Each of the two is visited with its own iteratee function. May emit the same Position or id multiple times. Will never emit an empty Position. Will only emit the 0 node ID if a Graph or Path contains no nonzero node IDs.
bool vg::PositionIDScanner< Alignment >::scan | ( | const Alignment & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Alignment >::scan | ( | const Alignment & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Edge >::scan | ( | const Edge & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Edge >::scan | ( | const Edge & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Graph >::scan | ( | const Graph & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Graph >::scan | ( | const Graph & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Mapping >::scan | ( | const Mapping & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Mapping >::scan | ( | const Mapping & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
|
static |
Scan over the Position objects and non-Position-wrapped node IDs in this message and all its children. Returns false if an iteratee returned false and asked to stop.
bool vg::PositionIDScanner< Node >::scan | ( | const Node & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Node >::scan | ( | const Node & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Path >::scan | ( | const Path & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |
bool vg::PositionIDScanner< Path >::scan | ( | const Path & | msg, |
const function< bool(const Position &)> & | pos_iteratee, | ||
const function< bool(const id_t &)> & | id_iteratee | ||
) |