Commit d6f089d5 by Christophe Gonzales

new learning databases

parent 6850bccd
Pipeline #20194481 failed with stages
in 26 minutes 37 seconds
......@@ -466,6 +466,14 @@ namespace gum {
*/
class SyntaxError;
/**
* @class gum::NotImplementedYet agrum/core/exceptions.h
* @extends gum::Exception
* Exception : there is something wrong with an arc
*/
class NotImplementedYet;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
const std::string __createMsg(const std::string& filename,
const std::string& function,
......@@ -473,6 +481,7 @@ namespace gum {
const std::string& msg);
GUM_MAKE_ERROR(IdError, Exception, "ID error")
GUM_MAKE_ERROR(FatalError, Exception, "Fatal error")
GUM_MAKE_ERROR(NotImplementedYet, Exception, "Not implemented yet")
GUM_MAKE_ERROR(UndefinedIteratorValue, Exception, "Undefined iterator")
GUM_MAKE_ERROR(UndefinedIteratorKey, Exception, "Undefined iterator's key")
GUM_MAKE_ERROR(NullElement, Exception, "Null element")
......
/***************************************************************************
* Copyright (C) 2005 by Pierre-Henri WUILLEMIN and Christophe GONZALES *
* {prenom.nom}_at_lip6.fr *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
/**
* @file
* @brief C++11 threads convenience utilities for agrum.
* @author Christophe GONZALES and Pierre-Henri WUILLEMIN
*/
// to ease automatic parsers
#include <agrum/config.h>
#include <agrum/core/thread.h>
// include the inlined functions if necessary
#ifdef GUM_NO_INLINE
#include <agrum/core/thread_inl.h>
#endif /* GUM_NO_INLINE */
/***************************************************************************
* Copyright (C) 2005 by Pierre-Henri WUILLEMIN and Christophe GONZALES *
* {prenom.nom}_at_lip6.fr *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
/**
* @file
* @brief C++11 threads convenience utilities for agrum.
* @author Christophe GONZALES and Pierre-Henri WUILLEMIN
*/
#ifndef GUM_THREAD_H
#define GUM_THREAD_H
#include <thread>
namespace gum {
namespace thread {
/**
* @brief returns the maximum number of threads possible
* @ingroup basicstruct_group
*
* @return Returns the number of concurrent threads supported by the
* implementation. The value should be considered only a hint.
*/
unsigned int getMaxNumberOfThreads();
}
} /* namespace gum */
// include the inlined functions if necessary
#ifndef GUM_NO_INLINE
#include <agrum/core/thread_inl.h>
#endif /* GUM_NO_INLINE */
#endif /* GUM_THREADS */
/***************************************************************************
* Copyright (C) 2005 by Pierre-Henri WUILLEMIN and Christophe GONZALES *
* {prenom.nom}_at_lip6.fr *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
/**
* @file
* @brief C++11 threads convenience utilities for agrum.
* @author Christophe GONZALES and Pierre-Henri WUILLEMIN
*/
// to ease automatic parsers
#include <agrum/agrum.h>
#include <agrum/core/thread.h>
namespace gum {
namespace thread {
// returns the maximum number of threads possible
INLINE unsigned int getMaxNumberOfThreads () {
return std::thread::hardware_concurrency();
}
} /* namespace thread */
} /* namespace gum */
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment