37 lines
749 B
C++
37 lines
749 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "raf/RegionAffiliation.h"
|
|
#include "raf/TypeDefs.h"
|
|
|
|
namespace raf {
|
|
|
|
class BaseImpl {
|
|
protected:
|
|
explicit BaseImpl(MemoryResource* memRes_) :
|
|
memRes{memRes_},
|
|
regionAffiliation{memRes} {
|
|
}
|
|
|
|
~BaseImpl() = default;
|
|
|
|
BaseImpl(const BaseImpl&) = delete;
|
|
BaseImpl& operator=(const BaseImpl&) = delete;
|
|
|
|
BaseImpl(BaseImpl&& rhs) = delete;
|
|
BaseImpl& operator=(BaseImpl&&) = delete;
|
|
|
|
public:
|
|
MemoryResource* getMemoryResource() {
|
|
return memRes;
|
|
}
|
|
|
|
protected:
|
|
MemoryResource* memRes;
|
|
RegionAffiliation regionAffiliation;
|
|
|
|
};
|
|
|
|
} // namespace raf
|