casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions
UtilJ.h File Reference
#include <casa/aips.h>
#include <casa/BasicSL/String.h>
#include <casa/Exceptions/Error.h>
#include <cassert>
#include <cstdarg>
#include <cstdlib>
#include <sys/time.h>
#include <sys/resource.h>
#include <algorithm>
#include <functional>
#include <iterator>
#include <map>
#include <set>
#include <vector>

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
 
class  casa::utilj::ComposedFunctor< F, G >
 prints out 104 116 136 More...
 
class  casa::utilj::UnaryFunctor< D, R >
 
class  casa::utilj::Z
 

Namespaces

 casacore
 For temporary backward namespace compatibility, use casa as alias for casacore.
 
 casa
 -*- mode: c++ -*-
 
 casa::utilj
 

Macros

#define DEPRECATED(func)
 Casa Includes. More...
 
#define DEPRECATED_METHOD(comment)
 #pragma message("WARNING: You need to implement DEPRECATED for this compiler") More...
 
#define Assert
 
#define Throw
 
#define UnusedVariable(x)
 

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(); } More...
 
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 ()
 
*casacore::String casa::utilj::formatV (const casacore::String &formatString, va_list vaList)
 DEPRECATED (casacore::String format (const char * formatString,...) /* "Use casacore::String::format". More...
 
template<typename T >
casa::utilj::getEnv (const casacore::String &name, const T &defaultValue)
 
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)
 
std::vector< casacore::Stringcasa::utilj::split (const casacore::String &string, const casacore::String &splitter, bool ignoreConsecutiveSplitters=false)
 
template<typename Itr >
casacore::String casa::utilj::join (Itr begin, Itr end, const casacore::String &delimiter)
 
template<typename T >
casacore::String casa::utilj::join (const T &strings, const casacore::String &delimiter)
 
template<typename Itr , typename F >
casacore::String casa::utilj::join (Itr begin, Itr end, F f, const casacore::String &delimiter)
 
template<typename K , typename V >
std::vector< K > casa::utilj::mapKeys (const std::map< K, V > &aMap)
 
casacore::AipsError casa::utilj::repackageAipsError (casacore::AipsError &error, const casacore::String &message, const casacore::String &file, int line, const casacore::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 (std::ostream &os, const casacore::String &prefix="")
 
long casa::utilj::round (double d)
 
void casa::utilj::sleepMs (int milliseconds)
 
void casa::utilj::toStdError (const casacore::String &m, const casacore::String &prefix="*E* ")
 
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())
 
template<typename It , typename Obj >
casacore::String casa::utilj::containerToString (It begin, It end, casacore::String(Obj::*func)() const, const casacore::String &delimiter=",", const casacore::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. More...
 
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))
 

Macro Definition Documentation

#define Assert

Definition at line 48 of file UtilJ.h.

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

#define DEPRECATED (   func)

Casa Includes.

C++ and System IncludesSTL Includes #pragma message("WARNING: You need to implement DEPRECATED for this compiler")

Definition at line 38 of file UtilJ.h.

#define DEPRECATED_METHOD (   comment)

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

Definition at line 45 of file UtilJ.h.

#define Throw

Definition at line 49 of file UtilJ.h.

#define UnusedVariable (   x)

Definition at line 51 of file UtilJ.h.