This is the implementation of a dynamic array, used for managing various data structures.
More...
|
#define | INIT_SIZE_ARRAY 8U |
|
#define | rootsim_array(type) |
|
#define | array_items(self) ((self).items) |
|
#define | array_count(self) ((self).count) |
|
#define | array_capacity(self) ((self).capacity) |
|
#define | array_shrink(self) |
|
#define | array_expand(self) |
|
#define | array_new(type) |
|
#define | array_free(self) |
|
#define | array_init(self) |
|
#define | array_fini(self) |
|
#define | array_reserve(self, count) |
|
#define | array_push(self, elem) |
|
#define | array_pop(self) |
|
#define | array_add_at(self, i, elem) |
|
#define | array_lazy_remove_at(self, i) |
|
#define | array_remove_at(self, i) |
|
#define | array_remove(self, elem) |
|
#define | array_peek(self) (array_items(self)[array_count(self)-1]) |
|
#define | array_get_at(self, i) (array_items(self)[i]) |
|
#define | array_empty(self) (array_count(self) == 0) |
|
#define | array_dump_size(self) |
|
#define | array_dump(self, mem_area) |
|
#define | array_load(self, mem_area) |
|
This is the implementation of a dynamic array, used for managing various data structures.
Copyright (C) 2008-2018 HPDCS Group http://www.dis.uniroma1.it/~hpdcs
This file is part of ROOT-Sim (ROme OpTimistic Simulator).
ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.
ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Author
- Andrea Piccione
- Date
- 18 June 2018
Definition in file array.h.