rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

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 1st 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.

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 >= nbUnits().
See Also
nbUnits
void IlPredefinedUnits::reset ( )

Ensure getNextUnit returns the 1st unit.

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

See Also
getNextUnit

© Copyright 2014, 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.