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

Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org. More...

#include <cstdlib>
#include <iostream>
#include <numeric>
#include <utility>
#include <vector>
#include <tuple>
#include <string>
#include <type_traits>
#include <agrum/agrum.h>
#include <agrum/tools/core/utils_dir.h>
#include <agrum/tools/core/utils_random.h>
#include <agrum/tools/core/utils_string.h>
#include <agrum/tools/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

 gum
 Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.
 

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. More...
 
template<typename T0 , typename... T>
std::ostream & std::operator<< (std::ostream &os, const std::tuple< T0, T... > &t)
 'std::cout<<' operator for vectors. More...
 
template<typename T >
ostream & std::operator<< (ostream &stream, const vector< T > &val)
 'std::cout<<' operator for vectors. More...
 
template<typename T >
bool std::hasUniqueElts (std::vector< T > const &x)
 
More...
 
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. More...
 
bool gum::Memcmp (const void *const in_, const void *const out_, unsigned long size)
 Cross-platform replacement for memcmp. More...
 
void gum::_atexit_ ()
 Used for debug purpose. More...
 

Detailed Description

Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.

Utilities for aGrUM.

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

Definition in file utils_misc.h.

Macro Definition Documentation

◆ GUM_CAST

#define GUM_CAST   static_cast

Definition at line 45 of file utils_misc.h.