MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.basecode.GenericList< T > Class Template Reference

The GenericList provides a base used to implement a generic list by only implementing the minimum amount of the list functionality. More...

Inheritance diagram for MyCaffe.basecode.GenericList< T >:

Public Member Functions

 GenericList ()
 The constructor. More...
 
virtual void Add (T item)
 Add a new item to the list. More...
 
bool Remove (T item)
 Remove an item from the list. More...
 
void RemoveAt (int nIdx)
 Remove the item at a given index in the list. More...
 
void Clear ()
 Remove all items from the list. More...
 
IEnumerator< T > GetEnumerator ()
 Get the list enumerator. More...
 

Protected Attributes

List< T > m_rgItems = new List<T>()
 The actual list of items. More...
 

Properties

int Count [get]
 Returns the number of items in the list. More...
 
this[int nIdx] [getset]
 Get/set the item at an index in the list. More...
 

Detailed Description

The GenericList provides a base used to implement a generic list by only implementing the minimum amount of the list functionality.

Template Parameters
TThe base type of the list.

Definition at line 14 of file GenericList.cs.

Constructor & Destructor Documentation

◆ GenericList()

The constructor.

Definition at line 24 of file GenericList.cs.

Member Function Documentation

◆ Add()

virtual void MyCaffe.basecode.GenericList< T >.Add ( item)
virtual

Add a new item to the list.

Parameters
itemSpecifies the item to add.

Definition at line 40 of file GenericList.cs.

◆ Clear()

void MyCaffe.basecode.GenericList< T >.Clear ( )

Remove all items from the list.

Definition at line 67 of file GenericList.cs.

◆ GetEnumerator()

IEnumerator< T > MyCaffe.basecode.GenericList< T >.GetEnumerator ( )

Get the list enumerator.

Returns
The enumerator is returned.

Definition at line 76 of file GenericList.cs.

◆ Remove()

bool MyCaffe.basecode.GenericList< T >.Remove ( item)

Remove an item from the list.

Parameters
itemSpecifies the item to remove.
Returns
If the item is found and removed true is returned, otherwise false is returned.

Definition at line 50 of file GenericList.cs.

◆ RemoveAt()

void MyCaffe.basecode.GenericList< T >.RemoveAt ( int  nIdx)

Remove the item at a given index in the list.

Parameters
nIdxSpecifies the index at which to remove the item.

Definition at line 59 of file GenericList.cs.

Member Data Documentation

◆ m_rgItems

List<T> MyCaffe.basecode.GenericList< T >.m_rgItems = new List<T>()
protected

The actual list of items.

Definition at line 19 of file GenericList.cs.

Property Documentation

◆ Count

int MyCaffe.basecode.GenericList< T >.Count
get

Returns the number of items in the list.

Definition at line 31 of file GenericList.cs.

◆ this[int nIdx]

T MyCaffe.basecode.GenericList< T >.this[int nIdx]
getset

Get/set the item at an index in the list.

Parameters
nIdxSpecifies the index of the item to access.
Returns
The item is returned at the given index.

Definition at line 95 of file GenericList.cs.


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