20#include "../ui/language.hpp"
21#include "../utils/tools.hpp"
37 std::vector<std::string> vVect(idx.
size());
39 for (
size_t i = 0; i < idx.
size(); i++)
59 std::vector<std::string> vVect(idx.
size());
61 for (
size_t i = 0; i < idx.
size(); i++)
81 std::vector<mu::value_type> vVect(idx.
size());
83 for (
size_t i = 0; i < idx.
size(); i++)
103 for (
size_t i = 0; i < idx.
size(); i++)
105 if (i >= vValue.size())
124 for (
size_t i = 0; i < idx.
size(); i++)
126 if (i >= vValue.size())
146 for (
size_t i = 0; i < idx.
size(); i++)
178 for (
int i =
size()-1; i >= 0; i--)
203 for (
size_t i =
size(); i > 0; i--)
270 if (sType ==
"value")
272 else if (sType ==
"string")
274 else if (sType ==
"datetime")
276 else if (sType ==
"logical")
278 else if (sType ==
"category")
294 return {
"value",
"string",
"datetime",
"logical",
"category"};
This class handles the internal language system and returns the language strings of the selected lang...
std::string get(const std::string &sMessage, const std::vector< std::string > &vTokens) const
This member function returns the language string for the passed language identifier and replaces all ...
This class abstracts all the index logics, i.e. the logical differences between single indices and in...
void setOpenEndIndex(int nLast) const
This member function can be used to replace the open end state with a defined index value although th...
size_t size() const
This member function returns the size of the indices stored in this class.
MUP_BASETYPE value_type
The numeric datatype used by the parser.
Abstract table column, which allows using it to compose the data table in each Memory instance.
virtual bool isValid(int elem) const =0
void shrink()
Shrink the column by removing all invalid elements from the end.
std::vector< std::string > getValueAsInternalString(const VectorIndex &idx) const
Returns the table column's contents as a vector containing internal strings.
size_t getNumFilledElements() const
Return the number of actual filled elements in this column, which can be different from the actual si...
TableColumn * copy() const
Simplification wrapper around the indiced copy method to copy the whole column.
static ColumnType stringToType(const std::string &sType)
Converts the passed string representation to a ColumnType value.
virtual size_t size() const =0
std::vector< mu::value_type > getValue(const VectorIndex &idx) const
Return the table column's contents as a vector of numerical types.
virtual void resize(size_t elem)=0
static std::string getDefaultColumnHead(size_t colNo)
Creates a default column headline for a column, which can be used without an instance of this class.
static std::string typeToString(ColumnType type)
Converts the passed ColumnType value to a string representation.
std::vector< std::string > getValueAsString(const VectorIndex &idx) const
Return the table column's contents as a vector of strings.
static std::vector< std::string > getTypesAsString()
Returns a list of all available column types as strings.
void setValue(const VectorIndex &idx, const std::vector< std::string > &vValue)
Sets a string vector at the specified indices.
std::string toString(int)
Converts an integer to a string without the Settings bloat.