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

The Lookup class is used to manage a single lookup table. More...

Public Member Functions

 Lookup ()
 The constructor. More...
 
void Clear ()
 Clear the entries from the lookup table. More...
 
void Add (Lookup l)
 Add a lookup table to this lookup table. More...
 
void Add (LookupItem item)
 Add a new item to the lookup table. More...
 
int FindID (string strName)
 Find a given lookup ID by name. More...
 
string FindName (int nID)
 Find a given lookup name by ID. More...
 

Static Public Member Functions

static Lookup Load (XmlNode node)
 Load a lookup table from an XML node. More...
 

Properties

int Count [get]
 Returns the the number of lookup items. More...
 
string Name [get]
 Specifies the lookup item name. More...
 
LookupItem this[int nIdx] [get]
 Returns the lookup item at a given index. More...
 

Detailed Description

The Lookup class is used to manage a single lookup table.

Definition at line 427 of file DataSchema.cs.

Constructor & Destructor Documentation

◆ Lookup()

MyCaffe.layers.tft.Lookup.Lookup ( )

The constructor.

Definition at line 436 of file DataSchema.cs.

Member Function Documentation

◆ Add() [1/2]

void MyCaffe.layers.tft.Lookup.Add ( Lookup  l)

Add a lookup table to this lookup table.

Parameters
lSpecifies the lookup table to add.

Definition at line 481 of file DataSchema.cs.

◆ Add() [2/2]

void MyCaffe.layers.tft.Lookup.Add ( LookupItem  item)

Add a new item to the lookup table.

Parameters
itemSpecifies the lookup item to add.

Definition at line 512 of file DataSchema.cs.

◆ Clear()

void MyCaffe.layers.tft.Lookup.Clear ( )

Clear the entries from the lookup table.

Definition at line 471 of file DataSchema.cs.

◆ FindID()

int MyCaffe.layers.tft.Lookup.FindID ( string  strName)

Find a given lookup ID by name.

Parameters
strNameSpecifies the lookup name.
Returns
Returns the lookup ID or -1 if not found.

Definition at line 531 of file DataSchema.cs.

◆ FindName()

string MyCaffe.layers.tft.Lookup.FindName ( int  nID)

Find a given lookup name by ID.

Parameters
nIDSpecifies the lookup ID.
Returns
Returns the lookup name or null if not found.

Definition at line 544 of file DataSchema.cs.

◆ Load()

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

Load a lookup table from an XML node.

Parameters
nodeSpecifies the XML node containing the Lookup/
Returns
The Lookup object is returned.

Definition at line 445 of file DataSchema.cs.

Property Documentation

◆ Count

int MyCaffe.layers.tft.Lookup.Count
get

Returns the the number of lookup items.

Definition at line 463 of file DataSchema.cs.

◆ Name

string MyCaffe.layers.tft.Lookup.Name
get

Specifies the lookup item name.

Definition at line 521 of file DataSchema.cs.

◆ this[int nIdx]

LookupItem MyCaffe.layers.tft.Lookup.this[int nIdx]
get

Returns the lookup item at a given index.

Parameters
nIdxSpecifies the index to retrieve.
Returns
The lookup item is returned.

Definition at line 557 of file DataSchema.cs.


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