docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
helpers.h File Reference
#include <cassert>
#include <cstdint>
#include <memory>
#include <sstream>
#include <string>
#include <unordered_set>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  sdfg
namespace  sdfg::helpers

Macros

#define DEBUG_PRINTLN(msg)
#define DEBUG_PRINT(msg)
#define WARN_PRINTLN(msg)

Functions

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

Macro Definition Documentation

◆ DEBUG_PRINT

#define DEBUG_PRINT ( msg)
Value:
do { \
std::cerr << "[DEBUG] " << msg; \
} while (0)

◆ DEBUG_PRINTLN

#define DEBUG_PRINTLN ( msg)
Value:
do { \
std::cerr << "[DEBUG] " << msg << std::endl; \
} while (0)

◆ WARN_PRINTLN

#define WARN_PRINTLN ( msg)
Value:
do { \
std::cerr << "[WARN] " << msg << std::endl; \
} while (0)