Project
Loading...
Searching...
No Matches
DataChunk.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#ifndef FRAMEWORK_DATACHUNK_H
12#define FRAMEWORK_DATACHUNK_H
13
15
16namespace o2
17{
18namespace framework
19{
26class DataChunk : public std::vector<char, o2::pmr::polymorphic_allocator<char>>
27{
28 public:
29 // FIXME: want to have a general forwarding, but then the copy constructor is not deleted any more despite
30 // it's declared deleted
31 //template <typename... Args>
32 //DataChunk(T&& arg, Args&&... args) : std::vector<char, o2::pmr::polymorphic_allocator<char>>(std::forward<Args>(args)...)
33 //{
34 //}
35
36 // DataChunk is special and for the moment it's enough to declare the constructor with size and allocator
37 DataChunk(size_t size, const o2::pmr::polymorphic_allocator<char>& allocator) : std::vector<char, o2::pmr::polymorphic_allocator<char>>(size, allocator)
38 {
39 }
40 DataChunk(const DataChunk&) = delete;
41 DataChunk& operator=(const DataChunk&) = delete;
42 DataChunk(DataChunk&&) = default;
44};
45
46} // namespace framework
47} // namespace o2
48#endif // FRAMEWORK_DATACHUNK_H
DataChunk & operator=(DataChunk &&)=default
DataChunk(size_t size, const o2::pmr::polymorphic_allocator< char > &allocator)
Definition DataChunk.h:37
DataChunk & operator=(const DataChunk &)=delete
DataChunk(DataChunk &&)=default
DataChunk(const DataChunk &)=delete
GLsizeiptr size
Definition glcorearb.h:659
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.