ch.javasoft.jsmat.variable
Class MatStructure

java.lang.Object
  extended by ch.javasoft.jsmat.variable.MatVariable
      extended by ch.javasoft.jsmat.variable.MatAllocated
          extended by ch.javasoft.jsmat.variable.MatStructure

public class MatStructure
extends MatAllocated


Field Summary
 
Fields inherited from class ch.javasoft.jsmat.variable.MatVariable
DEFAULT_NAME, mDims, mMatClass
 
Constructor Summary
MatStructure(Map<String,? extends MatAllocated> fields)
           
MatStructure(Map<String,? extends MatAllocated>[] fields, int[] dims)
           
 
Method Summary
 int getRawDataSize()
           
 void writeRawData(DataOutput out)
          Write the raw data to the given output, excluding type, size, name etc.
 
Methods inherited from class ch.javasoft.jsmat.variable.MatAllocated
write
 
Methods inherited from class ch.javasoft.jsmat.variable.MatVariable
checkRawDataSizeOverflow, checkValueLength, getDimLength, getFlags, getSize, writeStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatStructure

public MatStructure(Map<String,? extends MatAllocated> fields)

MatStructure

public MatStructure(Map<String,? extends MatAllocated>[] fields,
                    int[] dims)
Method Detail

getRawDataSize

public int getRawDataSize()
Specified by:
getRawDataSize in class MatVariable
Returns:
size of raw data excluding type(4) and size(4) and name

writeRawData

public void writeRawData(DataOutput out)
                  throws IOException
Description copied from class: MatAllocated
Write the raw data to the given output, excluding type, size, name etc. This method is implemented by the type specific subclasses.

Specified by:
writeRawData in class MatAllocated
Parameters:
out - the data output to write to
Throws:
IOException - if any io exception occurs