docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
sdfg::helpers Namespace Reference

Functions

template<typename T>
T & indirect (const std::unique_ptr< T > &ptr)
template<typename T>
const T & add_const (T &s)
bool is_number (const std::string &s)
uint64_t parse_number_unsigned (const std::string &s)
int64_t parse_number_signed (const std::string &s)
bool endswith (std::string const &value, std::string const &ending)
template<class S, class T>
std::string join (std::vector< T > &elems, S &delim)
void split (std::vector< std::string > &result, std::string s, std::string del=" ")
template<typename T>
bool sets_intersect (const std::unordered_set< T > &set1, const std::unordered_set< T > &set2)

Function Documentation

◆ add_const()

template<typename T>
const T & sdfg::helpers::add_const ( T & s)
inline

◆ endswith()

bool sdfg::helpers::endswith ( std::string const & value,
std::string const & ending )
inline

◆ indirect()

template<typename T>
T & sdfg::helpers::indirect ( const std::unique_ptr< T > & ptr)
inline

◆ is_number()

bool sdfg::helpers::is_number ( const std::string & s)
inline

◆ join()

template<class S, class T>
std::string sdfg::helpers::join ( std::vector< T > & elems,
S & delim )
inline

◆ parse_number_signed()

int64_t sdfg::helpers::parse_number_signed ( const std::string & s)
inline

◆ parse_number_unsigned()

uint64_t sdfg::helpers::parse_number_unsigned ( const std::string & s)
inline

◆ sets_intersect()

template<typename T>
bool sdfg::helpers::sets_intersect ( const std::unordered_set< T > & set1,
const std::unordered_set< T > & set2 )
inline

◆ split()

void sdfg::helpers::split ( std::vector< std::string > & result,
std::string s,
std::string del = " " )
inline