mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
FairMQRegion and examples/advanced/Region
This commit is contained in:
committed by
Mohammad Al-Turany
parent
65f1b96dc3
commit
221d2567f0
26
fairmq/FairMQRegion.h
Normal file
26
fairmq/FairMQRegion.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/********************************************************************************
|
||||
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||
* *
|
||||
* This software is distributed under the terms of the *
|
||||
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
|
||||
* copied verbatim in the file "LICENSE" *
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef FAIRMQREGION_H_
|
||||
#define FAIRMQREGION_H_
|
||||
|
||||
#include <cstddef> // size_t
|
||||
#include <memory> // unique_ptr
|
||||
|
||||
class FairMQRegion
|
||||
{
|
||||
public:
|
||||
virtual void* GetData() const = 0;
|
||||
virtual size_t GetSize() const = 0;
|
||||
|
||||
virtual ~FairMQRegion() {};
|
||||
};
|
||||
|
||||
using FairMQRegionPtr = std::unique_ptr<FairMQRegion>;
|
||||
|
||||
#endif /* FAIRMQREGION_H_ */
|
Reference in New Issue
Block a user