aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
utils_misc.h File Reference

Utilities for aGrUM. More...

#include <cstdlib>
#include <iostream>
#include <numeric>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include <type_traits>
#include <agrum/agrum.h>
#include <agrum/base/core/utils_random.h>
#include <agrum/base/core/utils_string.h>
#include <agrum/base/core/utils_misc_tpl.h>
Include dependency graph for utils_misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gum::NullStream
 Implements a stream with the same behaviour as /dev/null. More...
struct  gum::AlmostDifferent< T >
 Indicate whether two elements are (almost) different or not. More...
struct  gum::AlmostDifferent< T * >
 Indicate whether two elements are (almost) different or not. More...

Namespaces

namespace  std
 STL namespace.
namespace  gum
 gum is the global namespace for all aGrUM entities

Macros

#define GUM_CAST   static_cast

Functions

template<typename T1, typename T2>
ostream & std::operator<< (ostream &stream, const pair< T1, T2 > &val)
 'std::cout<<' operator for pairs.
template<typename T0, typename... T>
std::ostream & std::operator<< (std::ostream &os, const std::tuple< T0, T... > &t)
 'std::cout<<' operator for vectors.
template<typename T>
ostream & std::operator<< (ostream &stream, const vector< T > &val)
 'std::cout<<' operator for vectors.
template<typename T>
bool std::hasUniqueElts (std::vector< T > const &x)
 

template<typename T1, typename T2>
using gum::forbidden_type = typename std::enable_if< !std::is_same< T1, T2 >::value, int >::type
 Forbidden_type<T1,T2> return the "int" type if T1 and T2 are of the same type, else nothing.
bool gum::Memcmp (const void *const in_, const void *const out_, unsigned long size)
 Cross-platform replacement for memcmp.
void gum::_atexit_ ()
 Used for debug purpose.

Detailed Description

Utilities for aGrUM.

Author
Christophe GONZALES(_at_AMU) and Pierre-Henri WUILLEMIN(_at_LIP6)

Definition in file utils_misc.h.

Macro Definition Documentation

◆ GUM_CAST

#define GUM_CAST   static_cast

Definition at line 66 of file utils_misc.h.