Channel and are represented by ChannelDescriptor. It's not necessary to store primitive
types in the channels but doing so will "exploit" data locality in the JVM, which is ensured for primitive types. Use
FloatChannel, IntChannel, ObjectChannel to store the data.
| Modifier and Type | Class and Description |
|---|---|
| public abstract class | ParallelArray.
This class represents a container of values for all the elements for a given property |
| public static class | ParallelArray.
This class describes the content of a |
| public static interface | ParallelArray.
This interface is used to provide custom initialization of the |
| public class | |
| public class | |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Array | arrays
the channels added to the array |
| public int | capacity
the maximum amount of elements that this array can hold |
| public int | size
the current amount of defined elements, do not change manually unless you know what you are doing. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T extends ParallelArray. | addChannel(ParallelArray.
Adds and returns a channel described by the channel descriptor parameter. |
| public <T extends ParallelArray. | addChannel(ParallelArray.
Adds and returns a channel described by the channel descriptor parameter. |
| public void | addElement(Object... values)
Adds an element considering the values in the same order as the current channels in the array. |
| private <T extends ParallelArray. | |
| public void | |
| private int | |
| public <T extends ParallelArray. | getChannel(ParallelArray.
Returns: the channel with the same id as the one in the descriptor |
| public <T> void | |
| public void | removeElement(int index)
Removes the element at the given index and swaps it with the last available element |
| public void |
| arrays | back to summary |
|---|---|
| pack-priv Array<ParallelArray. the channels added to the array | |
| capacity | back to summary |
|---|---|
| public int capacity the maximum amount of elements that this array can hold | |
| size | back to summary |
|---|---|
| public int size the current amount of defined elements, do not change manually unless you know what you are doing. | |
| ParallelArray | back to summary |
|---|---|
| public ParallelArray(int capacity) | |
| addChannel | back to summary |
|---|---|
| public <T extends ParallelArray. Adds and returns a channel described by the channel descriptor parameter. If a channel with the same id already exists, no allocation is performed and that channel is returned. | |
| addChannel | back to summary |
|---|---|
| public <T extends ParallelArray. Adds and returns a channel described by the channel descriptor parameter. If a channel with the same id already exists, no allocation is performed and that channel is returned. Otherwise a new channel is allocated and initialized with the initializer. | |
| addElement | back to summary |
|---|---|
| public void addElement(Object... values) Adds an element considering the values in the same order as the current channels in the array. The n_th value must have the same type and stride of the given channel at position n | |
| allocateChannel | back to summary |
|---|---|
private <T extends ParallelArray.
| |
| clear | back to summary |
|---|---|
| public void clear() Removes all the channels and sets size to 0 | |
| findIndex | back to summary |
|---|---|
| private int findIndex(int id) | |
| getChannel | back to summary |
|---|---|
public <T extends ParallelArray.
| |
| removeArray | back to summary |
|---|---|
| public <T> void removeArray(int id) Removes the channel with the given id | |
| removeElement | back to summary |
|---|---|
| public void removeElement(int index) Removes the element at the given index and swaps it with the last available element | |
| setCapacity | back to summary |
|---|---|
| public void setCapacity(int requiredCapacity) Sets the capacity. Each contained channel will be resized to match the required capacity and the current data will be preserved. | |
| Modifier and Type | Field and Description |
|---|---|
| public Object | |
| public int | |
| public int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| protected abstract void | |
| public abstract void |
| data | back to summary |
|---|---|
| public Object data | |
| id | back to summary |
|---|---|
| public int id | |
| strideSize | back to summary |
|---|---|
| public int strideSize | |
| Channel | back to summary |
|---|---|
| public Channel(int id, Object data, int strideSize) | |
| add | back to summary |
|---|---|
| public abstract void add(int index, Object... objects) | |
| setCapacity | back to summary |
|---|---|
| protected abstract void setCapacity(int requiredCapacity) | |
| swap | back to summary |
|---|---|
| public abstract void swap(int i, int k) | |
Channel
| Modifier and Type | Field and Description |
|---|---|
| public ArraySupplier | |
| public int | |
| public int | |
| public Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| arraySupplier | back to summary |
|---|---|
| public ArraySupplier<?> arraySupplier | |
| count | back to summary |
|---|---|
| public int count | |
| id | back to summary |
|---|---|
| public int id | |
| type | back to summary |
|---|---|
| public Class<?> type | |
| ChannelDescriptor | back to summary |
|---|---|
| public ChannelDescriptor(int id, Class<?> type, int count)
Deprecated
| |
| ChannelDescriptor | back to summary |
|---|---|
| public ChannelDescriptor(int id, ArraySupplier<?> arraySupplier, int count) | |
Channel data
| Modifier and Type | Method and Description |
|---|---|
| public void |
| init | back to summary |
|---|---|
| public void init(T channel) | |
| Modifier and Type | Field and Description |
|---|---|
| public float[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int index, Object... objects)
Implements abstract com.
|
| public void | setCapacity(int requiredCapacity)
Implements abstract com.
|
| public void | swap(int i, int k)
Implements abstract com.
|
| data | back to summary |
|---|---|
| public float[] data Hides com. | |
| FloatChannel | back to summary |
|---|---|
| public FloatChannel(int id, int strideSize, int size) | |
| add | back to summary |
|---|---|
| public void add(int index, Object... objects) Implements abstract com.
| |
| setCapacity | back to summary |
|---|---|
| public void setCapacity(int requiredCapacity) Implements abstract com.
| |
| swap | back to summary |
|---|---|
| public void swap(int i, int k) Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| public int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int index, Object... objects)
Implements abstract com.
|
| public void | setCapacity(int requiredCapacity)
Implements abstract com.
|
| public void | swap(int i, int k)
Implements abstract com.
|
| data | back to summary |
|---|---|
| public int[] data Hides com. | |
| IntChannel | back to summary |
|---|---|
| public IntChannel(int id, int strideSize, int size) | |
| add | back to summary |
|---|---|
| public void add(int index, Object... objects) Implements abstract com.
| |
| setCapacity | back to summary |
|---|---|
| public void setCapacity(int requiredCapacity) Implements abstract com.
| |
| swap | back to summary |
|---|---|
| public void swap(int i, int k) Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| public T[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int index, Object... objects)
Implements abstract com.
|
| public void | setCapacity(int requiredCapacity)
Implements abstract com.
|
| public void | swap(int i, int k)
Implements abstract com.
|
| data | back to summary |
|---|---|
| public T[] data Hides com. | |
| ObjectChannel | back to summary |
|---|---|
| public ObjectChannel(int id, int strideSize, int size, ArraySupplier<T[]> arraySupplier) | |
| add | back to summary |
|---|---|
| public void add(int index, Object... objects) Implements abstract com.
| |
| setCapacity | back to summary |
|---|---|
| public void setCapacity(int requiredCapacity) Implements abstract com.
| |
| swap | back to summary |
|---|---|
| public void swap(int i, int k) Implements abstract com.
| |