Radium Engine  1.5.0
ContainerIntrospectionInterface.hpp
1 #pragma once
2 #include <Core/RaCore.hpp>
3 
4 namespace Ra {
5 namespace Core {
6 namespace Utils {
7 
14 {
15  public:
19  virtual size_t getSize() const = 0;
20 
24  virtual size_t getNumberOfComponents() const = 0;
25 
27  virtual size_t getBufferSize() const = 0;
28 
32  virtual int getStride() const = 0;
33 
35  virtual const void* dataPtr() const = 0;
36 };
37 
38 } // namespace Utils
39 } // namespace Core
40 } // namespace Ra
This class defines the introspection interface a container need to implement.
virtual ~ContainerIntrospectionInterface()
only needed for correct abstract dtor call.
virtual const void * dataPtr() const =0
Definition: Cage.cpp:3