rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
List of all members | Public Member Functions | Static Public Member Functions
IlPredefinedUnits Class Reference

Utility class holding all time units. More...

#include <ilog/date.h>

Public Member Functions

IlTimeUnitgetNextUnit ()
 Gets the next unit in the array. More...
 
IlTimeUnitoperator[] (IlUInt i)
 Returns a IlTimeUnit from the array. More...
 
void reset ()
 Ensure getNextUnit returns the first unit. More...
 

Static Public Member Functions

static unsigned int nbUnits ()
 Returns the number of units in the array. More...
 

Detailed Description

Utility class holding all time units.

Library: ilog

IlPredefinedUnits is used by IlvTimeScaleStepsUpdater::autoComputeUnit() to cycle through all possible units for a data set.

See Also
IlTimeUnit.

Member Function Documentation

IlTimeUnit* IlPredefinedUnits::getNextUnit ( )

Gets the next unit in the array.

If the last unit has been reached, it keeps returning that last unit.

Returns
The next unit in the array.
static unsigned int IlPredefinedUnits::nbUnits ( )
static

Returns the number of units in the array.

Returns
The number of units in the array.
IlTimeUnit* IlPredefinedUnits::operator[] ( IlUInt  i)

Returns a IlTimeUnit from the array.

Parameters
iThe index of the unit in the array.
Returns
The unit, or an undefined result if i is greater than or equal to nbUnits().
See Also
nbUnits().
void IlPredefinedUnits::reset ( )

Ensure getNextUnit returns the first unit.

Reset the internal unit counter so that the next call to getNextUnit will return the first predefined IlTimeUnit.

See Also
getNextUnit().

© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.