Sen API
Sen Libraries
Loading...
Searching...
No Matches
keyframe.h
Go to the documentation of this file.
1// === keyframe.h ======================================================================================================
2// Sen Infrastructure
3// Released under the Apache License v2.0 (SPDX-License-Identifier Apache-2.0).
4// See the LICENSE.txt file for more information.
5// © Airbus SAS, Airbus Helicopters, and Airbus Defence and Space SAU/GmbH/SAS.
6// =====================================================================================================================
7
8#ifndef SEN_DB_KEYFRAME_H
9#define SEN_DB_KEYFRAME_H
10
11#include "sen/core/obj/object.h"
12#include "sen/db/snapshot.h"
13
14namespace sen::db
15{
16
17class Input;
18
22class Keyframe
23{
24 SEN_COPY_MOVE(Keyframe)
25
26public:
27 ~Keyframe() = default;
28
29public:
31 [[nodiscard]] Span<const Snapshot> getSnapshots() const noexcept;
32
33private:
34 friend class Input;
35 explicit Keyframe(std::vector<Snapshot> snapshots);
36
37private:
38 std::vector<Snapshot> snapshots_;
39};
40
41} // namespace sen::db
42
43#endif // SEN_DB_KEYFRAME_H
Contiguous view of elements of type T. Inspired by http://www.open-std.org/jtc1/sc22/wg21/docs/papers...
Definition span.h:34
Allows you to access an existing recording in the file system.
Definition input.h:63
~Keyframe()=default
friend class Input
Definition keyframe.h:34
Span< const Snapshot > getSnapshots() const noexcept
The set of snapshots for all the objects present at the time.
Represents the full state of an object at a point in time.
Definition snapshot.h:22
Definition annotation.h:20
STL namespace.