18#ifndef _DECAF_UTIL_ARRAYS_H_
19#define _DECAF_UTIL_ARRAYS_H_
31 Arrays(
const Arrays& source);
32 Arrays& operator=(
const Arrays& source);
57 static void fill(E* array,
int size,
const E& value) {
61 __FILE__, __LINE__,
"Array pointer given was NULL.");
66 __FILE__, __LINE__,
"Array size value given was negative.");
69 for (
int i = 0; i < size; ++i) {
95 static void fill(E* array,
int size,
int start,
int end,
const E& value) {
99 __FILE__, __LINE__,
"Array pointer given was NULL." );
104 __FILE__, __LINE__,
"Array size value given was negative." );
109 __FILE__, __LINE__,
"The start index was greater than the end index." );
112 if (start < 0 || end > size) {
114 __FILE__, __LINE__,
"The start index {%d} end index {%d} range is invalid.", start, end );
117 for (
int i = start; i < end; ++i) {
Definition IllegalArgumentException.h:31
Definition IndexOutOfBoundsException.h:31
Definition NullPointerException.h:32
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.
Definition Arrays.h:95
static void fill(E *array, int size, const E &value)
Fills an array with the specified element.
Definition Arrays.h:57
#define NULL
Definition Config.h:33
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25