activemq-cpp-3.6.0
decaf::util::Arrays Class Reference

#include <src/main/decaf/util/Arrays.h>

Public Member Functions

virtual ~Arrays ()

Static Public Member Functions

template<typename E >
static void fill (E *array, int size, const E &value)
 Fills an array with the specified element.
template<typename E >
static void fill (E *array, int size, int start, int end, const E &value)
 Fills an array with the specified element within the range given.

Constructor & Destructor Documentation

virtual decaf::util::Arrays::~Arrays ( )
virtual

Member Function Documentation

template<typename E >
static void decaf::util::Arrays::fill ( E *  array,
int  size,
const E &  value 
)
inlinestatic

Fills an array with the specified element.

Parameters
arrayThe Array to fill.
sizeThe actual size of the array passed.
valueThe value to fill the array with.
Exceptions
NullPointerExceptionif array is Null.
IllegalArgumentExceptionif the size parameter is negative, or the start index is greater than the end index.

References NULL.

Referenced by decaf::lang::ArrayPointer< HashMapEntry * >::ArrayPointer().

template<typename E >
static void decaf::util::Arrays::fill ( E *  array,
int  size,
int  start,
int  end,
const E &  value 
)
inlinestatic

Fills an array with the specified element within the range given.

Parameters
arrayThe Array to fill.
sizeThe actual size of the array passed.
startThe index to start the fill from (inclusive).
endThe index to fill to (exclusive).
valueThe value to fill the array with.
Exceptions
NullPointerExceptionif array is Null.
IllegalArgumentExceptionif the size parameter is negative, or the start index is greater than the end index.
IndexOutOfBoundsExceptionif the start index is negative or the end index is greater than the size parameter.

References NULL.


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