idol
A C++ Framework for Optimization
|
#include <Versions.h>
Public Member Functions | |
template<class ... ArgsT> | |
Versions (ArgsT &&...t_args) | |
Versions (const Versions &)=delete | |
Versions (Versions &&) noexcept=delete | |
Versions & | operator= (const Versions &)=delete |
Versions & | operator= (Versions &&) noexcept=delete |
template<class ... ArgsT> | |
void | create (const Model &t_model, unsigned int t_index, ArgsT &&...t_args) |
void | remove (const Model &t_model) |
bool | has (const Model &t_model) const |
const T & | get (const Model &t_model) const |
T & | get (const Model &t_model) |
const T & | get_default () const |
T & | get_default () |
template<class ValueT > | |
const ValueT * | get_annotation (unsigned int t_index) const |
template<class ValueT , class ... ArgsT> | |
void | set_annotation (unsigned int t_index, ArgsT &&...t_args) |
This class is used to store the different versions associated to a given object (e.g., a variable).
T | the class representing an object's version |
Definition at line 27 of file Versions.h.
|
inlineexplicit |
Definition at line 33 of file Versions.h.
void idol::Versions< T >::create | ( | const Model & | t_model, |
unsigned int | t_index, | ||
ArgsT &&... | t_args | ||
) |
Definition at line 86 of file Versions.h.
T & idol::Versions< T >::get | ( | const Model & | t_model | ) |
Definition at line 109 of file Versions.h.
const T & idol::Versions< T >::get | ( | const Model & | t_model | ) | const |
Definition at line 100 of file Versions.h.
const ValueT * idol::Versions< T >::get_annotation | ( | unsigned int | t_index | ) | const |
Definition at line 67 of file Versions.h.
T & idol::Versions< T >::get_default | ( | ) |
Definition at line 80 of file Versions.h.
const T & idol::Versions< T >::get_default | ( | ) | const |
Definition at line 75 of file Versions.h.
bool idol::Versions< T >::has | ( | const Model & | t_model | ) | const |
Definition at line 124 of file Versions.h.
void idol::Versions< T >::remove | ( | const Model & | t_model | ) |
Definition at line 118 of file Versions.h.
|
inline |
Definition at line 57 of file Versions.h.