You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ovtkIVector.h 729B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "ovtk_base.h"
  3. namespace OpenViBE {
  4. namespace Toolkit {
  5. class OVTK_API IVector : public IObject
  6. {
  7. public:
  8. virtual uint32_t getSize() const = 0;
  9. virtual bool setSize(const uint32_t size) = 0;
  10. virtual double* getBuffer() = 0;
  11. virtual const double* getBuffer() const = 0;
  12. virtual const char* getElementLabel(const uint32_t index) const = 0;
  13. virtual bool setElementLabel(const uint32_t index, const char* sElementLabel) = 0;
  14. _IsDerivedFromClass_(IObject, OVTK_ClassId_Vector)
  15. const double& operator [](const uint32_t index) const { return this->getBuffer()[index]; }
  16. double& operator [](const uint32_t index) { return this->getBuffer()[index]; }
  17. };
  18. } // namespace Toolkit
  19. } // namespace OpenViBE