NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Common.IO.OptionSet.ArgumentEnumerator Class Reference
Inheritance diagram for Ntp.Common.IO.OptionSet.ArgumentEnumerator:
Collaboration diagram for Ntp.Common.IO.OptionSet.ArgumentEnumerator:

Public Member Functions

 ArgumentEnumerator (IEnumerable< string > arguments)
 
void Add (IEnumerable< string > arguments)
 
IEnumerator< string > GetEnumerator ()
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 

Private Attributes

readonly List< IEnumerator< string > > sources = new List<IEnumerator<string>>()
 

Detailed Description

Definition at line 1459 of file Options.cs.

Constructor & Destructor Documentation

Ntp.Common.IO.OptionSet.ArgumentEnumerator.ArgumentEnumerator ( IEnumerable< string >  arguments)
inline

Definition at line 1461 of file Options.cs.

1462  {
1463  sources.Add(arguments.GetEnumerator());
1464  }
readonly List< IEnumerator< string > > sources
Definition: Options.cs:1466

Member Function Documentation

void Ntp.Common.IO.OptionSet.ArgumentEnumerator.Add ( IEnumerable< string >  arguments)
inline

Definition at line 1488 of file Options.cs.

1489  {
1490  sources.Add(arguments.GetEnumerator());
1491  }
readonly List< IEnumerator< string > > sources
Definition: Options.cs:1466
IEnumerator<string> Ntp.Common.IO.OptionSet.ArgumentEnumerator.GetEnumerator ( )
inline

Definition at line 1468 of file Options.cs.

1469  {
1470  do
1471  {
1472  var c = sources[sources.Count - 1];
1473  if (c.MoveNext())
1474  yield return c.Current;
1475  else
1476  {
1477  c.Dispose();
1478  sources.RemoveAt(sources.Count - 1);
1479  }
1480  } while (sources.Count > 0);
1481  }
var c
Definition: bootstrap.min.js:6
readonly List< IEnumerator< string > > sources
Definition: Options.cs:1466
IEnumerator IEnumerable. Ntp.Common.IO.OptionSet.ArgumentEnumerator.GetEnumerator ( )
inlineprivate

Definition at line 1483 of file Options.cs.

1484  {
1485  return GetEnumerator();
1486  }
IEnumerator< string > GetEnumerator()
Definition: Options.cs:1468

Member Data Documentation

readonly List<IEnumerator<string> > Ntp.Common.IO.OptionSet.ArgumentEnumerator.sources = new List<IEnumerator<string>>()
private

Definition at line 1466 of file Options.cs.


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