Container

Top  Previous  Next

Scripts > Class elements and c++ instructions > Interpreted C++ instructions > Container

 

Containers contain and manage collections of elementary variables.

TETRA knows two basic types of containers and an adapted type:

 

vector

map

stack

 

You can iterate over the elements of a container or you can search for special elements. For this purpose serves a

 

cursor

 

Every container contains internally a cursor and the methods of the cursor are invoked directly as methods of the container. However, a cursor can be declared also externally.

 

The names of the container and cursor types are formed from an expression for the kind of the container and the short expression of the contained variable types.

 

type

vector

map

function table

bool

vbool

mstrbool

bool_mstrfun

int

vint

mstrint

int_mstrfun

unsigned int

vuint

mstruint

uint_mstrfun

double

vdbl

mstrdbl

dbl_mstrfun

char

vchar

mstrchar

char_mstrfun

str

vstr

mstrstr

str_mstrfun

node

vnode

mstrnode

node_mstrfun

 

A very special kind of container for the evaluation of parsing trees is a

 

function table

 

There isn't any cursor for function tables.

 



This page belongs to the TextTransformer Documentation

Home  Content  German