vg
tools for working with variation graphs
Public Member Functions | Static Public Member Functions | List of all members
vg::Annotation< T, Enabled > Struct Template Reference

#include <annotation.hpp>

Public Member Functions

void clear (T *t)
 Clear all annotations. More...
 

Static Public Member Functions

static const google::protobuf::Struct & get (const T &t)
 Get the immutable annotations Struct. More...
 
static google::protobuf::Struct * get_mutable (T *t)
 Get the mutable annotations struct. More...
 

Detailed Description

template<typename T, typename Enabled = typename enable_if<!is_pointer<T>::value>::type>
struct vg::Annotation< T, Enabled >

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.

Member Function Documentation

◆ clear()

template<typename T , typename Enabled >
void vg::Annotation< T, Enabled >::clear ( T *  t)

Clear all annotations.

◆ get()

template<typename T , typename Enabled >
const google::protobuf::Struct & vg::Annotation< T, Enabled >::get ( const T &  t)
static

Get the immutable annotations Struct.

◆ get_mutable()

template<typename T , typename Enabled >
google::protobuf::Struct * vg::Annotation< T, Enabled >::get_mutable ( T *  t)
static

Get the mutable annotations struct.


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