libnuklei
io
nuklei
SerializedKernelObservation.h
Go to the documentation of this file.
1
// (C) Copyright Renaud Detry 2007-2015.
2
// Distributed under the GNU General Public License and under the
3
// BSD 3-Clause License (See accompanying file LICENSE.txt).
4
5
/** @file */
6
7
#ifndef NUKLEI_KERNELOBSERVATION_H
8
#define NUKLEI_KERNELOBSERVATION_H
9
10
11
#include <vector>
12
#include <string>
13
#include <utility>
14
#include <stdexcept>
15
#include <iostream>
16
#include <boost/shared_ptr.hpp>
17
18
#include <
nuklei/Definitions.h
>
19
#include <
nuklei/Color.h
>
20
#include <
nuklei/LinearAlgebra.h
>
21
#include <
nuklei/Observation.h
>
22
#include <
nuklei/member_clone_ptr.h
>
23
24
25
namespace
nuklei
{
26
27
class
SerializedKernelObservation
:
public
Observation
28
{
29
public
:
30
31
Type type()
const
{
return
SERIAL; }
32
33
static
const
double
TOL;
34
35
NUKLEI_UNIQUE_PTR<kernel::base> getKernel()
const
36
{
37
return
k_->clone();
38
}
39
40
void
setKernel(
const
kernel::base
& k)
41
{
42
NUKLEI_TRACE_BEGIN();
43
k_ = k;
44
NUKLEI_TRACE_END();
45
}
46
47
SerializedKernelObservation
();
48
SerializedKernelObservation
(
const
kernel::base
& k);
49
~
SerializedKernelObservation
() {};
50
51
private
:
52
member_clone_ptr<kernel::base>
k_;
53
};
54
55
}
56
57
#endif
nuklei::Observation
Definition:
Observation.h:17
nuklei
Public namespace.
Definition:
Color.cpp:9
LinearAlgebra.h
nuklei::SerializedKernelObservation
Definition:
SerializedKernelObservation.h:27
nuklei::kernel::base
Polymorphic kernel class.
Definition:
Kernel.h:45
Definitions.h
member_clone_ptr.h
Observation.h
Color.h
nuklei::member_clone_ptr
Definition:
member_clone_ptr.h:17
© Copyright 2007-2013 Renaud Detry.
Distributed under the terms of the GNU General Public License (GPL).
(See accompanying file
LICENSE.txt
or copy at
http://www.gnu.org/copyleft/gpl.html
.)
Revised Sun Sep 13 2020 19:10:06.