libtcspc C++ API
Streaming TCSPC and time tag data processing
Loading...
Searching...
No Matches
data_types.hpp
1/*
2 * This file is part of libtcspc
3 * Copyright 2019-2026 Board of Regents of the University of Wisconsin System
4 * SPDX-License-Identifier: MIT
5 */
6
7#pragma once
8
9#include "int_types.hpp"
10
11namespace tcspc {
12
34
39
44
50 using count_type = u32;
51
56
61
65 using bin_type = u16;
66};
67
79template <typename Abstime = default_data_types::abstime_type,
80 typename Channel = default_data_types::channel_type,
81 typename Difftime = default_data_types::difftime_type,
82 typename Count = default_data_types::count_type,
83 typename Datapoint = default_data_types::datapoint_type,
84 typename BinIndex = default_data_types::bin_index_type,
85 typename Bin = default_data_types::bin_type>
88 using abstime_type = Abstime;
89 using channel_type = Channel;
90 using difftime_type = Difftime;
91 using count_type = Count;
92 using datapoint_type = Datapoint;
93 using bin_index_type = BinIndex;
94 using bin_type = Bin;
96};
97
98} // namespace tcspc
std::int32_t i32
Short name for int32_t.
Definition int_types.hpp:42
std::int64_t i64
Short name for int64_t.
Definition int_types.hpp:45
std::uint16_t u16
Short name for uint16_t.
Definition int_types.hpp:27
std::uint32_t u32
Short name for uint32_t.
Definition int_types.hpp:30
libtcspc namespace.
Definition acquire.hpp:29
The default data type set.
Definition data_types.hpp:24
u16 bin_type
Type of histogram bin value (count).
Definition data_types.hpp:65
i32 datapoint_type
Type of datapoint for histogramming.
Definition data_types.hpp:55
u16 bin_index_type
Type of histogram bin index.
Definition data_types.hpp:60
i64 abstime_type
Absolute time type.
Definition data_types.hpp:33
i32 difftime_type
Difference time type.
Definition data_types.hpp:43
u32 count_type
Count type.
Definition data_types.hpp:50
i32 channel_type
Channel number type.
Definition data_types.hpp:38
Utility for naming a data type set without additional definitions.
Definition data_types.hpp:86