Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

void PArgList::Shift ( int  sh )

Shift the parameters by the specified amount. This allows the parameters to be parsed at the same position in the argument list "array".

shNumber of parameters to shift forward through list

Definition at line 1750 of file osutils.cxx.

References parameterIndex, and shift.

Referenced by operator<<(), and operator>>().

  shift += sh;
  if (shift < 0)
    shift = 0;
  else if (shift >= (int)parameterIndex.GetSize())
    shift = parameterIndex.GetSize() - 1;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index