12#ifndef ARCANE_STD_SIMPLETABLEINTERNALMNG_H
13#define ARCANE_STD_SIMPLETABLEINTERNALMNG_H
17#include "arcane/core/ISimpleTableInternalMng.h"
18#include "arcane/utils/FatalErrorException.h"
29class SimpleTableInternalMng
35 : m_simple_table_internal(simple_table_internal)
37 if (simple_table_internal.
isNull())
38 ARCANE_FATAL(
"La réference passée en paramètre est Null.");
41 SimpleTableInternalMng()
42 : m_simple_table_internal()
46 virtual ~SimpleTableInternalMng() =
default;
#define ARCANE_FATAL(...)
Macro throwing a FatalErrorException.
Constant view of an array of type T.
Class interface representing a manager for SimpleTableInternal (aka STI).
bool isNull() const
Indicates if the counter references a non-null instance.
Reference to an instance.
bool editElementLeft(Real element, bool update_last_position) override
Method to edit an element to the left of the last element most recently manipulated (same row/column ...
bool addElementInRow(Integer position, Real element) override
Method to add an element to a row.
Ref< SimpleTableInternal > internal() override
Method allowing retrieval of a reference to the object SimpleTableInternal used.
Integer rowPosition(const String &row_name) override
Method allowing retrieval of the position of a row.
bool addElementInColumn(Integer position, Real element) override
Method to add an element to a column.
String columnName(Integer position) override
Method allowing retrieval of the name of a column from its position.
bool addElementsInColumn(Integer position, ConstArrayView< Real > elements) override
Method to add multiple elements to a column.
Integer numberOfRows() override
Method allowing retrieval of the number of rows in the table. This is, in a sense,...
RealUniqueArray column(Integer position) override
Method allowing retrieval of a copy of a column.
bool addElementsInSameColumn(ConstArrayView< Real > elements) override
Method to add multiple elements to the column most recently manipulated.
bool addRows(StringConstArrayView rows_names) override
Method to add multiple rows.
bool addElementsInSameRow(ConstArrayView< Real > elements) override
Method to add multiple elements to the row most recently manipulated.
Real elementDown(bool update_last_position) override
Method allowing retrieval of an element below the last element recently manipulated (row below/same c...
void clearInternal() override
Method to clear the content of the SimpleTableInternal.
void setInternal(const Ref< SimpleTableInternal > &simple_table_internal) override
Method allowing setting a reference to a SimpleTableInternal.
Real element() override
Method allowing retrieval of a copy of an element.
bool editElementDown(Real element, bool update_last_position) override
Method to edit an element below the last element most recently manipulated (row below/same column).
Integer addAverageColumn(const String &column_name) override
Method allowing creation of a column containing the average of elements of each row.
bool editColumnName(Integer position, const String &new_name) override
Method allowing changing the name of a column.
bool editRowName(Integer position, const String &new_name) override
Method allowing changing the name of a row.
bool addElementInSameColumn(Real element) override
Method to add an element to the column most recently manipulated.
String rowName(Integer position) override
Method allowing retrieval of the name of a row from its position.
Integer addColumn(const String &column_name) override
Method to add a column.
RealUniqueArray row(Integer position) override
Method allowing retrieval of a copy of a row.
Real elementUp(bool update_last_position) override
Method allowing retrieval of an element above the last element recently manipulated (row above/same c...
bool editElementRight(Real element, bool update_last_position) override
Method allowing editing an element to the right of the last element recently manipulated (same row/co...
bool addElementInSameRow(Real element) override
Method to add an element to the row most recently manipulated.
bool addElementsInRow(Integer position, ConstArrayView< Real > elements) override
Method to add multiple elements to a row.
Integer rowSize(Integer position) override
Method allowing retrieval of the size of a row. Including hypothetical 'gaps' in the row.
Integer columnSize(Integer position) override
Method allowing retrieval of the size of a column. Including hypothetical 'gaps' in the column.
bool editElement(Real element) override
Method allowing modification of an element in the table.
bool editElementUp(Real element, bool update_last_position) override
Method to edit an element above the last element most recently manipulated (row above/same column).
Integer numberOfColumns() override
Method allowing retrieval of the number of columns in the table. This is, in a sense,...
Integer columnPosition(const String &column_name) override
Method allowing retrieval of the position of a column.
Real elementRight(bool update_last_position) override
Method allowing retrieval of an element to the right of the last element recently manipulated (same r...
Integer addRow(const String &row_name) override
Method to add a row.
Real elementLeft(bool update_last_position) override
Method allowing retrieval of an element to the left of the last element recently manipulated (same ro...
bool addColumns(StringConstArrayView columns_names) override
Method to add multiple columns.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< String > StringConstArrayView
C equivalent of a 1D array of strings.
Int32 Integer
Type representing an integer.
UniqueArray< Real > RealUniqueArray
Dynamic 1D array of reals.
double Real
Type representing a real number.