Main MRPT website
>
C++ reference for MRPT 1.5.3
mrpt
graphs
CHypothesisNotFoundException.h
Go to the documentation of this file.
1
/* +---------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2016, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+---------------------------------------------------------------------------+ */
9
10
#ifndef CHYPOTHESISNOTFOUNDEXCEPTION_H
11
#define CHYPOTHESISNOTFOUNDEXCEPTION_H
12
13
#include <
mrpt/utils/types_simple.h
>
14
#include <
mrpt/utils/mrpt_macros.h
>
15
#include <
mrpt/graphs/link_pragmas.h
>
16
17
#include <stdexcept>
18
#include <iostream>
19
#include <string>
20
#include <sstream>
21
22
// TODO - include docstring, group etc.
23
class
GRAPHS_IMPEXP
HypothesisNotFoundException
:
public
std::runtime_error {
24
public
:
25
HypothesisNotFoundException
(
26
mrpt::utils::TNodeID
from,
27
mrpt::utils::TNodeID
to);
28
HypothesisNotFoundException
(
size_t
id
);
29
~
HypothesisNotFoundException
()
throw
();
30
void
clear
();
31
std::string getErrorMsg()
const
throw
();
32
const
char
* what()
const
throw
();
33
34
private
:
35
mrpt::utils::TNodeID
m_from
;
36
mrpt::utils::TNodeID
m_to
;
37
38
/**\brief Hypothesis ID */
39
size_t
m_id
;
40
41
/**\brief Error message */
42
std::string
m_msg
;
43
static
std::ostringstream
m_cnvt
;
44
};
45
46
#endif
/* end of include guard: CHYPOTHESISNOTFOUNDEXCEPTION_H */
HypothesisNotFoundException::m_msg
std::string m_msg
Error message.
Definition:
CHypothesisNotFoundException.h:42
HypothesisNotFoundException::m_id
size_t m_id
Hypothesis ID.
Definition:
CHypothesisNotFoundException.h:39
mrpt_macros.h
link_pragmas.h
GRAPHS_IMPEXP
#define GRAPHS_IMPEXP
Definition:
graphs/include/mrpt/graphs/link_pragmas.h:41
mrpt::utils::clear
void clear()
Clear the contents of this container.
Definition:
ts_hash_map.h:113
mrpt::utils::TNodeID
uint64_t TNodeID
The type for node IDs in graphs of different types.
Definition:
types_simple.h:45
HypothesisNotFoundException::m_cnvt
static std::ostringstream m_cnvt
Definition:
CHypothesisNotFoundException.h:43
HypothesisNotFoundException
Definition:
CHypothesisNotFoundException.h:23
HypothesisNotFoundException::m_from
mrpt::utils::TNodeID m_from
Definition:
CHypothesisNotFoundException.h:35
types_simple.h
HypothesisNotFoundException::m_to
mrpt::utils::TNodeID m_to
Definition:
CHypothesisNotFoundException.h:36
Page generated by
Doxygen 1.8.13
for MRPT 1.5.3 at Sun Nov 26 00:44:48 UTC 2017