casa
$Rev:20696$
|
Classes | |
class | AipsErrorTrace |
class | Strings |
class | FirstFunctor |
class | SecondFunctor |
class | MemoryStatistics |
class | IoStatistics |
class | ThreadTimes |
class | DeltaThreadTimes |
More... | |
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 | format (const char *formatString,...) |
String | formatV (const String &formatString, va_list vaList) |
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="") |
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 | ||
) |
string casa::utilj::containerToString | ( | It | begin, |
It | end, | ||
String(Obj::*)() const | func, | ||
const String & | delimiter = "," , |
||
const String & | wrapper = "" |
||
) |
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 110 of file UtilJ.h.
References casa::C::e.
Bool casa::utilj::containsKey | ( | const typename Container::key_type & | key, |
const Container & | container | ||
) |
Container casa::utilj::fillContainer | ( | Element | sentinel, |
... | |||
) |
Definition at line 134 of file UtilJ.h.
References casa::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 | ( | ) |
String casa::utilj::format | ( | const char * | formatString, |
... | |||
) |
Referenced by casa::INHERITANCE_POINTER(), and casa::ViewerProxy::output().
String casa::utilj::formatV | ( | const String & | formatString, |
va_list | vaList | ||
) |
T casa::utilj::getEnv | ( | const String & | name, |
const T & | defaultValue | ||
) |
Definition at line 168 of file UtilJ.h.
References casa::String::c_str(), casa::defaultValue(), casa::SynthesisUtils::getenv(), and casa::value().
Bool casa::utilj::getEnv | ( | const String & | name, |
const Bool & | defaultValue | ||
) |
Int casa::utilj::getEnv | ( | const String & | name, |
const Int & | defaultValue | ||
) |
Bool casa::utilj::isEnvDefined | ( | const String & | name | ) |
String casa::utilj::join | ( | Itr | begin, |
Itr | end, | ||
const String & | delimiter | ||
) |
String casa::utilj::join | ( | const T & | strings, |
const String & | delimiter | ||
) |
String casa::utilj::join | ( | Itr | begin, |
Itr | end, | ||
F | f, | ||
const String & | delimiter | ||
) |
std::vector<K> casa::utilj::mapKeys | ( | const std::map< K, V > & | aMap | ) |
Definition at line 242 of file UtilJ.h.
References transform().
std::vector<V> casa::utilj::mapValues | ( | const std::map< K, V > & | aMap | ) |
Definition at line 271 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 | ||
) |
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<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 casa::ArrayMath_global_functions_Array_mathematical_operations::arrayContTransform(), mapKeys(), and mapValues().
UnaryFunctor<D, R> casa::utilj::unary | ( | R(*)(D) | f | ) |
Definition at line 631 of file UtilJ.h.
Referenced by casa::vi::VlatFunctor1< Ret, Arg >::VlatFunctor1(), and casa::asyncio::VlatFunctor1< Ret, Arg >::VlatFunctor1().