31 copy.cols = cols.
clone();
32 copy.rows = rows.
clone();
33 copy.cells = cells.
clone();
42 if (rows[rowIdx].empty()) {
43 return "Run " + std::to_string(rowIdx + 1);
54 return cols[colIdx].key;
58 return cols[colIdx].node;
62 return cells[
Pixel(colIdx, rowIdx)];
70 cols[colIdx].key = key;
71 cols[colIdx].node = node;
75 cells[
Pixel(colIdx, rowIdx)] = value;
86 for (
Size j = 0; j < minRowCnt; ++j) {
87 for (
Size i = 0; i < minColCnt; ++i) {
94 const std::string runName = rows[rowIdx];
95 rows.
insert(rowIdx, runName);
98 for (
Size j = 0; j < rows.
size(); ++j) {
99 for (
Size i = 0; i < cols.
size(); ++i) {
100 const Size j0 = j <= rowIdx ? j : j - 1;
104 cells = std::move(newCells);
110 for (
Size j = 0; j < rows.
size(); ++j) {
111 for (
Size i = 0; i < cols.
size(); ++i) {
112 const Size j0 = j <= rowIdx ? j : j + 1;
116 cells = std::move(newCells);
129 void modifyNode(
JobNode& node,
const Size runIdx,
const Size paramIdx);
Wrapper of wxBitmap, will be possibly replaced by custom implementation.
uint32_t Size
Integral type used to index arrays (by default).
NAMESPACE_SPH_BEGIN constexpr INLINE T min(const T &f1, const T &f2)
Minimum & Maximum value.
#define NAMESPACE_SPH_END
Object providing safe access to continuous memory of data.
void resize(const TCounter newSize)
Resizes the array to new size.
void remove(const TCounter idx)
Removes an element with given index from the array.
void insert(const TCounter position, U &&value)
Inserts a new element to given position in the array.
INLINE TCounter size() const noexcept
Array clone() const
Performs a deep copy of all elements of the array.
BatchManager & getBatch()
BatchDialog(wxWindow *parent, const BatchManager &manager, Array< SharedPtr< JobNode >> &&nodes)
std::string getParamKey(const Size colIdx) const
void save(Config &config)
void setCell(const Size colIdx, const Size rowIdx, const std::string &value)
void deleteRun(const Size rowIdx)
Size getParamCount() const
void load(Config &config, ArrayView< const SharedPtr< JobNode >> nodes)
std::string getRunName(const Size rowIdx) const
void resize(const Size rowCnt, const Size colCnt)
void duplicateRun(const Size rowIdx)
void modifyHierarchy(const Size runIdx, JobNode &node)
Modifies the settings of the given node hierarchy.
std::string getCell(const Size colIdx, const Size rowIdx) const
void setRunName(const Size rowIdx, const std::string &name)
BatchManager clone() const
SharedPtr< JobNode > getParamNode(const Size colIdx) const
void setParam(const Size colIdx, const SharedPtr< JobNode > &node, const std::string &key)
void resize(const Pixel newResolution, const Type &value)
Provides functionality for reading and writing configuration files.
Building block of a simulation hierarchy.