MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
BlobProtoCollection.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace MyCaffe.param
7{
11 public class BlobProtoCollection : IEnumerable<BlobProto>
12 {
13 List<BlobProto> m_rgProtos = new List<BlobProto>();
14
19 {
20 }
21
25 public int Count
26 {
27 get { return m_rgProtos.Count; }
28 }
29
35 public BlobProto this[int nIdx]
36 {
37 get { return m_rgProtos[nIdx]; }
38 set { m_rgProtos[nIdx] = value; }
39 }
40
45 public void Add(BlobProto bp)
46 {
47 m_rgProtos.Add(bp);
48 }
49
54 public void RemoveAt(int nIdx)
55 {
56 m_rgProtos.RemoveAt(nIdx);
57 }
58
64 public bool Remove(BlobProto bp)
65 {
66 return m_rgProtos.Remove(bp);
67 }
68
72 public void Clear()
73 {
74 m_rgProtos.Clear();
75 }
76
81 public IEnumerator<BlobProto> GetEnumerator()
82 {
83 return m_rgProtos.GetEnumerator();
84 }
85
90 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
91 {
92 return m_rgProtos.GetEnumerator();
93 }
94 }
95}
Specifies a collection of BlobProtos.
int Count
Specifies the number of items in the collection.
void Clear()
Remove all elements from the collection.
bool Remove(BlobProto bp)
Remove a given BlobProto if it exists in the collection.
void Add(BlobProto bp)
Add a new BlobProto to the collection.
IEnumerator< BlobProto > GetEnumerator()
Retrive the enumerator for the collection.
BlobProtoCollection()
The BlobProtoCollection Constructor.
void RemoveAt(int nIdx)
Remove a BlobProto at a given index.
The BlobProto contains the descripion of a blob.
Definition: BlobProto.cs:15
The MyCaffe.param namespace contains parameters used to create models.