27 lines
368 B
C
27 lines
368 B
C
|
#pragma once
|
||
|
#include "Types.h"
|
||
|
|
||
|
namespace ehs
|
||
|
{
|
||
|
template <typename T>
|
||
|
class SPVE;
|
||
|
|
||
|
template <typename T>
|
||
|
class SPV
|
||
|
{
|
||
|
private:
|
||
|
Size size;
|
||
|
Size rawSize;
|
||
|
Size stride;
|
||
|
T *data;
|
||
|
|
||
|
public:
|
||
|
SPV();
|
||
|
|
||
|
SPVE<T> operator[](Size index)
|
||
|
{
|
||
|
return SPVE<T>(data[index]);
|
||
|
}
|
||
|
};
|
||
|
}
|