fr.umlv.corosol.component
Interface JArrayLayout

All Superinterfaces:
JLayout, JObject

public interface JArrayLayout
extends JLayout

A layout manager for a array. This interface provides a method calculating the starting position of a specified entry index into the memory allocated for an array.

Author:
Christophe Deleray

Method Summary
 int getComponentSize()
          Returns the number of bytes necessary to allocate an entry of a array into the heap associated with this layout.
 JClass getComponentType()
          Returns the component type of the arrays associated whis this layout manager.
 int getPosition(int index)
          Returns the starting position of a specified entry index into the memory allocated for an array.
 
Methods inherited from interface fr.umlv.corosol.component.JLayout
getHeap
 

Method Detail

getComponentType

JClass getComponentType()
Returns the component type of the arrays associated whis this layout manager.


getComponentSize

int getComponentSize()
Returns the number of bytes necessary to allocate an entry of a array into the heap associated with this layout.


getPosition

int getPosition(int index)
Returns the starting position of a specified entry index into the memory allocated for an array.

Parameters:
index - an index of an array entry
Returns:
the starting position of a specified entry index into the memory allocated for an array.