#pragma once

#include <fsdk/Def.h>
#include <fsdk/IRefCounted.h>
#include <fsdk/Types/Image.h>
#include <fsdk/Types/Ref.h>
#include <fsdk/Types/Span.h>

namespace fsdk {

#ifndef DOXYGEN_SHOULD_SKIP_THIS
	DECLARE_SMARTPTR(IImagesBatch);
#endif

	/**
	 * @brief Result of ImageTransfer module.
	 * @note Images stored in IImagesBatch is located in internal memory pool placed on
	 * device user choose while making transfer.
	 * @note This structure valid only while FaceEngine initialized.
	 * Usage of this structure after FaceEngine destruction is undefined behaviour.
	 * */
	struct IImagesBatch : public IRefCounted {

		/**
		 * @brief Returns size.
		 * @return size of the image list.
		 * */
		virtual size_t getSize() const noexcept = 0;

		/**
		 * @brief Returns Image.
		 * @param [in] index index of the image in a batch.
		 * @return Image.
		 * @see Image for details.
		 * */
		virtual Image getImage(size_t index = 0) const noexcept = 0;

		/**
		 * @brief Return Images Span.
		 * @return Span of Images.
		 * @see Span and Image for details.
		 * @note The resulting fsdk::Span refers to the fsdk::IImagesBatch object internal storage and
		 * does not own a data.
		 * */
		virtual Span<const Image> getImages() const noexcept = 0;
	};

} // namespace fsdk
