 |

tabsize ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
int tabsize( t )
| IN |
| tab |
t |
table |
| OUT |
| int |
table size |
Returns the number of elements from the table t.
Similar to sizeof.
C/C++ source code
tabresize ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tabresize( t, size )
| IN |
| tab |
t |
table |
| int |
size |
new table size |
Resizes given table.
If the new size is bigger, the rest of the new table is filled with zero values.
C/C++ source code
tabsub ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tab tabsub( t, pos, count )
| IN |
| tab |
t |
table |
| int |
pos |
start position (optional) |
| int |
count |
number of elements to copy (optional) |
| OUT |
| tab |
new copied table |
Returns a subtable of t, with count elements starting from position pos.
If pos is not specified, 0 is used.
If count is not specified, all elements starting from pos will be copied.
C/C++ source code
tabcut ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tab tabcut( t, pos, count )
| IN |
| tab |
t |
table |
| int |
pos |
position from where to cut (optional) |
| int |
count |
number of elements to cut (optional) |
| OUT |
| tab |
new cut table |
Returns a new table, same as t but without count elements from position pos.
C/C++ source code
tabadd ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tab tabadd( t1, t2 )
| IN |
| tab |
t1 |
table |
| tab |
t2 |
table |
| OUT |
| tab |
new composed table |
Adds the elements of t1 and #t3 and returns a new table.
Not the same as the '+' operator for tables, which adds the numeric elements to support vectors math.
C/C++ source code
tabins ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tab tabins( t1, t2, pos )
| IN |
| tab |
t1 |
table |
| tab |
t2 |
table |
| int |
pos |
position where to insert (optional) |
| OUT |
| tab |
new composed table |
Returns a new table created from t1 in which t2 is inserted at position pos.
If pos is not specifies, the table is inserted at the begining.
C/C++ source code
tabrem ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tab tabrem( t1, t2 )
| IN |
| tab |
t1 |
table |
| tab |
t2 |
table |
| OUT |
| tab |
new removed table |
Returns a new table created from t1 from which all elements of t2 were removed
If #pos is not specifies, the table is inserted at the begining.
C/C++ source code
tabset ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tabset( t, val, pos, count )
| IN |
| tab |
t |
table |
| val |
val |
value to set elements to |
| int |
pos |
position to start setting (optional) |
| int |
count |
number of elements to set (optional) |
Set count elements of table t, starting from pos, to the given value val
Position and count are clamped to table's size.
C/C++ source code
tabcpy ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tabcpy( t, src, dst, count )
| IN |
| tab |
t |
table |
| int |
src |
source position, from where to copy |
| int |
dst |
destination position, where to copy to |
| int |
count |
number of elements to copy |
Copies count elements inside table t, from position src to position dst.
The copy is safe for overlapping elements.
C/C++ source code
tabpush ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tabpush( t, v, pos )
| IN |
| tab |
t |
table |
| val |
v |
element |
| int |
pos |
position (optional) |
Insert a new element in table t at optional positon pos or at the end.
C/C++ source code
tabpop ( lib: Tables, file: ../src/gs/gslib_tables.cpp )
tabpop( t, pos )
| IN |
| tab |
t |
table |
| int |
pos |
position (optional) |
Removes an element from table t from the optional positon pos or from the end.
C/C++ source code
|
 |