30long long int intCast(
const std::complex<double>&);
125 std::swap(
vStorage, vIndex.vStorage);
142 for (
int i = 0; i < nResults; i++)
244 if (nLen >
size() - pos)
451 void append(
const std::vector<int>& vVector)
537 std::vector<int> vReturn;
539 for (
size_t i = 0; i <
size(); i++)
585 for (
size_t i = 1; i <
vStorage.size(); i++)
725 for (
size_t i = 0; i <
vStorage.size(); i++)
796 std::string sVect =
"{";
798 for (
size_t i = 0; i <
size(); i++)
803 if (
size() >= 5u && i == 2)
865 std::vector<T>::operator=(vec);
881 if (n < std::vector<T>::size())
882 return std::vector<T>::operator[](n);
928 if (len == std::string::npos || pos+len >
m_len)
976 virtual inline const std::string*
getData()
const
992 const std::string* thisString =
getData();
993 const std::string* viewString = view.
getData();
994 if (thisString && viewString)
1011 const std::string* thisString =
getData();
1014 return thisString->compare(
m_start,
m_len, sString) == 0;
1029 const std::string* thisString =
getData();
1032 return thisString->compare(
m_start,
m_len, sString) == 0;
1250 inline std::string
operator+(
const std::string& sString)
const
1253 return std::string(
begin(),
end()).append(sString);
1271 throw std::out_of_range(
"StringView::front");
1287 throw std::out_of_range(
"StringView::back");
1298 inline std::string::const_iterator
begin()
const
1303 return std::string::const_iterator();
1314 inline std::string::const_iterator
end()
const
1319 return std::string::const_iterator();
1371 const std::string* data =
getData();
1434 size_t find(
const std::string& findstr,
size_t pos = 0)
const
1444 return std::string::npos;
1456 size_t find(
char c,
size_t pos = 0)
const
1466 return std::string::npos;
1478 size_t rfind(
const std::string& findstr,
size_t pos = std::string::npos)
const
1489 return std::string::npos;
1501 size_t rfind(
char c,
size_t pos = std::string::npos)
const
1512 return std::string::npos;
1534 return std::string::npos;
1556 return std::string::npos;
1572 size_t fnd =
getData()->find_first_not_of(findstr,
m_start + pos);
1578 return std::string::npos;
1600 return std::string::npos;
1612 size_t find_last_of(
const std::string& findstr,
size_t pos = std::string::npos)
const
1623 return std::string::npos;
1646 return std::string::npos;
1663 size_t fnd =
getData()->find_last_not_of(findstr,
m_start + pos);
1669 return std::string::npos;
1692 return std::string::npos;
1755 virtual inline const std::string*
getData()
const override
1856 m_data = std::move(view.m_data);
1857 m_start = std::move(view.m_start);
1858 m_len = std::move(view.m_len);
1964 m_len += s.length() - len;
1994 if (subpos + sublen > s.length())
1995 sublen = s.length() - subpos;
1998 m_len += sublen - len;
2062 virtual inline const std::string*
getData()
const override
2211 m_data = std::move(view.m_data);
2212 m_start = std::move(view.m_start);
2213 m_len = std::move(view.m_len);
2352 std::swap(_idx.row,
row);
2353 std::swap(_idx.col,
col);
2427 if (
abs(dAlpha / M_PI_2 -
rint(dAlpha / M_PI_2)) < 1e-8)
2433 double x1 = (
x - origin.x) * cos(dAlpha) - (
y - origin.y) * sin(dAlpha) + origin.x;
2434 double y1 = (
x - origin.x) * sin(dAlpha) + (
y - origin.y) * cos(dAlpha) + origin.y;
2503 std::string
sName[4] = {
"x",
"y",
"z",
"t"};
2541 Boundary(
long long int i,
long long int j,
size_t _row,
size_t _col) :
n(i),
m(j),
rows(_row),
cols(_col) {}
This class extends the std::vector for endlessness.
EndlessVector()
Default constructor.
EndlessVector & operator=(const EndlessVector &vec)
Assignment operator overload from same.
EndlessVector(const EndlessVector &vec)
Copy constructor from same.
T & operator[](size_t n)
Access operator overload. Will return default constructed instances of the template type T,...
This class is a mutable version of a string view. It can be used to replace single characters or enti...
MutableStringView & operator=(std::string *data)
Assignment operator for a std::string pointer.
MutableStringView subview(size_t pos=0, size_t len=std::string::npos) const
This member function creates a new MutableStringView class instance using the selected position and l...
MutableStringView & operator=(std::string &data)
Assignment operator for a std::string (non-const) reference.
MutableStringView(std::string &data)
MutableStringView constructor from a (non-const) std::string reference.
MutableStringView & replace(size_t pos, size_t len, const std::string &s)
This member function replaces a range in the internal viewed string with the passed string.
char & operator[](size_t pos)
Implementation of the random access operator. Returns a (non-const) char reference.
MutableStringView(std::string *data)
MutableStringView constructor from a std::string pointer.
MutableStringView & replace(size_t pos, size_t len, const StringViewBase &view)
This member function replaces a range in the internal viewed string with the passed StringViewBase.
MutableStringView & replace(size_t pos, size_t len, const std::string &s, size_t subpos, size_t sublen)
This member function replaces a range in the internal viewed string with the passed string....
MutableStringView(MutableStringView &&view)
MutableStringView move constructor.
MutableStringView()
MutableStringView default constructor.
virtual void clear() override
Override to clear the internal pointer as well.
void assign(std::string *data)
Assignment member function from a std::string pointer.
virtual const std::string * getData() const override
Override to return a pointer to the internal string.
MutableStringView & operator=(MutableStringView &view)
Assignment operator for another MutableStringView instance.
MutableStringView(std::string *data, size_t start, size_t len)
Private constructor used by the subview member function.
void assign(MutableStringView &view)
Assignment member function from another MutableStringView instance.
MutableStringView(MutableStringView &view)
MutableStringView copy constrcutor.
This class is a base class for all string view classes.
bool operator<(const std::string &sString) const
This member function is an overload for the less operator using a const std::string instance.
bool operator==(const StringViewBase &view) const
This member function is an overload for the equality operator using another StringViewBase instance.
std::string operator+(const StringViewBase &view) const
This member function is an overload for the concatenation operator using another StringViewBase insta...
size_t rfind(const std::string &findstr, size_t pos=std::string::npos) const
Wrapper member function for std::string::rfind()
void strip()
This member function shrinks the viewed section to remove all leading or trailing whitespace characte...
size_t validizeLength(size_t pos, size_t len) const
This private member function evaluates, whether the passed length is part of the viewed section and a...
void trim_front(size_t len)
This member function can be used to remove characters from the front of the viewed section.
size_t find_first_of(const std::string &findstr, size_t pos=0) const
Wrapper member function for std::string::find_first_of()
const char & back() const
This member function provides a const char reference to the last character in the viewed section.
size_t rfind(char c, size_t pos=std::string::npos) const
Wrapper member function for std::string::rfind()
size_t find_last_of(const std::string &findstr, size_t pos=std::string::npos) const
Wrapper member function for std::string::find_last_of()
size_t find_last_not_of(const std::string &findstr, size_t pos=std::string::npos) const
Wrapper member function for std::string::find_last_not_of()
size_t find_last_of(char c, size_t pos=std::string::npos) const
Wrapper member function for std::string::find_last_of()
const char & front() const
This member function provides a const char reference to the first character in the viewed section.
std::string to_string() const
This member function returns a copy of the viewed section of the string (via std::string::substr)....
bool operator>=(const StringViewBase &view) const
This member function is an overload for the greater-equal operator using another StringViewBase insta...
StringViewBase()
StringViewBase default constructor.
bool operator==(const std::string &sString) const
This member function is an overload for the equality operator using a const std::string instance.
size_t find(char c, size_t pos=0) const
Wrapper member function for std::string::find()
bool operator>(const std::string &sString) const
This member function is an overload for the greater operator using a const std::string instance.
bool operator>(const StringViewBase &view) const
This member function is an overload for the greater operator using another StringViewBase instance.
std::string::const_iterator end() const
This member function provides an iterator to the end of the viewed section of the internal string.
void trim_back(size_t len)
This member function can be used to remove characters from the back of the viewed section.
bool operator==(const char *sString) const
This member function is an overload for the equality operator using a const char*.
bool operator<(const StringViewBase &view) const
This member function is an overload for the less operator using another StringViewBase instance.
bool operator<=(const StringViewBase &view) const
This member function is an overload for the less-equal operator using another StringViewBase instance...
bool operator>=(const std::string &sString) const
This member function is an overload for the greater-equal operator using a const std::string instance...
size_t find_first_not_of(char c, size_t pos=0) const
Wrapper member function for std::string::find_first_not_of()
bool operator!=(const std::string &sString) const
This member function is an overload for the inequality operator using a const std::string instance.
virtual const std::string * getData() const
This member function returns a const pointer to the viewed string. Is only used internally.
std::string operator+(const std::string &sString) const
This member function is an overload for the concatenation operator using a const std::string instance...
size_t find(const std::string &findstr, size_t pos=0) const
Wrapper member function for std::string::find()
size_t length() const
This member function simply returns the length of the viewed section.
size_t find_first_of(char c, size_t pos=0) const
Wrapper member function for std::string::find_first_of()
bool operator<=(const std::string &sString) const
This member function is an overload for the less-equal operator using a const std::string instance.
std::string::const_iterator begin() const
This member function provides an iterator to the beginning of the viewed section of the internal stri...
bool operator!=(const char *sString) const
This member function is an overload for the inequality operator using a const char*.
bool operator!=(const StringViewBase &view) const
This member function is an overload for the inequality operator using another StringViewBase instance...
virtual void clear()
Reset function.
bool validAbsolutePosition(size_t pos) const
This member function checks, whether the passed (absolute) position is part of the viewed string sect...
size_t find_last_not_of(char c, size_t pos=std::string::npos) const
Wrapper member function for std::string::find_last_not_of()
size_t find_first_not_of(const std::string &findstr, size_t pos=0) const
Wrapper member function for std::string::find_first_not_of()
This class is the immutable (const) version of a string view. It can be constructed from a MutableStr...
StringView(const StringView &view)
StringView copy constructor.
StringView(StringView &&view)
StringView move constructor.
StringView()
StringView default constructor.
const std::string * m_data
StringView(const std::string *data, size_t start, size_t len)
Private constructor used by the subview member function.
StringView(const std::string *data)
StringView constructor from a const std::string pointer.
StringView & operator=(const StringView &view)
Assignment operator for another StringView instance.
void assign(const StringView &view)
Assignment member function from another StringView instance.
StringView(const std::string &data, size_t start, size_t len=std::string::npos)
StringView constructor from a const std::string reference, a start and a length.
StringView & operator=(const MutableStringView &view)
Assignment operator for a MutableStringView class instance.
StringView subview(size_t pos=0, size_t len=std::string::npos) const
This member function creates a new StringView class instance using the selected position and length a...
StringView & operator=(const std::string &data)
Assignment operator for a const std::string reference.
void assign(const std::string *data)
Assignment member function from a const std::string pointer.
const char & operator[](size_t pos) const
Random access operator, returning a const char reference.
virtual void clear() override
Override to clear the internal pointer as well.
StringView & operator=(const std::string *data)
Assignment operator for a const std::string pointer.
virtual const std::string * getData() const override
Override to return a pointer to the internal string.
MutableStringView make_mutable() const
This member function returns a MutableStringView instance with the data of this instance.
StringView(const std::string &data)
StringView constructor from a const std::string reference.
StringView(const MutableStringView &view)
StringView constructor from a MutableStringView class instance.
void assign(const MutableStringView &view)
Assignment member function from a MutableStringView instance.
This class abstracts all the index logics, i.e. the logical differences between single indices and in...
const int & back() const
This member function returns a const reference to the final index value stored internally.
VectorIndex(int nStart, int nEnd=INVALID)
Constructor for single indices.
void push_back(int nVal)
This function will append the passed index value at the end of the index vector. The internal storage...
const int & front() const
This member function returns a const reference to the first index value stored internally.
VectorIndex()
Default constructor.
bool isValid() const
This member function determines, whether the internal index set is valid.
void linearize()
This member function linearizes the contents of a vector-described index set. The vectorial informati...
VectorIndex subidx(size_t pos, size_t nLen=std::string::npos) const
This member function returns a subset of the internal stored index just like the std::string::substr(...
void setOpenEndIndex(int nLast) const
This member function can be used to replace the open end state with a defined index value although th...
void prepend(const std::vector< int > &vVector)
This function will prepend the passed vector before the beginning of the index vector....
int getIndex(size_t n) const
This private memnber function calculates the index corresponding to the selected position n....
int last() const
This member function returns the last index value, which can be reached by the values stored internal...
int max() const
This function calculates the maximal index value obtained from the values stored internally.
size_t size() const
This member function returns the size of the indices stored in this class.
bool isOpenEnd() const
This member function determines, whether the internal index set has an open end.
void setRange(int nMin, int nMax)
This member function can be used to force the indices stored internally to be in a defined interval....
VectorIndex(VectorIndex &&vIndex)
VectorIndex move constructor.
void append(const std::vector< int > &vVector)
This function will append the passed vector to the end of the index vector. The internal storage is e...
VectorIndex(const VectorIndex &vIndex)
Copy constructor.
std::string to_string() const
This member function converts the vector indexes contents into a human-readable string representation...
bool isOrdered() const
This member function determines, whether the single indices are in the correct order.
int operator[](size_t n) const
Overload for the access operator. Redirects the control to the private getIndex() member function.
VectorIndex(const mu::value_type *indices, int nResults, int unused)
Constructor from an array of doubles. The third argument is used only to avoid misinterpretation from...
std::vector< int > vStorage
VectorIndex & operator=(const std::vector< int > &vIndex)
Assignment operator overload for STL vectors.
void setIndex(size_t nthIndex, int nVal)
This member function can be used to set the index at a special position. This will expand the interna...
bool isString() const
This member function determines, whether the internal index set referres to the table headlines.
int & back()
This member function returns a reference to the final index value stored internally.
VectorIndex(const std::vector< int > &vIndex)
Constructor from a STL vector.
bool isExpanded() const
This member function determines, whether the indices are calculated or actual vectorial indices.
void prepend(const VectorIndex &vIndex)
This function will append the passed VectorIndex before the beginning of the index vector....
VectorIndex & operator=(const VectorIndex &vIndex)
Assignment operator overload for the same type.
std::vector< int > getVector() const
This member function returns a STL vector, which will resemble the indices stored internally....
int min() const
This member function calculates the minimal index value obtained from the values stored internally.
int & front()
This member function returns a reference to the first index value stored internally.
size_t numberOfNodes() const
This member function returns the number of nodes describing the index set, which is stored internally...
void append(const VectorIndex &vIndex)
This function will append the passed VectorIndex to the end of the index vector. The internal storage...
CONSTCD11 std::chrono::duration< Rep, Period > abs(std::chrono::duration< Rep, Period > d)
MUP_BASETYPE value_type
The numeric datatype used by the parser.
bool isnan(const value_type &v)
std::vector< double > real(const std::vector< value_type > &vVec)
bool isinf(const value_type &v)
value_type rint(value_type v)
This structure contains the information of a two-dimensional boundary.
Boundary(long long int i, long long int j, size_t _row, size_t _col)
Structure for the sorting functionality: used for the recursive definition of the index columns for s...
Structure for the four standard variables.
mu::value_type vValue[4][4]
This structure is central for managing the indices of a table or cluster read or write data access....
Indices(const Indices &_idx)
Indices & operator=(const Indices &_idx)
std::string sCompiledAccessEquation
Structure for the findCommand function.
This represents a point in 2D space.
Point operator/(double a) const
void rotate90(int n, const Point &origin=Point(0, 0))
Point(double _x, double _y)
Point operator+(const Point &a) const
void rotate(double dAlpha, const Point &origin=Point(0, 0))
Point operator-(const Point &a) const
Point operator*(double a) const
Structure as wrapper for the return value of procedures (which may be numerical or string values or a...
std::vector< std::string > vStringVal
std::string sReturnedTable
std::vector< mu::value_type > vNumVal
std::string operator+(const std::string &sString, const StringViewBase &view)
Inverse concatenation operator for a string instance with a StringViewBase instance.
long long int intCast(const std::complex< double > &)
Casts the real part of the complex number to an integer and avoids rounding errors.
std::string toString(int)
Converts an integer to a string without the Settings bloat.