vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::str_view Struct Reference

#include <gaf_sorter.hpp>

Public Member Functions

 str_view ()
 
 str_view (const char *data, size_t size)
 
 str_view (const std::string &str)
 
bool empty () const
 
char operator[] (size_t i) const
 
str_view substr (size_t start, size_t length) const
 
bool operator== (const str_view &another) const
 
bool operator== (const std::string &another) const
 
std::string to_string () const
 

Public Attributes

const char * data
 
size_t size
 

Detailed Description

This should be std::string_view, but apparently we are still using C++14 in Linux.

Constructor & Destructor Documentation

◆ str_view() [1/3]

vg::str_view::str_view ( )
inline

◆ str_view() [2/3]

vg::str_view::str_view ( const char *  data,
size_t  size 
)
inline

◆ str_view() [3/3]

vg::str_view::str_view ( const std::string &  str)
inline

Member Function Documentation

◆ empty()

bool vg::str_view::empty ( ) const
inline

◆ operator==() [1/2]

bool vg::str_view::operator== ( const std::string &  another) const
inline

◆ operator==() [2/2]

bool vg::str_view::operator== ( const str_view another) const
inline

◆ operator[]()

char vg::str_view::operator[] ( size_t  i) const
inline

◆ substr()

str_view vg::str_view::substr ( size_t  start,
size_t  length 
) const
inline

◆ to_string()

std::string vg::str_view::to_string ( ) const
inline

Member Data Documentation

◆ data

const char* vg::str_view::data

◆ size

size_t vg::str_view::size

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