Access Examples

XPE arrays

Accessing elements of an array
one dimension
two dimension
three dimension
member of structure that is an element of an array of structures
element of an array that is a member of a structure
Determining the number of elements in an array
Determining the number of dimensions in an array
Multiple references to the same array
Sub-array (row slice)
Assigning runtime space for arrays
Changing the size of an array
Creating an array
Creating copies of arrays
Creating sparse arrays
Creating an array of structures

XPE structures

Accessing members of structures
Indirect members of structures
dynamic lookup by name
dynamic lookup by position
Arrays of structures and structures as elements of arrays
Multiple references to the same structure
Assigning runtime space for structures (creating a structure)
Adding members to a structure
Adding a structure as a member
Adding an array as a member
Creating a copy of a structure

Access from external C++ functions

external function interface
function context (applying an external method to an XPE object)
creating and returning an object from an external method

Access to XPE values from external C++ functions

Simple access to XPE value
as an integer
as a float
as a string
Converting a basic C value to an XPE value
C integer to XPE integer
C float to XPE float
C string to XPE string
Coercion from a basic C value to an XPE value
C integer to XPE integer
C float to XPE float
C string to XPE string
Access to XPE value depending on type
Accessing an element from an XPE array value
as an integer element
as a float element
as a string element
as an XPE value element
as an XPE variable element
Accessing a member of an XPE structure value
as an integer member
as a float member
as a string member
as an XPE value member
as an XPE variable member

Access to XPE parameters from external C++ functions

simple access to XPE parameters
as an integer
as a float
as a string
access to XPE parameter depending on type
copying the value of a parameter without knowing the type
to XPE variable
to XPE value

Access to XPE variables from external C++ functions

simple access to value of XPE variables
as an integer
as a float
as a string
writing a basic C value to an XPE variable
C integer to XPE variable
C float to XPE variable
C string to XPE variable
copying values between XPE variables without knowing the types of the values involved
incrementing an XPE variables that holds an integer
simple non-optimised version
optimised version

Access to XPE arrays from external C++ functions

Accessing elements of an XPE array
one dimentional
two dimentional
multi-dimentional
Determining the number of dimensions in an XPE array
Determining the number of elements in XPE array
one dimensional
uniform multi-dimensional
Performing operations on groups of elements of an XPE array
simple non-optimised access
optimised access
creating a new array
one dimentional
four dimentional
named one dimentional XPE array

Access to XPE structures from external C++ functions

Access to the member of an XPE structure
by name
by position
Performing operations on groups of members of an XPE structure
simple non-optimised access
optimised access
Determining the number of members in a structure
Printing the names and values of all the members in a structure
Creating a new structure
an anonymous structure
a named structure