imAttribArray

\brief Attributes Array Class * * \par * Same as \ref imAttribTable, but uses an array of fixed size. * \ingroup util

Constructors

this
this(int count)

Creates an empty array.

Destructor

~this
~this()

Destroys the array and all the attributes.

Members

Functions

CopyFrom
void CopyFrom(imAttribArray table)

Copies the contents of the given table into this table.

Count
int Count()

Returns the number of elements in the array.

ForEach
void ForEach(void* user_data, imAttribTableCallback attrib_func)

For each attribute calls the user callback. If the callback returns 0 the function returns.

Get
const(void)* Get(int index, char* name, int* data_type, int* count)

Finds one attribute in the array. * Returns the attribute if found, NULL otherwise. * See also \ref imDataType.

RemoveAll
void RemoveAll()

Removes all the attributes in the array

Set
void Set(int index, const(char)* name, int data_type, int count, void* data)

Inserts one attribute into the array. * The attribute data is a simple array of data_type elements of count length. \n * Data is duplicated if not NULL, else data is initialized with zeros. * When NULL is specified use the Get method to retrieve a pointer to the data * so you can initialize it with other values. * See also \ref imDataType.

Meta