User Tools

Site Tools


01_user_documentation:07_rgg_xl:02_xl:09_java_addition:overload_operator:07_shl

This is an old revision of the document!


shl

The left shift operator (« operator$shl) is overloaded for several object mostly to symbolize the forwarding of an information into an object.

Dataset

The left shift operator can be used to add values to a Dataset or a DatasetRef. Every left shift describes a new column in a row of the dataset.

dataset("test") << 1 << 2;
dataset("test") << 11 << 12;

this results in:

1 1 2
2 11 12
module A(float len, float fact);
protected void init ()
[
	Axiom ==> A(2,5) A(5,1) A(1,1);
]
 
public void run ()
{
 dataset("test") << (*a:A*).getId() << a[len] << a[fact] << a[len]*a[fact];
 
}
01_user_documentation/07_rgg_xl/02_xl/09_java_addition/overload_operator/07_shl.1774617822.txt.gz · Last modified: 2026/03/27 14:23 by Tim