|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
A supplier of instances of T. More...
#include <supplier.hpp>
Public Member Functions | |
| Supplier (std::function< T(void)> ifunc) | |
| virtual | ~Supplier ()=default |
| T | get () const |
| Get an instance of type T. | |
Protected Attributes | |
| std::function< T(void)> | func |
A supplier of instances of T.
| T | the type to supply |
Definition at line 16 of file supplier.hpp.
|
inlineexplicit |
Definition at line 18 of file supplier.hpp.
|
virtualdefault |
|
inline |
Get an instance of type T.
This is usually a new instance, but it does not have to be.
Definition at line 27 of file supplier.hpp.
|
protected |
Definition at line 32 of file supplier.hpp.