yat  0.14.5pre
Classes | Namespaces | Functions
stl_utility.h File Reference
#include "concept_check.h"
#include "DataWeight.h"
#include "Exception.h"
#include <boost/concept_check.hpp>
#include <boost/iterator/transform_iterator.hpp>
#include <boost/mpl/if.hpp>
#include <boost/type_traits/add_const.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <algorithm>
#include <cmath>
#include <exception>
#include <functional>
#include <iterator>
#include <map>
#include <ostream>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  theplu::yat::utility::abs< T >
 
struct  theplu::yat::utility::Dereferencer< Pointer >
 Adaptor between pointer and pointee interface. More...
 
class  theplu::yat::utility::compose_f_gx_hy< F, G, H >
 
class  theplu::yat::utility::compose_f_gxy< F, G >
 
class  theplu::yat::utility::compose_f_gx< F, G >
 
class  theplu::yat::utility::compose_f_gx_hx< F, G, H >
 
struct  theplu::yat::utility::Exp< T >
 
struct  theplu::yat::utility::Identity< T >
 Identity functor that returns its argument. More...
 
class  theplu::yat::utility::get_error< Key >
 error class used in get(const std::map<Key, Tp, Compare, Alloc>& m, const Key& k) More...
 
struct  theplu::yat::utility::less_nan< T >
 Functor that behaves like std::less with the exception that it treats NaN as a number larger than infinity. More...
 
struct  theplu::yat::utility::less_nan< DataWeight >
 Specialization for DataWeight. More...
 
class  theplu::yat::utility::Log< T >
 
struct  theplu::yat::utility::pair_value_compare< T1, T2 >
 Functor comparing pairs using second. More...
 
struct  theplu::yat::utility::PairFirst< Pair >
 Functor that return std::pair.first. More...
 
struct  theplu::yat::utility::PairSecond< Pair >
 Functor that return std::pair.second. More...
 

Namespaces

 theplu
 The Department of Theoretical Physics namespace as we define it.
 
 theplu::yat
 yat project namespace.
 
 theplu::yat::utility
 Miscellaneous functionality.
 

Functions

template<class T1 , class T2 >
std::ostream & std::operator<< (std::ostream &out, const std::pair< T1, T2 > &p)
 
template<typename T >
void theplu::yat::utility::clear (std::vector< T > &vec)
 reduce size and capacity to zero More...
 
template<typename Key , typename Tp , typename Compare , typename Alloc , typename Key2 >
const Tp & theplu::yat::utility::get (const std::map< Key, Tp, Compare, Alloc > &m, const Key2 &k)
 
template<typename InputIterator , typename Key , typename Comp >
void theplu::yat::utility::inverse (InputIterator first, InputIterator last, std::map< Key, std::vector< size_t >, Comp > &m)
 
template<typename Key , typename InputIterator , typename Comp >
void theplu::yat::utility::inverse (InputIterator first, InputIterator last, std::multimap< Key, size_t, Comp > &m)
 
template<typename InputIterator , typename Key , typename Comp >
void theplu::yat::utility::inverse (InputIterator first, InputIterator last, std::map< Key, size_t, Comp > &m)
 
template<typename T >
theplu::yat::utility::max (const T &a, const T &b, const T &c)
 
template<typename T >
theplu::yat::utility::max (const T &a, const T &b, const T &c, const T &d)
 
template<typename T >
theplu::yat::utility::max (const T &a, const T &b, const T &c, const T &d, const T &e)
 
template<typename T >
theplu::yat::utility::max (const T &a, const T &b, const T &c, const T &d, const T &e, const T &f)
 
template<class Iter >
boost::transform_iterator
< PairFirst< typename
boost::remove_reference
< typename
std::iterator_traits< Iter >
::reference >::type >, Iter > 
theplu::yat::utility::pair_first_iterator (Iter i)
 
template<class Iter >
boost::transform_iterator
< PairSecond< typename
boost::remove_reference
< typename
std::iterator_traits< Iter >
::reference >::type >, Iter > 
theplu::yat::utility::pair_second_iterator (Iter i)
 
template<typename Pointer , class Compare >
compose_f_gx_hy< Compare,
Dereferencer< Pointer >
, Dereferencer< Pointer > > 
theplu::yat::utility::make_ptr_compare (Pointer p, Compare compare)
 
template<typename Pointer >
compose_f_gx_hy< std::less
< typename
std::iterator_traits< Pointer >
::value_type >, Dereferencer
< Pointer >, Dereferencer
< Pointer > > 
theplu::yat::utility::make_ptr_compare (Pointer p)
 
std::string & theplu::yat::utility::to_lower (std::string &s)
 Function converting a string to lower case.
 
std::string & theplu::yat::utility::to_upper (std::string &s)
 Function converting a string to upper case.
 

Detailed Description

There are a number of useful functionality missing in the Standard Template Library, STL. This file is an effort to provide extensions to STL functionality.


Generated on Tue Sep 26 2017 02:33:29 for yat by  doxygen 1.8.5