farm-ng-core
farm_ng::details Namespace Reference

Classes

struct  CheckNear
 
struct  CheckNear< Eigen::Matrix< Scalar, M, N > >
 
struct  CheckNear< TT, std::enable_if_t< std::is_arithmetic_v< TT >, void > >
 
struct  UnwrapImpl
 
struct  UnwrapImpl< tl::expected< TT, TE > >
 

Functions

template<class... TArgs>
std::string runtimeFormatImpl (std::string const &file, int line, std::string const &str, TArgs &&...args)
 
template<class TContainer >
auto checkedAtContiguousContainer (TContainer &container, size_t index, char const *container_cstr, char const *index_cstr, std::string const &file, int line, std::string const &func, std::string const &str) -> decltype(container[index])
 
template<class TContainer , class TKey >
auto checkedGetFromAssociativeContainer (TContainer &container, TKey const &key, char const *container_cstr, char const *key_cstr, std::string const &file, int line, std::string const &func, std::string const &str) -> decltype(*(container.find(key)))
 
template<class TMapLike , class TKey , class TValue >
auto insertKeyValueInMap (TMapLike &map, TKey const &key, TValue const &value, char const *container_cstr, char const *key_cstr, char const *value_cstr, std::string const &file, int line, std::string const &func, std::string const &str)
 
template<class TWrapper >
auto unwrapImpl (TWrapper &wrapper, char const *wrapper_cstr, ::farm_ng::ErrorDetail detail) -> decltype(*wrapper)
 

Function Documentation

◆ checkedAtContiguousContainer()

template<class TContainer >
auto farm_ng::details::checkedAtContiguousContainer ( TContainer &  container,
size_t  index,
char const *  container_cstr,
char const *  index_cstr,
std::string const &  file,
int  line,
std::string const &  func,
std::string const &  str 
) -> decltype(container[index])

◆ checkedGetFromAssociativeContainer()

template<class TContainer , class TKey >
auto farm_ng::details::checkedGetFromAssociativeContainer ( TContainer &  container,
TKey const &  key,
char const *  container_cstr,
char const *  key_cstr,
std::string const &  file,
int  line,
std::string const &  func,
std::string const &  str 
) -> decltype(*(container.find(key)))

◆ insertKeyValueInMap()

template<class TMapLike , class TKey , class TValue >
auto farm_ng::details::insertKeyValueInMap ( TMapLike &  map,
TKey const &  key,
TValue const &  value,
char const *  container_cstr,
char const *  key_cstr,
char const *  value_cstr,
std::string const &  file,
int  line,
std::string const &  func,
std::string const &  str 
)

◆ runtimeFormatImpl()

template<class... TArgs>
std::string farm_ng::details::runtimeFormatImpl ( std::string const &  file,
int  line,
std::string const &  str,
TArgs &&...  args 
)

◆ unwrapImpl()

template<class TWrapper >
auto farm_ng::details::unwrapImpl ( TWrapper &  wrapper,
char const *  wrapper_cstr,
::farm_ng::ErrorDetail  detail 
) -> decltype(*wrapper)