template<typename Operation, typename Scalar>
hub::callback::LogTimeSlice class

Template parameters
Operation Callable object.
Scalar

Constructors, destructors, conversion operators

LogTimeSlice() defaulted
LogTimeSlice(LogTimeSlice const&) defaulted
LogTimeSlice(LogTimeSlice&&) defaulted
LogTimeSlice(Operation const& opt, Scalar start, Scalar end, size_t opt_num = 5000)

Public functions

auto operator=(LogTimeSlice const&) -> LogTimeSlice& defaulted
auto operator=(LogTimeSlice&&) -> LogTimeSlice& defaulted
template<typename ParticleSys>
auto operator()(ParticleSys& ptc, typename ParticleSys::Scalar step_size) >>, void > -> auto
template<typename ParticleSys>
auto operator()(ParticleSys& ptc, typename ParticleSys::Scalar step_size) >>, bool > -> auto
void reset_slice_params(Scalar start, Scalar end, size_t opt_num = 5000)

Function documentation

template<typename Operation, typename Scalar>
hub::callback::LogTimeSlice<Operation, Scalar>::LogTimeSlice() defaulted

Default constructor.

template<typename Operation, typename Scalar>
hub::callback::LogTimeSlice<Operation, Scalar>::LogTimeSlice(LogTimeSlice const&) defaulted

Default copy constructor.

template<typename Operation, typename Scalar>
hub::callback::LogTimeSlice<Operation, Scalar>::LogTimeSlice(LogTimeSlice&&) defaulted

Default move constructor

template<typename Operation, typename Scalar>
hub::callback::LogTimeSlice<Operation, Scalar>::LogTimeSlice(Operation const& opt, Scalar start, Scalar end, size_t opt_num = 5000)

Parameters
opt in Callable object
start in The start time of the time slice
end in The end time of the time slice
opt_num in The bin number of the time slice. i.e time interval = (end-start)/opt_num

Constructor of the time slice

template<typename Operation, typename Scalar>
LogTimeSlice& hub::callback::LogTimeSlice<Operation, Scalar>::operator=(LogTimeSlice const&) defaulted

Default copy assignment operator

template<typename Operation, typename Scalar>
LogTimeSlice& hub::callback::LogTimeSlice<Operation, Scalar>::operator=(LogTimeSlice&&) defaulted

Default move assignment operator

template<typename Operation, typename Scalar> template<typename ParticleSys>
auto hub::callback::LogTimeSlice<Operation, Scalar>::operator()(ParticleSys& ptc, typename ParticleSys::Scalar step_size) >>, void >

Template parameters
ParticleSys Any type provides method time()
Parameters
ptc in/out Input parameter.
step_size in The step size of the integration.

Callable interface.

template<typename Operation, typename Scalar> template<typename ParticleSys>
auto hub::callback::LogTimeSlice<Operation, Scalar>::operator()(ParticleSys& ptc, typename ParticleSys::Scalar step_size) >>, bool >

Template parameters
ParticleSys Any type provides method time()
Parameters
ptc in/out Input parameter.
step_size in The step size of the integration.
Returns auto bool

Callable interface.

template<typename Operation, typename Scalar>
void hub::callback::LogTimeSlice<Operation, Scalar>::reset_slice_params(Scalar start, Scalar end, size_t opt_num = 5000)

Parameters
start in The start time of the time slice.
end in The end time of the time slice.
opt_num in The bin number of the time slice. i.e time interval = (end-start)/opt_num

Reset the slice parameters.