|
Core Library
1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
|
Class defining a single cell within a row of the grid. More...
#include <CsvGridCell.h>
Public Member Functions | |
| Cell ()=default | |
| Default constructor. | |
| Cell (const Cell &)=default | |
| Copy constructor. | |
| Cell (Cell &&)=default | |
| Move constructor. | |
| Cell (const std::string &value) | |
| Initializing constructor. More... | |
| Cell (int32_t value) | |
| Initializing constructor. More... | |
| Cell (int64_t value) | |
| Initializing constructor. More... | |
| Cell (float value) | |
| Initializing constructor. More... | |
| Cell (double value) | |
| Initializing constructor. More... | |
| Cell (long double value) | |
| Initializing constructor. More... | |
| ~Cell ()=default | |
| Destructor. | |
| Cell & | operator= (const Cell &)=default |
| Copy assignment operator. | |
| Cell & | operator= (Cell &&)=default |
| Move assignment operator. | |
| Cell & | operator= (const std::string &rhs) |
| Value assignment operator. More... | |
| Cell & | operator= (int32_t rhs) |
| Value assignment operator. More... | |
| Cell & | operator= (int64_t rhs) |
| Value assignment operator. More... | |
| Cell & | operator= (float rhs) |
| Value assignment operator. More... | |
| Cell & | operator= (double rhs) |
| Value assignment operator. More... | |
| Cell & | operator= (long double rhs) |
| Value assignment operator. More... | |
| std::string | Value () const |
| Value method. More... | |
| operator std::string () const | |
| Cast operator. More... | |
| operator int32_t () const | |
| Cast operator. More... | |
| operator int64_t () const | |
| Cast operator. More... | |
| operator float () const | |
| Cast operator. More... | |
| operator double () const | |
| Cast operator. More... | |
| operator long double () const | |
| Cast operator. More... | |
| int32_t | ToInt32Def (int32_t defval=0) const NO_EXCEPT_ |
| Conversion function. More... | |
| int64_t | ToInt64Def (int64_t defval=0) const NO_EXCEPT_ |
| Conversion function. More... | |
| float | ToFloatDef (float defval=0.0f) const NO_EXCEPT_ |
| Conversion function. More... | |
| double | ToDoubleDef (double defval=0.0) const NO_EXCEPT_ |
| Conversion function. More... | |
| long double | ToLongDoubleDef (long double defval=0.0L) const NO_EXCEPT_ |
| Conversion function. More... | |
Private Attributes | |
| std::string | m_value {} |
| The cell's value data memeber. | |
Class defining a single cell within a row of the grid.
This class provides the definition of the interface for a cell within a row in the grid. A cell can be thought of as the value in a given column index within the grid.
|
explicit |
Initializing constructor.
| [in] | value | - The initial value. |
Initialise the cell with a string.
|
explicit |
Initializing constructor.
| [in] | value | - The initial value. |
Initialise the cell with a 32bit integer value.
|
explicit |
Initializing constructor.
| [in] | value | - The initial value. |
Initialise the cell with a 64bit integer value.
|
explicit |
Initializing constructor.
| [in] | value | - The initial value. |
Initialise the cell with a single precision floating point value.
|
explicit |
Initializing constructor.
| [in] | value | - The initial value. |
Initialise the cell with a double precision floating point value.
|
explicit |
Initializing constructor.
| [in] | value | - The initial value. |
Initialise the cell with a long double precision floating point value.
| core_lib::csv_grid::Cell::operator double | ( | ) | const |
Cast operator.
Cast the cell to a double.
| core_lib::csv_grid::Cell::operator float | ( | ) | const |
Cast operator.
Cast the cell to a float.
| core_lib::csv_grid::Cell::operator int32_t | ( | ) | const |
Cast operator.
Cast the cell to a 32bit integer.
| core_lib::csv_grid::Cell::operator int64_t | ( | ) | const |
Cast operator.
Cast the cell to a 64bit integer.
| core_lib::csv_grid::Cell::operator long double | ( | ) | const |
Cast operator.
Cast the cell to a long double.
| core_lib::csv_grid::Cell::operator std::string | ( | ) | const |
| Cell & core_lib::csv_grid::Cell::operator= | ( | const std::string & | rhs | ) |
Value assignment operator.
| [in] | rhs | - The value to assign. |
Assign to a string.
| Cell & core_lib::csv_grid::Cell::operator= | ( | int32_t | rhs | ) |
Value assignment operator.
| [in] | rhs | - The value to assign. |
Assign to a 32bit integer value.
| Cell & core_lib::csv_grid::Cell::operator= | ( | int64_t | rhs | ) |
Value assignment operator.
| [in] | rhs | - The value to assign. |
Assign to a 64bit integer value.
| Cell & core_lib::csv_grid::Cell::operator= | ( | float | rhs | ) |
Value assignment operator.
| [in] | rhs | - The value to assign. |
Assign to a single precision floating point value.
| Cell & core_lib::csv_grid::Cell::operator= | ( | double | rhs | ) |
Value assignment operator.
| [in] | rhs | - The value to assign. |
Assign to a double precision floating point value.
| Cell & core_lib::csv_grid::Cell::operator= | ( | long double | rhs | ) |
Value assignment operator.
| [in] | rhs | - The value to assign. |
Assign to a long double precision floating point value.
| double core_lib::csv_grid::Cell::ToDoubleDef | ( | double | defval = 0.0 | ) | const |
Conversion function.
| [in] | defval | - The default value to return in case of a failure. |
Convert the cell to a double and if this cannot be performed safely return the default value instead.
| float core_lib::csv_grid::Cell::ToFloatDef | ( | float | defval = 0.0f | ) | const |
Conversion function.
| [in] | defval | - The default value to return in case of a failure. |
Convert the cell to a float and if this cannot be performed safely return the default value instead.
| int32_t core_lib::csv_grid::Cell::ToInt32Def | ( | int32_t | defval = 0 | ) | const |
Conversion function.
| [in] | defval | - The default value to return in case of a failure. |
Convert the cell to a 32bit integer and if this cannot be performed safely return the default value instead.
| int64_t core_lib::csv_grid::Cell::ToInt64Def | ( | int64_t | defval = 0 | ) | const |
Conversion function.
| [in] | defval | - The default value to return in case of a failure. |
Convert the cell to a 64bit integer and if this cannot be performed safely return the default value instead.
| long double core_lib::csv_grid::Cell::ToLongDoubleDef | ( | long double | defval = 0.0L | ) | const |
Conversion function.
| [in] | defval | - The default value to return in case of a failure. |
Convert the cell to a long double and if this cannot be performed safely return the default value instead.
| std::string core_lib::csv_grid::Cell::Value | ( | ) | const |
Value method.