/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #pragma once #include "vw.h" #include "vw_clr.h" #include "vw_prediction.h" namespace VW { ref class VowpalWabbitExample; ref class VowpalWabbitBase; /// /// Owners of example must implement this interface. /// public interface class IVowpalWabbitExamplePool : public System::IDisposable { /// /// Gets or creates a new native examples. /// VowpalWabbitExample^ GetOrCreateNativeExample(); property VowpalWabbit^ Native { VowpalWabbit^ get(); } /// /// Puts a native example data structure back into the pool. /// /// The example to be returned. void ReturnExampleToPool(VowpalWabbitExample^ example); }; }