-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
vw_interface.h
39 lines (33 loc) · 1.01 KB
/
vw_interface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
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;
/// <summary>
/// Owners of example must implement this interface.
/// </summary>
public interface class IVowpalWabbitExamplePool : public System::IDisposable
{
/// <summary>
/// Gets or creates a new native examples.
/// </summary>
VowpalWabbitExample^ GetOrCreateNativeExample();
property VowpalWabbit^ Native
{
VowpalWabbit^ get();
}
/// <summary>
/// Puts a native example data structure back into the pool.
/// </summary>
/// <param name="example">The example to be returned.</param>
void ReturnExampleToPool(VowpalWabbitExample^ example);
};
}