2024-12-02 16:19:50 -08:00
|
|
|
#pragma once
|
|
|
|
|
2025-01-11 14:02:13 -08:00
|
|
|
#include "SPV.h"
|
|
|
|
|
2024-12-02 16:19:50 -08:00
|
|
|
namespace ehs
|
|
|
|
{
|
|
|
|
template <typename T>
|
|
|
|
class SPVE
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
SPV *owner;
|
|
|
|
T *value;
|
|
|
|
|
|
|
|
public:
|
2025-01-11 14:02:13 -08:00
|
|
|
SPVE()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
SPVE(T *value)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
SPVE(SPVE &&spve) noexcept
|
|
|
|
{
|
|
|
|
}
|
2024-12-02 16:19:50 -08:00
|
|
|
|
2025-01-11 14:02:13 -08:00
|
|
|
SPVE(const SPVE &spve)
|
|
|
|
{
|
|
|
|
}
|
2024-12-02 16:19:50 -08:00
|
|
|
|
2025-01-11 14:02:13 -08:00
|
|
|
SPVE &operator=(SPVE &&spve) noexcept
|
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
2024-12-02 16:19:50 -08:00
|
|
|
|
2025-01-11 14:02:13 -08:00
|
|
|
SPVE &operator=(const SPVE &spve)
|
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
2024-12-02 16:19:50 -08:00
|
|
|
|
2025-01-11 14:02:13 -08:00
|
|
|
SPV *GetOwner() const
|
|
|
|
{
|
|
|
|
return owner;
|
|
|
|
}
|
2024-12-02 16:19:50 -08:00
|
|
|
|
2025-01-11 14:02:13 -08:00
|
|
|
T *GetValue() const
|
|
|
|
{
|
|
|
|
return value;
|
|
|
|
}
|
2024-12-02 16:19:50 -08:00
|
|
|
};
|
|
|
|
}
|