vg
tools for working with variation graphs
|
#include <annotation.hpp>
Public Member Functions | |
void | clear (T *t) |
Clear all annotations. | |
Static Public Member Functions | |
static const google::protobuf::Struct & | get (const T &t) |
Get the immutable annotations Struct. | |
static google::protobuf::Struct * | get_mutable (T *t) |
Get the mutable annotations struct. | |
We define an adapter for things that are annotated to let us get at the annotation struct. It is only defined for the actual types (Alignment, MultipathAlignment) and not pointers to them. This keeps the API overloads that are supposed to be for references to the types from operating on references to pointers to the types instead.
void vg::Annotation< T, Enabled >::clear | ( | T * | t | ) |
Clear all annotations.
|
static |
Get the immutable annotations Struct.
|
static |
Get the mutable annotations struct.