Package | Description |
---|---|
org.cakelab.blender.io | |
org.cakelab.blender.io.block | |
org.cakelab.blender.nio |
Modifier and Type | Method and Description |
---|---|
void |
BlenderFile.add(Block block)
Adds a block to the end of the file.
|
Modifier and Type | Method and Description |
---|---|
void |
BlenderFile.write(java.util.List<Block> blocks)
Write given blocks to the file.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<? super Block> |
BlockTable.BLOCKS_ASCENDING_ADDRESS
This comparator can be used with methods such as
Collections.sort(List, Comparator)
to sort blocks ascending by address. |
Modifier and Type | Method and Description |
---|---|
Block |
BlockTable.allocate(Identifier blockCode,
int size)
This method allocates memory and assigns it to a block with the given code.
|
Block |
BlockTable.allocate(Identifier code,
long size)
This method allocates memory on heap and assigns it to a new block with the given code.
|
Block |
BlockTable.allocate(Identifier blockCode,
long size,
int sdnaIndex,
int count)
This method allocates memory for 'count' structs of type 'sdnaIndex'
and assigns it to a new block with the given blockCode.
|
Block |
BlockTable.findBlock(long startAddress)
Returns the block, which is associated with the given start address.
|
Block |
BlockList.get(int index) |
protected Block |
BlockTable.getBlock(long address)
Returns the block which contains the given address.
|
Block |
BlockTable.getBlock(long address,
java.lang.Class<?> type)
returns the block which contains the data of the given address and type (struct or scalar).
|
Block |
BlockTable.getBlock(long address,
java.lang.Class<?>[] type)
Returns the block for a given address and type (array, pointer, struct or scalar).
|
Block |
BlockTable.getBlock(long address,
int sdnaIndex)
Returns the block which contains the given address.
|
Block |
BlockList.BlockListIterator.next() |
Block |
BlockList.BlockListIterator.previous() |
Block |
BlockList.remove(int index) |
Block |
BlockList.set(int index,
Block element) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Block> |
BlockTable.getBlocks(Identifier blockCode)
Returns a list of blocks which have the given block code.
|
java.util.List<Block> |
BlockTable.getBlocksSorted()
This method returns the internal list of blocks which are on heap
and sorted by their address.
|
java.util.HashMap<Block,java.util.ArrayList<Block>> |
OverlappingBlocksException.getOverlappingBlocks() |
java.util.HashMap<Block,java.util.ArrayList<Block>> |
OverlappingBlocksException.getOverlappingBlocks() |
java.util.Iterator<Block> |
BlockList.iterator() |
java.util.ListIterator<Block> |
BlockList.listIterator() |
java.util.ListIterator<Block> |
BlockList.listIterator(int index) |
java.util.List<Block> |
BlockList.subList(int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
protected void |
BlockTable.add(Block block)
Method to add a block to the ascending sorted list.
|
boolean |
BlockList.add(Block e) |
void |
BlockList.BlockListIterator.add(Block e) |
void |
OverlappingBlocksException.add(Block a,
Block b) |
void |
BlockList.add(int index,
Block element) |
void |
BlockTable.free(Block block)
This method removes the given block from the block list, and releases
its allocated memory region (to be available for allocation again).
|
void |
BlockList.insert(Block newBlock,
Block nextBlock)
newBlock gets inserted before nextBlock.
|
void |
BlockList.replace(Block oldBlock,
Block newBlock) |
void |
BlockList.BlockListIterator.set(Block e) |
Block |
BlockList.set(int index,
Block element) |
Modifier and Type | Method and Description |
---|---|
boolean |
BlockList.addAll(java.util.Collection<? extends Block> c) |
boolean |
BlockList.addAll(int index,
java.util.Collection<? extends Block> c) |
void |
BlockTable.getBlocks(Identifier blockCode,
java.util.List<Block> list)
Retrieve all blocks with the given block code which are on heap.
|
Constructor and Description |
---|
BlockTable(Encoding encoding,
java.util.List<Block> blocks,
int[] offheapStructs)
Instantiates a new block table with the given encoding and
initialises it with the blocks of the given list.
|
Modifier and Type | Field and Description |
---|---|
protected Block |
CFacade.__io__block
Block, which contains the data of the instance.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
CFacade.__io__native__copy(Block targetBlock,
long targetAddress,
CFacade source)
This method performs a low level copy of the given object to
the given target address in the target block.
|
static CFacade |
CFacade.__io__newInstance(java.lang.Class<? extends CFacade> type,
long address,
Block block,
BlockTable blockTable)
Creates a new facade instance of the given type.
|
Constructor and Description |
---|
CArrayFacade(long baseAddress,
java.lang.Class<?>[] targetTypeList,
int[] dimensions,
Block block,
BlockTable __blockTable)
This is the constructor to attach an array facade to existing
data in a block of a blender file.
|
CFacade(long __address,
Block block,
BlockTable __blockTable)
Common constructor for a facade on an existing instance of a
DNA struct, a pointer or an array.
|
CPointer(long targetAddress,
java.lang.Class<?>[] targetTypes,
Block block,
BlockTable memory)
Common constructor for pointers.
|