|
Cloudy
Spectral Synthesis Code for Astrophysics
|
#include <string>#include <vector>

Go to the source code of this file.
Enumerations | |
| enum | split_mode { SPM_RELAX , SPM_KEEP_EMPTY , SPM_STRICT } |
Functions | |
| void | trimTrailingWhiteSpace (std::string &str) |
| void | trimTrailingWhiteSpace (char *str) |
| void | trimWhiteSpace (string &str) |
| void | FPRead (istringstream &iss, const string &s, double &value) |
| void | FPRead (istringstream &iss, const string &s, sys_float &value) |
| void | IntRead (istringstream &iss, const string &s, long long &value) |
| void | IntRead (istringstream &iss, const string &s, long &value) |
| void | IntRead (istringstream &iss, const string &s, int &value) |
| void | IntRead (istringstream &iss, const string &s, unsigned long long &value) |
| void | IntRead (istringstream &iss, const string &s, unsigned long &value) |
| void | IntRead (istringstream &iss, const string &s, unsigned int &value) |
| void | Split (const std::string &str, const std::string &sep, std::vector< std::string > &lst, split_mode mode) |
| bool | FindAndReplace (std::string &str, const std::string &substr, const std::string &newstr) |
| bool | FindAndErase (std::string &str, const std::string &substr) |
| void | service (double tau, double a, double beta) |
| void | wr_block (const void *ptr, size_t len, FILE *fdes, const string &fnam=string()) |
| void | wr_block (const void *ptr, size_t len, const string &fnam) |
| void | rd_block (void *ptr, size_t len, FILE *fdes, const string &fnam) |
| void | rd_block (void *ptr, size_t len, const string &fnam) |
| uintmax_t | FileSize (const string &fpath) |
Variables | |
| const double | pos_pow10 [] |
| const int | max_pow10 |
| const double | neg_pow10 [] |
| const int | min_pow10 |
| const uintmax_t | FS_UNKNOWN = static_cast<uintmax_t>(-1) |
| enum split_mode |
split_mode defines how the routine Split generates substrings SPM_RELAX: multiple adjacent separators will be coalesced into one this way you can never get an empty substring SPM_KEEP_EMPTY: multiple adjacent separators will result in empty substrings to be added to the list SPM_STRICT: empty substrings are illegal
| Enumerator | |
|---|---|
| SPM_RELAX | |
| SPM_KEEP_EMPTY | |
| SPM_STRICT | |
| uintmax_t FileSize | ( | const string & | fpath | ) |
FileSize: portable and reliable way to get the size of a file
Referenced by check_grid_file(), CloseSaveFiles(), GridGatherOutputParallel(), main(), and process_output().
|
inline |
References FindAndReplace().
Referenced by ParseAbundances(), and ParseTable().

|
inline |
Referenced by FindAndErase(), getFileListSub(), t_cpu_i::initPath(), and t_cpu_i::p_getchecksums().
| void FPRead | ( | istringstream & | iss, |
| const string & | s, | ||
| double & | value ) |
References DEBUG_ENTRY, getChar(), max_pow10, min_pow10, neg_pow10, pos_pow10, sign(), and UNLIKELY.
Referenced by FPRead(), getTokenOptionalImpl(), getTokenOptionalImpl(), operator>>(), and operator>>().

|
inline |
|
inline |
|
inline |
| void IntRead | ( | istringstream & | iss, |
| const string & | s, | ||
| long long & | value ) |
References DEBUG_ENTRY, getChar(), and sign().
Referenced by getTokenOptionalImpl(), getTokenOptionalImpl(), getTokenOptionalImpl(), getTokenOptionalImpl(), getTokenOptionalImpl(), getTokenOptionalImpl(), IntRead(), IntRead(), IntRead(), and IntRead().

|
inline |
|
inline |
| void IntRead | ( | istringstream & | iss, |
| const string & | s, | ||
| unsigned long long & | value ) |
|
inline |
rd_block: read <len> bytes of data into buffer <*ptr> from unformatted file <fnam>
References AS_LOCAL_ONLY, open_data(), and rd_block().

|
inline |
rd_block: read <len> bytes of data into buffer <ptr> from open binary FILE <fdes>
References cdEXIT, EXIT_FAILURE, fprintf(), and ioQQQ.
Referenced by phymir_state< X, Y, NP, NSTR >::p_process_output(), process_output(), and rd_block().

| void service | ( | double | tau, |
| double | a, | ||
| double | beta ) |
| void Split | ( | const std::string & | str, |
| const std::string & | sep, | ||
| std::vector< std::string > & | lst, | ||
| split_mode | mode ) |
Split: split a string into substrings using "sep" as separator
| void trimTrailingWhiteSpace | ( | char * | str | ) |
| void trimTrailingWhiteSpace | ( | std::string & | str | ) |
| void trimWhiteSpace | ( | string & | str | ) |
Referenced by cdMain(), and Atom_LevelN::operator()().
|
inline |
wr_block: write <len> bytes of data from buffer <*ptr> into unformatted file <fnam>
References open_data(), and wr_block().

|
inline |
wr_block: write <len> bytes of data from buffer <ptr> into open binary FILE <fdes>
References cdEXIT, EXIT_FAILURE, fprintf(), and ioQQQ.
Referenced by fix_grid_file(), phymir_state< X, Y, NP, NSTR >::p_execute_job_parallel(), saveFITSfile(), and wr_block().

| const uintmax_t FS_UNKNOWN = static_cast<uintmax_t>(-1) |
the routine FileSize() returns FS_UNKNOWN if the file size could not be determined
Referenced by CloseSaveFiles(), GridGatherOutputParallel(), and process_output().
|
extern |
Referenced by exp10i(), FFmtRead(), and FPRead().
|
extern |
Referenced by exp10i(), FFmtRead(), and FPRead().
|
extern |
Referenced by exp10i(), FFmtRead(), and FPRead().
|
extern |
Referenced by exp10i(), FFmtRead(), and FPRead().