NetCDF Timestamp Mapper  1.0
Maps timestamps (and variables) to netCDF files using sqlite3.
tsm::utils Namespace Reference

Classes

class  ProgressBar
 

Typedefs

template<typename T >
using deleted_unique_ptr = std::unique_ptr< T, std::function< void(T *)> >
 Template wrapper around a unique_ptr to allow passing a custom deleter lambda. More...
 

Functions

template<class Func , class... Args>
auto timer (Func func, Args &&...args) -> typename std::enable_if_t< !std::is_same_v< decltype(func(std::forward< Args >(args)...)), void >, std::pair< double, decltype(func(std::forward< Args >(args)...)) > >
 https://stackoverflow.com/a/24469673/2231969 More...
 

Typedef Documentation

template<typename T >
using tsm::utils::deleted_unique_ptr = typedef std::unique_ptr<T, std::function<void(T*)> >

Template wrapper around a unique_ptr to allow passing a custom deleter lambda.

Function Documentation

template<class Func , class... Args>
auto tsm::utils::timer ( Func  func,
Args &&...  args 
) -> typename std::enable_if_t< !std::is_same_v<decltype( func( std::forward<Args>(args)... ) ), void>, std::pair<double, decltype( func( std::forward<Args>(args)... ) ) > >
inline