MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.layers.tft.FieldCollection Class Reference

The FieldCollection manages a collection of fields. More...

Inheritance diagram for MyCaffe.layers.tft.FieldCollection:

Public Member Functions

 FieldCollection ()
 The constructor. More...
 
int FindFieldIndex (Field.INPUT_TYPE type)
 Locates the index of the field by its type. More...
 
void Add (Field field)
 Add a new field to the collection. More...
 
IEnumerator< FieldGetEnumerator ()
 Return the enumeration of the fields. More...
 

Static Public Member Functions

static FieldCollection Load (XmlNode node)
 Loads a collection of fields from an XML node. More...
 

Properties

Field this[int nIdx] [get]
 Get a field at a given index. More...
 
Field this[string strName] [get]
 Get a field by name. More...
 
int Count [get]
 Returns the number of fields in the collection. More...
 
string File [get]
 Returns the NPY file for which the fields are associated with. More...
 

Detailed Description

The FieldCollection manages a collection of fields.

Definition at line 692 of file DataSchema.cs.

Constructor & Destructor Documentation

◆ FieldCollection()

MyCaffe.layers.tft.FieldCollection.FieldCollection ( )

The constructor.

Definition at line 700 of file DataSchema.cs.

Member Function Documentation

◆ Add()

void MyCaffe.layers.tft.FieldCollection.Add ( Field  field)

Add a new field to the collection.

Parameters
fieldSpecifies the field to add.

Definition at line 747 of file DataSchema.cs.

◆ FindFieldIndex()

int MyCaffe.layers.tft.FieldCollection.FindFieldIndex ( Field.INPUT_TYPE  type)

Locates the index of the field by its type.

Parameters
typeThe field type to look for.
Returns
The index of the first field of the specified type is returned.

Definition at line 732 of file DataSchema.cs.

◆ GetEnumerator()

IEnumerator< Field > MyCaffe.layers.tft.FieldCollection.GetEnumerator ( )

Return the enumeration of the fields.

Returns
The enumerator is returned.

Definition at line 756 of file DataSchema.cs.

◆ Load()

static FieldCollection MyCaffe.layers.tft.FieldCollection.Load ( XmlNode  node)
static

Loads a collection of fields from an XML node.

Parameters
nodeSpecifies the XML node containing the fields.
Returns
The new field collection is returned.

Definition at line 709 of file DataSchema.cs.

Property Documentation

◆ Count

int MyCaffe.layers.tft.FieldCollection.Count
get

Returns the number of fields in the collection.

Definition at line 802 of file DataSchema.cs.

◆ File

string MyCaffe.layers.tft.FieldCollection.File
get

Returns the NPY file for which the fields are associated with.

Definition at line 810 of file DataSchema.cs.

◆ this[int nIdx]

Field MyCaffe.layers.tft.FieldCollection.this[int nIdx]
get

Get a field at a given index.

Parameters
nIdxSpecifies the index.
Returns
The field at the index is returned.

Definition at line 775 of file DataSchema.cs.

◆ this[string strName]

Field MyCaffe.layers.tft.FieldCollection.this[string strName]
get

Get a field by name.

Parameters
strNameSpecifies the field name of the field to get.
Returns
The field is returned if found, othwerwise null is returned.

Definition at line 785 of file DataSchema.cs.


The documentation for this class was generated from the following file: