Skip to content
SiteEmail

cohtml::ArrayInfo

Represents an array of a type exposed to the scripting.

#include <Property.h>

Name
ElementTypeType
Type of the elements in the array.
LengthGetterGetLength
Callback that returns the number of elements in the array.
ElementGetterGetElement
Callback that returns the element at the specified index.
ArrayElementBinderBindElement
Callback that binds the element at the specified index. It’s the same bind callback passed to TryBindArrayByRef. Used in the data binding for resolving arrays of complex types, such as arrays of strings, polymorphic arrays, nested arrays and arrays of other containers.
TypeInfo *ArrayTypeInfo
Type information for elements when Type is ET_UserType; null otherwise.
void *UserData
Pointer to the underlying array or container. May represent the actual container or an abstraction defined by the property implementation.
ElementType Type;

Type of the elements in the array.

LengthGetter GetLength;

Callback that returns the number of elements in the array.

ElementGetter GetElement;

Callback that returns the element at the specified index.

ArrayElementBinder BindElement;

Callback that binds the element at the specified index. It’s the same bind callback passed to TryBindArrayByRef. Used in the data binding for resolving arrays of complex types, such as arrays of strings, polymorphic arrays, nested arrays and arrays of other containers.

TypeInfo * ArrayTypeInfo;

Type information for elements when Type is ET_UserType; null otherwise.

void * UserData;

Pointer to the underlying array or container. May represent the actual container or an abstraction defined by the property implementation.