mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
6d316f2bc7
date: 2024-06-11T01:36:39 master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
//=============================================================================
|
|
//
|
|
// Copyright (c) 2015-2020 Qualcomm Technologies, Inc.
|
|
// All Rights Reserved.
|
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
|
//
|
|
//=============================================================================
|
|
|
|
#ifndef _ITENSOR_ITR_IMPL_HPP_
|
|
#define _ITENSOR_ITR_IMPL_HPP_
|
|
|
|
#include "ZdlExportDefine.hpp"
|
|
|
|
#include <memory>
|
|
#include <iterator>
|
|
|
|
namespace DlSystem
|
|
{
|
|
class ITensorItrImpl;
|
|
}
|
|
|
|
class ZDL_EXPORT DlSystem::ITensorItrImpl
|
|
{
|
|
public:
|
|
ITensorItrImpl() {}
|
|
virtual ~ITensorItrImpl() {}
|
|
|
|
virtual float getValue() const = 0;
|
|
virtual float& getReference() = 0;
|
|
virtual float& getReferenceAt(size_t idx) = 0;
|
|
virtual float* dataPointer() const = 0;
|
|
virtual void increment(int incVal = 1) = 0;
|
|
virtual void decrement(int decVal = 1) = 0;
|
|
virtual size_t getPosition() = 0;
|
|
virtual std::unique_ptr<DlSystem::ITensorItrImpl> clone() = 0;
|
|
|
|
private:
|
|
ITensorItrImpl& operator=(const ITensorItrImpl& other) = delete;
|
|
ITensorItrImpl(const ITensorItrImpl& other) = delete;
|
|
};
|
|
|
|
#endif
|