vg
tools for working with variation graphs
Static Public Member Functions | List of all members
vg::IDScanner< Message > Struct Template Reference

#include <scanner.hpp>

Static Public Member Functions

static bool scan (const Message &msg, const function< bool(const id_t &)> &iteratee)
 

Detailed Description

template<typename Message>
struct vg::IDScanner< Message >

We define an IDScanner which scans over all node ID references in a tree of VG Protobuf objects. May emit the same ID multiple times. Will only emit the 0 node ID if a Graph or Path contains no nonzero node IDs.

Member Function Documentation

◆ scan()

template<typename Message >
bool vg::IDScanner< Message >::scan ( const Message &  msg,
const function< bool(const id_t &)> &  iteratee 
)
static

Scan over the node IDs in this message and all its children. Returns false if an iteratee returned false and asked to stop.


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