|
ampsci
High-precision calculations for one- and two-valence atomic systems
|
In-out (timers, profilers, and read/write data)
Namespaces | |
| namespace | FRW |
| File read/write utilities: text parsing and binary I/O. | |
Classes | |
| class | ChronoTimer |
| Class that uses std::chrono to easily time code. More... | |
| class | InputBlock |
| Holds a named list of key=value options and nested InputBlocks. More... | |
| struct | IsArray |
| Compile-time trait: IsArray<T>::v is true if T is std::array. IsArray<T>::t is the element type; IsArray<T>::size is the extent. More... | |
| struct | IsVector |
| Compile-time trait: IsVector<T>::v is true if T is std::vector. IsVector<T>::t is the element type. More... | |
| struct | Option |
| Simple struct; holds key-value pair, both strings. == compares key. More... | |
Functions | |
| void | unkown_option (std::string_view test_string, const std::vector< std::string > &list) |
| Prints unkown option warning, with suggested alternative. | |
| std::string | removeSpaces (std::string str) |
| Removes all white space (space, tab, newline), except for those in quotes. | |
| std::string | removeQuoteMarks (std::string str) |
| Removes all quote marks. | |
| void | removeBlockComments (std::string &input) |
| Removes all c++ style block comments from a string. | |
| std::string | removeComments (const std::string &input) |
| Removes all c++ style comments from a string (block and line) | |
| std::string | expandIncludes (std::string input) |
| Expands "#include" files. | |
| template<typename T > | |
| T | parse_str_to_T (const std::string &value_as_str) |
| Parses a string to type T by stringstream. | |
| std::string | file_to_string (const std::istream &file) |
| Parses entire file into string. Note: v. inefficient. | |
| void | print_line (const char c=' *', const int num=80) |
| Prints a line of 'c' characters (dflt '*'), num chars long (dflt 80) to cout. | |
| std::string | time_date () |
| Returns current local date and time as a string, e.g. "2026-05-14 13:01:02". | |
| std::string | date () |
| Returns current local date as a string, e.g. "2026-05-14". | |
| std::string | time () |
| Returns current local time as a string, e.g. "13:01:02". | |
| bool | operator== (InputBlock block, std::string_view name) |
| bool | operator== (std::string_view name, InputBlock block) |
| bool | operator!= (InputBlock block, std::string_view name) |
| bool | operator!= (std::string_view name, InputBlock block) |
|
inline |
Prints unkown option warning, with suggested alternative.
|
inline |
Removes all white space (space, tab, newline), except for those in quotes.
|
inline |
Removes all quote marks.
|
inline |
Removes all c++ style block comments from a string.
|
inline |
Removes all c++ style comments from a string (block and line)
|
inline |
Expands "#include" files.
|
inline |
Parses a string to type T by stringstream.
|
inline |
Parses entire file into string. Note: v. inefficient.
|
inline |
Prints a line of 'c' characters (dflt '*'), num chars long (dflt 80) to cout.
|
inline |
Returns current local date and time as a string, e.g. "2026-05-14 13:01:02".
|
inline |
Returns current local date as a string, e.g. "2026-05-14".
|
inline |
Returns current local time as a string, e.g. "13:01:02".