MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
DataQueryCollection.cs
1using MyCaffe.basecode;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace MyCaffe.db.stream
9{
13 class DataQueryCollection : GenericList<DataQuery>, IDisposable
14 {
19 {
20 }
21
25 public void Dispose()
26 {
27 foreach (DataQuery dq in m_rgItems)
28 {
29 dq.Dispose();
30 }
31 }
32
36 public void Start()
37 {
38 foreach (DataQuery dq in m_rgItems)
39 {
40 dq.EnableQueueThread = true;
41 }
42 }
43
47 public void Stop()
48 {
49 foreach (DataQuery dq in m_rgItems)
50 {
51 dq.EnableQueueThread = false;
52 }
53 }
54
58 public void Shutdown()
59 {
60 foreach (DataQuery dq in m_rgItems)
61 {
62 dq.Shutdown();
63 }
64 }
65 }
66}
The GenericList provides a base used to implement a generic list by only implementing the minimum amo...
Definition: GenericList.cs:15
List< T > m_rgItems
The actual list of items.
Definition: GenericList.cs:19
The DataQueryCollection manages all active data queries.
void Shutdown()
Shutdown all data queries, stopping their internal query threads.
void Dispose()
Release all data queries.
void Stop()
Stop all data queries from actively querying data.
void Start()
Enable all data queries allowing each to actively query data, filling their internal queues.
The DataQuery manages a custom query interface and queues data from the custom query via an internal ...
Definition: DataQuery.cs:15
bool EnableQueueThread
Enable/disable the internal query thread.
Definition: DataQuery.cs:77
void Dispose()
Release all resources used and shutdown.
Definition: DataQuery.cs:52
void Shutdown()
Stop the internal query thread.
Definition: DataQuery.cs:60
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
Definition: Annotation.cs:12
The MyCaffe.db.stream namespace contains all data streaming related classes.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...
Definition: Annotation.cs:12