21 #ifndef __ANTARES_LIBS_JUST_IN_TIME_INFORMATIONS_HXX__
22 #define __ANTARES_LIBS_JUST_IN_TIME_INFORMATIONS_HXX__
24 #include <antares/logs/logs.h>
26 using namespace Antares;
39 using namespace Antares;
41 template<
class T,
class ReadWriteT>
48 mtx_not_const->
clear();
51 template<
class T,
class ReadWriteT>
54 using namespace Antares;
73 Yuni::String buffer = file_name_;
79 ? jit_recorded_state()->minWidth
81 jit_->maxHeight = jit_recorded_state()->maxHeight;
82 jit_->options = jit_recorded_state()->options;
83 mtx_not_const->clear();
87 template<
class T,
class ReadWriteT>
90 if (not jit_->alreadyLoaded)
94 logs.debug() <<
" Force loading of " << jit_->sourceFilename;
95 const bool modi = jit_->modified;
97 mtx_not_const->loadFromCSVFile(jit_->sourceFilename,
102 jit_->modified = modi;
104 jit_->loadDataIfNotAlreadyDone =
false;
JIT::Informations * jit
Just-in-time informations.
Definition: matrix.h:447
void clear()
Empty the matrix.
Definition: matrix.hxx:531
static Informations * Reset(Informations *jit, const AnyString &filename)
Reset the source filename.
Definition: jit.cpp:80
static bool IsReady(Informations *j)
Get if the data has been loaded.
Definition: jit.hxx:28
static bool enabled
Flag to enable/disable JIT informations.
Definition: jit.h:179
static void MarkAsNotLoaded(Informations *j)
Mark the attached object as not loaded.
Definition: jit.cpp:101