vt::runtime::component::Progressable struct

The abstract Progressable trait for pollable components to make progress from the scheduler.

Derived classes

struct BaseComponent
The abstract BaseComponent for VT runtime component pack.

Constructors, destructors, conversion operators

~Progressable() defaulted virtual

Public functions

auto progress(TimeType current_time) -> int pure virtual
Progress function for incremental polling.
auto needsCurrentTime() -> bool virtual
Whether the component needs the current time.

Function documentation

int vt::runtime::component::Progressable::progress(TimeType current_time) pure virtual

Progress function for incremental polling.

Parameters
current_time in current time
Returns the number of units executed—zero if no progress was made

bool vt::runtime::component::Progressable::needsCurrentTime() virtual

Whether the component needs the current time.

Returns whether it needs time