MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
ParameterDescriptor.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
8{
12 [Serializable]
14 {
15 int m_nID;
16 string m_strName;
17 string m_strValue;
18
25 public ParameterDescriptor(int nID, string strName, string strValue)
26 {
27 m_nID = nID;
28 m_strName = strName;
29 m_strValue = strValue;
30 }
31
37 : this(p.ID, p.Name, p.Value)
38 {
39 }
40
45 public virtual ParameterDescriptor Clone()
46 {
47 return new ParameterDescriptor(ID, Name, Value);
48 }
49
53 public int ID
54 {
55 get { return m_nID; }
56 }
57
61 public string Name
62 {
63 get { return m_strName; }
64 }
65
69 public string Value
70 {
71 get { return m_strValue; }
72 set { m_strValue = value; }
73 }
74
79 public override string ToString()
80 {
81 return m_strName + " -> " + m_strValue;
82 }
83 }
84}
The ParameterDescriptor class describes a parameter in the database.
ParameterDescriptor(ParameterDescriptor p)
The ParameterDescriptor constructor.
override string ToString()
Creates the string representation of the descriptor.
virtual ParameterDescriptor Clone()
Creates a copy of the parameter descriptor.
int ID
Return the database ID of the item.
ParameterDescriptor(int nID, string strName, string strValue)
The ParameterDescriptor constructor.
string Value
Get/set the value of the item.
The descriptors namespace contains all descriptor used to describe various items stored within the da...