21#ifndef __ANTARES_LIBS_JUST_IN_TIME_INFORMATIONS_HXX__
22#define __ANTARES_LIBS_JUST_IN_TIME_INFORMATIONS_HXX__
24#include <antares/logs/logs.h>
26using namespace Antares;
39using namespace Antares;
41template<
class T,
class ReadWriteT>
48 mtx_not_const->
clear();
51template<
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();
87template<
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;
A n-by-n matrix.
Definition jit.h:30
JIT::Informations * jit
Just-in-time informations.
Definition matrix.h:447
void clear()
Empty the matrix.
Definition matrix.hxx:532
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