Classes | |
class | AipsErrorTrace |
class | Strings |
class | FirstFunctor |
class | SecondFunctor |
class | MemoryStatistics |
class | IoStatistics |
class | ThreadTimes |
class | DeltaThreadTimes |
class | RUsage |
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(); } | |
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 () |
*String | formatV (const String &formatString, va_list vaList) |
DEPRECATED (String format (const char * formatString, . | |
template<typename T > | |
T | getEnv (const String &name, const T &defaultValue) |
Bool | getEnv (const String &name, const Bool &defaultValue) |
Int | getEnv (const String &name, const Int &defaultValue) |
String | getTimestamp () |
Bool | isEnvDefined (const String &name) |
std::vector< String > | split (const String &string, const String &splitter, Bool ignoreConsecutiveSplitters=False) |
template<typename Itr > | |
String | join (Itr begin, Itr end, const String &delimiter) |
template<typename T > | |
String | join (const T &strings, const String &delimiter) |
template<typename Itr , typename F > | |
String | join (Itr begin, Itr end, F f, const String &delimiter) |
template<typename K , typename V > | |
std::vector< K > | mapKeys (const std::map< K, V > &aMap) |
AipsError | repackageAipsError (AipsError &error, const String &message, const String &file, Int line, const 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 (ostream &os, const String &prefix="") |
long | round (Double d) |
void | sleepMs (Int milliseconds) |
void | toStdError (const String &m, const String &prefix="*E* ") |
void | throwIf (Bool condition, const String &message, const String &file, Int line, const String &func=String()) |
void | throwIfError (Int errorCode, const String &prefix, const String &file, Int line, const String &func=String()) |
template<typename It , typename Obj > | |
string | containerToString (It begin, It end, String(Obj::*func)() const, const String &delimiter=",", const String &wrapper="") |
transform (a.begin(), a.end(), std::ostream_iterator< int >(cout,"\n"), compose(unary(h), compose(unary(f), unary(f)))) | |
Global Functions. | |
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 | |||
) | [inline] |
string casa::utilj::containerToString | ( | It | begin, | |
It | end, | |||
String(Obj::*)() const | func, | |||
const String & | delimiter = "," , |
|||
const String & | wrapper = "" | |||
) | [inline] |
Bool casa::utilj::contains | ( | const typename Container::value_type & | e, | |
const Container & | c | |||
) | [inline] |
Bool casa::utilj::containsKey | ( | const typename Container::key_type & | key, | |
const Container & | container | |||
) | [inline] |
Container casa::utilj::fillContainer | ( | Element | sentinel, | |
... | ||||
) | [inline] |
Definition at line 112 of file UtilJ.h.
References casacore::C::e.
const F& casa::utilj::first | ( | const std::pair< F, S > & | pair | ) | [inline] |
F& casa::utilj::first | ( | std::pair< F, S > & | pair | ) | [inline] |
FirstFunctor<F,S> casa::utilj::firstFunctor | ( | ) | [inline] |
* String casa::utilj::formatV | ( | const String & | formatString, | |
va_list | vaList | |||
) |
DEPRECATED (String format (const char * formatString, .
..) /* "Use String::format"
Int casa::utilj::getEnv | ( | const String & | name, | |
const Int & | defaultValue | |||
) |
Bool casa::utilj::getEnv | ( | const String & | name, | |
const Bool & | defaultValue | |||
) |
T casa::utilj::getEnv | ( | const String & | name, | |
const T & | defaultValue | |||
) | [inline] |
Definition at line 146 of file UtilJ.h.
References casa::SynthesisUtils::getenv(), and casacore::value().
String casa::utilj::getTimestamp | ( | ) |
Bool casa::utilj::isEnvDefined | ( | const String & | name | ) |
String casa::utilj::join | ( | Itr | begin, | |
Itr | end, | |||
F | f, | |||
const String & | delimiter | |||
) | [inline] |
String casa::utilj::join | ( | const T & | strings, | |
const String & | delimiter | |||
) | [inline] |
String casa::utilj::join | ( | Itr | begin, | |
Itr | end, | |||
const String & | delimiter | |||
) | [inline] |
std::vector<K> casa::utilj::mapKeys | ( | const std::map< K, V > & | aMap | ) | [inline] |
Definition at line 220 of file UtilJ.h.
References transform().
std::vector<V> casa::utilj::mapValues | ( | const std::map< K, V > & | aMap | ) | [inline] |
Definition at line 249 of file UtilJ.h.
References transform().
void casa::utilj::printBacktrace | ( | ostream & | os, | |
const String & | prefix = "" | |||
) |
AipsError casa::utilj::repackageAipsError | ( | AipsError & | error, | |
const String & | message, | |||
const String & | file, | |||
Int | line, | |||
const String & | func | |||
) |
long casa::utilj::round | ( | Double | d | ) |
const F& casa::utilj::second | ( | const std::pair< F, S > & | pair | ) | [inline] |
F& casa::utilj::second | ( | std::pair< F, S > & | pair | ) | [inline] |
SecondFunctor<F,S> casa::utilj::secondFunctor | ( | ) | [inline] |
void casa::utilj::sleepMs | ( | Int | milliseconds | ) |
std::vector<String> casa::utilj::split | ( | const String & | string, | |
const String & | splitter, | |||
Bool | ignoreConsecutiveSplitters = False | |||
) |
void casa::utilj::throwIf | ( | Bool | condition, | |
const String & | message, | |||
const String & | file, | |||
Int | line, | |||
const String & | func = String() | |||
) |
void casa::utilj::throwIfError | ( | Int | errorCode, | |
const String & | prefix, | |||
const String & | file, | |||
Int | line, | |||
const String & | func = String() | |||
) |
void casa::utilj::toStdError | ( | const String & | m, | |
const 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(), mapKeys(), mapValues(), casacore::STLMath_global_functions_Container_Math::operator+(), and casacore::STLMath_global_functions_Container_Math::operator/().
UnaryFunctor<D, R> casa::utilj::unary | ( | R(*)(D) | f | ) | [inline] |