casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Namespaces | Defines | Functions
UtilJ.h File Reference

Go to the source code of this file.

Classes

class  casa::utilj::AipsErrorTrace
class  casa::utilj::Strings
class  casa::utilj::FirstFunctor< F, S >
class  casa::utilj::SecondFunctor< F, S >
class  casa::utilj::MemoryStatistics
class  casa::utilj::IoStatistics
class  casa::utilj::ThreadTimes
class  casa::utilj::DeltaThreadTimes
 
More...
class  casa::utilj::ComposedFunctor< F, G >
 prints out 104 116 136 More...
class  casa::utilj::UnaryFunctor< D, R >
class  casa::utilj::Z

Namespaces

namespace  casa
 this file contains all the compiler specific defines
namespace  casa::utilj

Defines

#define Assert(c)
 Casa Includes.
#define AssertAlways(c)
#define DEPRECATED(func)
 

pragma message("WARNING: You need to implement DEPRECATED for this compiler")


#define DEPRECATED_METHOD(comment)
 

pragma message("WARNING: You need to implement DEPRECATED for this compiler")


#define Throw(m)
#define ThrowIf(c, m)
#define ThrowIfError(c, m)
#define Rethrow(e, m)

Functions

template<typename Container >
Bool casa::utilj::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 casa::utilj::contains (const typename Container::value_type &e, const Container &c)
template<typename F , typename S >
F & casa::utilj::first (std::pair< F, S > &pair)
template<typename F , typename S >
const F & casa::utilj::first (const std::pair< F, S > &pair)
template<typename Container , typename Element >
Container casa::utilj::fillContainer (Element sentinel,...)
template<typename F , typename S >
FirstFunctor< F, S > casa::utilj::firstFunctor ()
String casa::utilj::format (const char *formatString,...)
String casa::utilj::formatV (const String &formatString, va_list vaList)
template<typename T >
casa::utilj::getEnv (const String &name, const T &defaultValue)
Bool casa::utilj::getEnv (const String &name, const Bool &defaultValue)
Int casa::utilj::getEnv (const String &name, const Int &defaultValue)
String casa::utilj::getTimestamp ()
Bool casa::utilj::isEnvDefined (const String &name)
std::vector< Stringcasa::utilj::split (const String &string, const String &splitter, Bool ignoreConsecutiveSplitters=False)
template<typename Itr >
String casa::utilj::join (Itr begin, Itr end, const String &delimiter)
template<typename T >
String casa::utilj::join (const T &strings, const String &delimiter)
template<typename Itr , typename F >
String casa::utilj::join (Itr begin, Itr end, F f, const String &delimiter)
template<typename K , typename V >
std::vector< K > casa::utilj::mapKeys (const std::map< K, V > &aMap)
AipsError casa::utilj::repackageAipsError (AipsError &error, const String &message, const String &file, Int line, const String &func)
template<typename F , typename S >
F & casa::utilj::second (std::pair< F, S > &pair)
template<typename F , typename S >
const F & casa::utilj::second (const std::pair< F, S > &pair)
template<typename F , typename S >
SecondFunctor< F, S > casa::utilj::secondFunctor ()
template<typename K , typename V >
std::vector< V > casa::utilj::mapValues (const std::map< K, V > &aMap)
void casa::utilj::printBacktrace (ostream &os, const String &prefix="")
void casa::utilj::sleepMs (Int milliseconds)
void casa::utilj::toStdError (const String &m, const String &prefix="*E* ")
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())
template<typename It , typename Obj >
string casa::utilj::containerToString (It begin, It end, String(Obj::*func)() const, const String &delimiter=",", const String &wrapper="")
 casa::utilj::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 > casa::utilj::compose (F f, G g)
template<typename D , typename R >
UnaryFunctor< D, R > casa::utilj::unary (R(*f)(D))

Define Documentation

#define Assert (   c)

Casa Includes.

C++ and System Includes STL Includes The Assert macro is an alias to the standard assert macro when NDEBUG is defined. When NDEBUG is not defined (release build) then a throw is used to report the error.

Definition at line 38 of file UtilJ.h.

Referenced by casa::vi::VisBuffer2Adapter::msColumns().

#define AssertAlways (   c)

Definition at line 41 of file UtilJ.h.

#define DEPRECATED (   func)

pragma message("WARNING: You need to implement DEPRECATED for this compiler")

Definition at line 49 of file UtilJ.h.

#define DEPRECATED_METHOD (   comment)

pragma message("WARNING: You need to implement DEPRECATED for this compiler")

Definition at line 56 of file UtilJ.h.

#define Rethrow (   e,
 
)

Definition at line 73 of file UtilJ.h.

#define Throw (   m)

Definition at line 66 of file UtilJ.h.

#define ThrowIf (   c,
 
)

Definition at line 69 of file UtilJ.h.

#define ThrowIfError (   c,
 
)

Definition at line 71 of file UtilJ.h.