casa
5.7.0-16
|
Classes | |
class | AipsErrorTrace |
class | Strings |
class | FirstFunctor |
class | SecondFunctor |
class | MemoryStatistics |
class | IoStatistics |
class | ThreadTimes |
class | DeltaThreadTimes |
class | ComposedFunctor |
prints out 104 116 136 More... | |
class | UnaryFunctor |
class | Z |
Functions | |
template<typename Container > | |
bool | containsKey (const typename Container::key_type &key, const Container &container) |
template <typename Element, typename Container> bool contains (const Element & e, const Container & c) { return c.find(e) != c.end(); } More... | |
template<typename Container > | |
bool | contains (const typename Container::value_type &e, const Container &c) |
template<typename F , typename S > | |
F & | first (std::pair< F, S > &pair) |
template<typename F , typename S > | |
const F & | first (const std::pair< F, S > &pair) |
template<typename Container , typename Element > | |
Container | fillContainer (Element sentinel,...) |
template<typename F , typename S > | |
FirstFunctor< F, S > | firstFunctor () |
*casacore::String | formatV (const casacore::String &formatString, va_list vaList) |
DEPRECATED (casacore::String format (const char * formatString,...) /* "Use casacore::String::format". More... | |
template<typename T > | |
T | getEnv (const casacore::String &name, const T &defaultValue) |
bool | getEnv (const casacore::String &name, const bool &defaultValue) |
int | getEnv (const casacore::String &name, const int &defaultValue) |
casacore::String | getTimestamp () |
bool | isEnvDefined (const casacore::String &name) |
std::vector< casacore::String > | split (const casacore::String &string, const casacore::String &splitter, bool ignoreConsecutiveSplitters=false) |
template<typename Itr > | |
casacore::String | join (Itr begin, Itr end, const casacore::String &delimiter) |
template<typename T > | |
casacore::String | join (const T &strings, const casacore::String &delimiter) |
template<typename Itr , typename F > | |
casacore::String | join (Itr begin, Itr end, F f, const casacore::String &delimiter) |
template<typename K , typename V > | |
std::vector< K > | mapKeys (const std::map< K, V > &aMap) |
casacore::AipsError | repackageAipsError (casacore::AipsError &error, const casacore::String &message, const casacore::String &file, int line, const casacore::String &func) |
template<typename F , typename S > | |
F & | second (std::pair< F, S > &pair) |
template<typename F , typename S > | |
const F & | second (const std::pair< F, S > &pair) |
template<typename F , typename S > | |
SecondFunctor< F, S > | secondFunctor () |
template<typename K , typename V > | |
std::vector< V > | mapValues (const std::map< K, V > &aMap) |
void | printBacktrace (std::ostream &os, const casacore::String &prefix="") |
long | round (double d) |
void | sleepMs (int milliseconds) |
void | toStdError (const casacore::String &m, const casacore::String &prefix="*E* ") |
void | throwIf (bool condition, const casacore::String &message, const casacore::String &file, int line, const casacore::String &func=casacore::String()) |
void | throwIfError (int errorCode, const casacore::String &prefix, const casacore::String &file, int line, const casacore::String &func=casacore::String()) |
template<typename It , typename Obj > | |
casacore::String | containerToString (It begin, It end, casacore::String(Obj::*func)() const, const casacore::String &delimiter=",", const casacore::String &wrapper="") |
transform (a.begin(), a.end(), std::ostream_iterator< int >(cout,"\n"), compose(unary(h), compose(unary(f), unary(f)))) | |
Global Functions. More... | |
template<typename F , typename G > | |
ComposedFunctor< F, G > | compose (F f, G g) |
template<typename D , typename R > | |
UnaryFunctor< D, R > | unary (R(*f)(D)) |
ComposedFunctor<F, G> casa::utilj::compose | ( | F | f, |
G | g | ||
) |
casacore::String casa::utilj::containerToString | ( | It | begin, |
It | end, | ||
casacore::String(Obj::*)() const | func, | ||
const casacore::String & | delimiter = "," , |
||
const casacore::String & | wrapper = "" |
||
) |
Definition at line 276 of file UtilJ.h.
References casa::vi::end().
bool casa::utilj::contains | ( | const typename Container::value_type & | e, |
const Container & | c | ||
) |
For set and map use containsKey; will work for set but use with map requires specifying a pair as the first argument
Definition at line 91 of file UtilJ.h.
References casacore::C::e.
bool casa::utilj::containsKey | ( | const typename Container::key_type & | key, |
const Container & | container | ||
) |
Container casa::utilj::fillContainer | ( | Element | sentinel, |
... | |||
) |
Definition at line 115 of file UtilJ.h.
References casacore::C::e.
F& casa::utilj::first | ( | std::pair< F, S > & | pair | ) |
const F& casa::utilj::first | ( | const std::pair< F, S > & | pair | ) |
FirstFunctor<F,S> casa::utilj::firstFunctor | ( | ) |
* casacore::String casa::utilj::formatV | ( | const casacore::String & | formatString, |
va_list | vaList | ||
) |
DEPRECATED (casacore::String format (const char * formatString,...) /* "Use casacore::String::format".
T casa::utilj::getEnv | ( | const casacore::String & | name, |
const T & | defaultValue | ||
) |
Definition at line 149 of file UtilJ.h.
References casacore::String::c_str(), casa::defaultValue(), casa::SynthesisUtils::getenv(), and casacore::value().
bool casa::utilj::getEnv | ( | const casacore::String & | name, |
const bool & | defaultValue | ||
) |
int casa::utilj::getEnv | ( | const casacore::String & | name, |
const int & | defaultValue | ||
) |
casacore::String casa::utilj::getTimestamp | ( | ) |
bool casa::utilj::isEnvDefined | ( | const casacore::String & | name | ) |
casacore::String casa::utilj::join | ( | Itr | begin, |
Itr | end, | ||
const casacore::String & | delimiter | ||
) |
Definition at line 177 of file UtilJ.h.
References casa::vi::begin(), and casa::vi::end().
Referenced by join().
casacore::String casa::utilj::join | ( | const T & | strings, |
const casacore::String & | delimiter | ||
) |
casacore::String casa::utilj::join | ( | Itr | begin, |
Itr | end, | ||
F | f, | ||
const casacore::String & | delimiter | ||
) |
Definition at line 203 of file UtilJ.h.
References casa::vi::begin(), and casa::vi::end().
std::vector<K> casa::utilj::mapKeys | ( | const std::map< K, V > & | aMap | ) |
Definition at line 223 of file UtilJ.h.
References transform().
std::vector<V> casa::utilj::mapValues | ( | const std::map< K, V > & | aMap | ) |
Definition at line 254 of file UtilJ.h.
References transform().
void casa::utilj::printBacktrace | ( | std::ostream & | os, |
const casacore::String & | prefix = "" |
||
) |
casacore::AipsError casa::utilj::repackageAipsError | ( | casacore::AipsError & | error, |
const casacore::String & | message, | ||
const casacore::String & | file, | ||
int | line, | ||
const casacore::String & | func | ||
) |
long casa::utilj::round | ( | double | d | ) |
Referenced by casa::SDBListGridManager::bigFreqGridIndex(), and casa::SDBListGridManager::getTimeIndex().
F& casa::utilj::second | ( | std::pair< F, S > & | pair | ) |
const F& casa::utilj::second | ( | const std::pair< F, S > & | pair | ) |
SecondFunctor<F,S> casa::utilj::secondFunctor | ( | ) |
void casa::utilj::sleepMs | ( | int | milliseconds | ) |
std::vector<casacore::String> casa::utilj::split | ( | const casacore::String & | string, |
const casacore::String & | splitter, | ||
bool | ignoreConsecutiveSplitters = false |
||
) |
void casa::utilj::throwIf | ( | bool | condition, |
const casacore::String & | message, | ||
const casacore::String & | file, | ||
int | line, | ||
const casacore::String & | func = casacore::String() |
||
) |
void casa::utilj::throwIfError | ( | int | errorCode, |
const casacore::String & | prefix, | ||
const casacore::String & | file, | ||
int | line, | ||
const casacore::String & | func = casacore::String() |
||
) |
void casa::utilj::toStdError | ( | const casacore::String & | m, |
const casacore::String & | prefix = "*E* " |
||
) |
casa::utilj::transform | ( | a. | begin(), |
a. | end(), | ||
std::ostream_iterator< int > | cout,"\n", | ||
compose(unary(h), compose(unary(f), unary(f))) | |||
) |
Global Functions.
A free function is provided that is useful for go here...
Referenced by casacore::ArrayMath_global_functions_Array_mathematical_operations::arrayContTransform(), casac::CrashReportHelper::getUniqueId(), mapKeys(), mapValues(), casacore::STLMath_global_functions_Container_Math::operator+(), casacore::STLMath_global_functions_Container_Math::operator/(), and casatools::State::setDataPath().
UnaryFunctor<D, R> casa::utilj::unary | ( | R(*)(D) | f | ) |
Definition at line 614 of file UtilJ.h.
Referenced by vi::VlatFunctor1< Ret, Arg >::VlatFunctor1(), and casa::asyncio::VlatFunctor1< Ret, Arg >::VlatFunctor1().