CVB.Net 14.0
TrainingSet.TrainingSetObjectInfoCollection< TParent, TInfo > Class Template Reference

Additional inheritance level of the InformationCollection object from the Image Manager wrapper that specifies stronger constraints on the TInfo generic parameter More...

Inherits InfoCollection< TParent, TInfo >.

Public Member Functions

int IndexOf (TInfo obj)
 Determine the index of an image information object inside this collection. More...
 
- Public Member Functions inherited from InfoCollection< TParent, TInfo >
TInfo[] ToArray ()
 Converts this collection into an array. More...
 

Additional Inherited Members

- Protected Member Functions inherited from InfoCollection< TParent, TInfo >
 InfoCollection (TParent parent)
 Constructor. More...
 
abstract int GetCount ()
 Function with which the collection queries the number of elements More...
 
abstract TInfo GetInfo (int index)
 Function with which the collection retrieves the information object with the given index. More...
 
- Protected Attributes inherited from InfoCollection< TParent, TInfo >
readonly TParent Parent
 Parent image reference helps keeping track of the lifetime and provides the information basis for index access
 
- Properties inherited from InfoCollection< TParent, TInfo >
int Count [get]
 Number of elements in the collection. More...
 

Detailed Description

Additional inheritance level of the InformationCollection object from the Image Manager wrapper that specifies stronger constraints on the TInfo generic parameter

Template Parameters
TParent
TInfo
Type Constraints
TInfo :TrainingSetObject 
TParent :INativeHandle 

Member Function Documentation

◆ IndexOf()

int IndexOf ( TInfo  obj)

Determine the index of an image information object inside this collection.

Parameters
objObject for which to determine the index.
Returns
Index through which the object can be accessed within this collection if it is part of this collection, -1 otherwise. Note that the returned index may be invalidated by Remove calls.
Exceptions
ObjectDisposedExceptionIf the TrainingSet has already been disposed
ArgumentNullExceptionIf the obj parameter is null.