class
FieldData
FieldData represents multiple fields of data. Each field is implemented as an ValueArray object, that has a unique name, and can have complex components (such as scalars, vectors, quaternions, tensors or matrices). All fields are assumed to be of the same length. IFieldData can be seen as an array with complex tuples, where the component can be of different types.
Properties
Property | Description |
TupleCount | Resizes/Gets the list to the specified tuplecount. If the list is enlarged, the new tuples will contain unspecified data. |
Methods
Method | Description |
AddBaseTypeField | Adds a field based on a base type. Only ValueArray objects are allowed. The created and added object is returned. |
AddField | Adds a field. The field must have a unique name set. |
AddTupleCount | Adds a number of tuples to the current tuple count. |
AppendTuples | Appends another field data object to this object. The fields are allowed to be setup differently, but then comes at a significant performance penalty. If fields in the other field data object is missing in this object, these will be added, and the items in the old tuples will be set to 0. |
Clear | Clears all tuples from the fields. The fields, however, are not removed. |
CopyCombine3Tuples | CopyCombine3Tuples combines the data from three tuples into a destination tuple. The call works like CobineTuples, but there is three source tuples, and two alpha values. the destination will be weighted by the values: alpha_3 = 1-(alpha_1 + alpha_2) dest = src_1*alpha_1 + src_2*alpha_2 + src_3*alpha_3 This field data object can be used as the source field data object to copy within the object. |
CopyCombineTuples | CopyCombineTuples() combines the data from two tuples into a destination tuple. This field data object can be used as the source field data object to copy within the object. |
CopyRange | CopyRange() copies a range of tuples from a source field object into this field object. The field objects must have the same field setup. This field object must be resized to hold the tuples before copying. |
CopyTuple | CopyTuple() copies one tuple to another. Both the dest_id and the source_id must exist in the array. This field data object can be used as the source field data object to copy within the object. |
DeepCopy | Copies the field setup and data from another object. To only copy the setup, set copy_data to false. |
ExtractTuples | Extracts a range of tuples from this object. The receiving object is assumed to have exactly the same data fields as this object. |
GetClass | Get the name of the FieldData class. |
GetField | Retrieves a field. If the field was not found, null is returned. |
GetFieldCount | Returns the number of fields in the field data object. The ids of the fields range from 0 through (GetFieldCount()-1). |
GetFieldWithHandle | Returns the field associated with the specified handle. |
GetFieldWithId | Retrieves a field from its index in the field data. |
GetFirstFieldHandle | Returns the handle of the first field, or null if no fields are added to the object. |
GetMaxFieldId | Returns the id of the field with the highest id. NOTE! If no fields exist in the field data object, the return is undefined. |
GetMaxTupleId | Returns the id of the last tuple in the array. If the array is empty, the value is undefined. |
GetNextFieldHandle | Returns the next handle, or null if no more fields exist in the object. |
IndexedCombine | Works like IndexedCopy, but uses two consecutive ids in the idtable, and a blend value from the blendtable. The idtable contains (idtable_cnt*2) indices and blendtable contains idtable_cnt blend values. Does the blend: dest = src1*(1-blend) + src2*blend The FieldData must have enough tuples to hold the new data. |
IndexedCombine3 | Works like IndexedCombine(), but with three ids that are combined through two blend values in the blendtable. The idtable contains (idtable_cnt*3) indices and blendtable contains (idtable_cnt*2) blend values. Does the blend: dest = src1*blend1 + src2*blend2 + src3*(1-(blend1+blend2)) The FieldData must have enough tuples to hold the new data. |
IndexedCopy | Copies tuples from a source field data object through an id table. The id table dictates the order in which the tuples are to be copied. E.g. If the first item in the id table has the value 14, then the tuple with id 14 in the source array will be copied to the first tuple in this array. Note! All ids in the id table must be valid ids of tuples in the source field data object. The id table is assumed to have a tuple size of 1. The source and this field data object must have the same underlaying data fields, of the same type and the same tuple sizes. The FieldData must have enough tuples to hold the new data. |
IsA | Returns true if FieldData is a or is a descendant of the class named as the type parameter. |
IsEmpty | Returns 1 if no tuples exist in the field data. |
IsNull | Returns true if the FieldData object is invalid. |
IsSetupIdenticalTo | Compares the field setup of this field data object to another field data object. If the setups are not identical, false is returned. Note! IsSetupIdenticalTo will return false even if the same fields exist in both field data objects, but are not in the same order. |
NewCopy | Creates another field data object with the same field setup. To also copy the data to the new object, set copy_data to true. |
NewPackedCopy | Like NewCopy, NewPackedCopy creates a field data object with the same underlying data and tuple settings as the source field data object. However, NewPackedCopy only copies unique tuples, and if the index_array parameter is set, this index array will contain the same number of tuples as the source field data object, and with the ids of a specific tuples within the new copy of the field data object. |
RemoveAllFields | Clears all fields from the object. Releases all data in the object. |
RemoveField | Removes a field. Removing a field causes the remaining fields to be remapped to new ids. Note that the field must exist. If not, the method will return error. To remove a field that may not exist, use SafeRemoveField. |
SafeRemoveField | Removes a field. Removing a field causes the remaining fields to be remapped to new ids. |
Static methods
Method | Description |
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spFieldData, and if this is the case, returns the object cast into spFieldData. |
Properties details
TupleCount
Resizes/Gets the list to the specified tuplecount. If the list is enlarged, the new tuples will contain unspecified data.
Syntax
SetTupleCount parameters
Type | Name | Min | Max | Description |
unsigned int | tuplecount | 0 | INT_MAX | The desired tuple count. |
GetTupleCount return value
Type: unsigned int
Syntax
SetTupleCount parameters
Type | Name | Min | Max | Description |
uint | tuplecount | 0 | INT_MAX | The desired tuple count. |
GetTupleCount return value
Type: uint
Syntax
SetTupleCount parameters
Name | Type | Min | Max | Description |
tuplecount | int | 0 | INT_MAX | The desired tuple count. |
GetTupleCount return value
Type: int
Methods details
AddBaseTypeField
Adds a field based on a base type. Only ValueArray objects are allowed. The created and added object is returned.
Syntax
Parameters
Type | Name | Min | Max | Description |
EBaseTypes | base_type | | | Should be a base type listed in BaseTypes. |
unsigned int | tuple_size | | | The desired tuple size. |
const char * | name | | | The name of the new field. |
Return value
Type: ValueArray
Syntax
Parameters
Type | Name | Min | Max | Description |
EBaseTypes | base_type | | | Should be a base type listed in BaseTypes. |
uint | tuple_size | | | The desired tuple size. |
string | name | | | The name of the new field. |
Return value
Type: ValueArray
Syntax
Parameters
Name | Type | Min | Max | Description |
base_type | EBaseTypes | | | Should be a base type listed in BaseTypes. |
tuple_size | int | | | The desired tuple size. |
name | str | | | The name of the new field. |
Return value
Type: ValueArray
AddField
Adds a field. The field must have a unique name set.
Syntax
Parameters
Type | Name | Min | Max | Description |
ValueArray | field | | | The array to add to the field data. |
Syntax
Parameters
Type | Name | Min | Max | Description |
ValueArray | field | | | The array to add to the field data. |
Syntax
Parameters
Name | Type | Min | Max | Description |
field | ValueArray | | | The array to add to the field data. |
AddTupleCount
Adds a number of tuples to the current tuple count.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | tuplecount | 0 | INT_MAX | The desired number of tuples to add. Note that the total TupleCount cannot exceed INT_MAX. |
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | tuplecount | 0 | INT_MAX | The desired number of tuples to add. Note that the total TupleCount cannot exceed INT_MAX. |
Syntax
Parameters
Name | Type | Min | Max | Description |
tuplecount | int | 0 | INT_MAX | The desired number of tuples to add. Note that the total TupleCount cannot exceed INT_MAX. |
AppendTuples
Appends another field data object to this object. The fields are allowed to be setup differently, but then comes at a significant performance penalty. If fields in the other field data object is missing in this object, these will be added, and the items in the old tuples will be set to 0.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | other | | | The field data object that is appended. |
bool | add_missing_fields | | | If set to true, missing fields will be added to this field data object. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | other | | | The field data object that is appended. |
bool | add_missing_fields | | | If set to true, missing fields will be added to this field data object. |
Syntax
Parameters
Name | Type | Min | Max | Description |
other | FieldData | | | The field data object that is appended. |
add_missing_fields | bool | | | If set to true, missing fields will be added to this field data object. |
Clear
Clears all tuples from the fields. The fields, however, are not removed.
Syntax
Parameters
Clear takes no parameters.
Syntax
Parameters
Clear takes no parameters.
Syntax
Parameters
Clear takes no parameters.
CopyCombine3Tuples
CopyCombine3Tuples combines the data from three tuples into a destination tuple. The call works like CobineTuples, but there is three source tuples, and two alpha values. the destination will be weighted by the values: alpha_3 = 1-(alpha_1 + alpha_2) dest = src_1*alpha_1 + src_2*alpha_2 + src_3*alpha_3 This field data object can be used as the source field data object to copy within the object.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data source to combine from. |
rid | dest_id | | | The tuple index to put the combined results into in this field data. |
rid | src_id_1 | | | The first tuple index to use for combining from the field data source. |
rid | src_id_2 | | | The second tuple index to use for combining from the field data source. |
rid | src_id_3 | | | The third tuple index to use for combining from the field data source. |
real | alpha_1 | | | The first interpolation value used for combining the source tuples. |
real | alpha_2 | | | The second interpolation value used for combining the source tuples. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data source to combine from. |
rid | dest_id | | | The tuple index to put the combined results into in this field data. |
rid | src_id_1 | | | The first tuple index to use for combining from the field data source. |
rid | src_id_2 | | | The second tuple index to use for combining from the field data source. |
rid | src_id_3 | | | The third tuple index to use for combining from the field data source. |
float | alpha_1 | | | The first interpolation value used for combining the source tuples. |
float | alpha_2 | | | The second interpolation value used for combining the source tuples. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The field data source to combine from. |
dest_id | int | | | The tuple index to put the combined results into in this field data. |
src_id_1 | int | | | The first tuple index to use for combining from the field data source. |
src_id_2 | int | | | The second tuple index to use for combining from the field data source. |
src_id_3 | int | | | The third tuple index to use for combining from the field data source. |
alpha_1 | float | | | The first interpolation value used for combining the source tuples. |
alpha_2 | float | | | The second interpolation value used for combining the source tuples. |
CopyCombineTuples
CopyCombineTuples() combines the data from two tuples into a destination tuple. This field data object can be used as the source field data object to copy within the object.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data source to combine from. |
rid | dest_id | | | The tuple index to put the combined results into in this field data. |
rid | src_id_1 | | | The first tuple index to use for combining from the field data source. |
rid | src_id_2 | | | The second tuple index to use for combining from the field data source. |
real | alpha | | | The interpolation value used for combining the source tuples. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data source to combine from. |
rid | dest_id | | | The tuple index to put the combined results into in this field data. |
rid | src_id_1 | | | The first tuple index to use for combining from the field data source. |
rid | src_id_2 | | | The second tuple index to use for combining from the field data source. |
float | alpha | | | The interpolation value used for combining the source tuples. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The field data source to combine from. |
dest_id | int | | | The tuple index to put the combined results into in this field data. |
src_id_1 | int | | | The first tuple index to use for combining from the field data source. |
src_id_2 | int | | | The second tuple index to use for combining from the field data source. |
alpha | float | | | The interpolation value used for combining the source tuples. |
CopyRange
CopyRange() copies a range of tuples from a source field object into this field object. The field objects must have the same field setup. This field object must be resized to hold the tuples before copying.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field object to copy from. |
rid | start_dest_id | | | The first destination tuple id. |
rid | start_src_id | | | The first source tuple id. |
unsigned int | count | | | The number of tuples to copy. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field object to copy from. |
rid | start_dest_id | | | The first destination tuple id. |
rid | start_src_id | | | The first source tuple id. |
uint | count | | | The number of tuples to copy. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The source field object to copy from. |
start_dest_id | int | | | The first destination tuple id. |
start_src_id | int | | | The first source tuple id. |
count | int | | | The number of tuples to copy. |
CopyTuple
CopyTuple() copies one tuple to another. Both the dest_id and the source_id must exist in the array. This field data object can be used as the source field data object to copy within the object.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field data to copy from. |
rid | dest_id | | | The tuple index to copy into in this field data. |
rid | src_id | | | The tuple index to copy from in the source field data. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field data to copy from. |
rid | dest_id | | | The tuple index to copy into in this field data. |
rid | src_id | | | The tuple index to copy from in the source field data. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The source field data to copy from. |
dest_id | int | | | The tuple index to copy into in this field data. |
src_id | int | | | The tuple index to copy from in the source field data. |
DeepCopy
Copies the field setup and data from another object. To only copy the setup, set copy_data to false.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source array to copy from. |
bool | copy_data | | | True if the data should be copied along with the field data properties. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source array to copy from. |
bool | copy_data | | | True if the data should be copied along with the field data properties. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The source array to copy from. |
copy_data | bool | | | True if the data should be copied along with the field data properties. |
Extracts a range of tuples from this object. The receiving object is assumed to have exactly the same data fields as this object.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | dest | | | The destination object. |
rid | start | | | The id of the first tuple that is extracted. |
unsigned int | count | | | The number of tuples to extract. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | dest | | | The destination object. |
rid | start | | | The id of the first tuple that is extracted. |
uint | count | | | The number of tuples to extract. |
Syntax
Parameters
Name | Type | Min | Max | Description |
dest | FieldData | | | The destination object. |
start | int | | | The id of the first tuple that is extracted. |
count | int | | | The number of tuples to extract. |
GetClass
Get the name of the FieldData class.
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: spString
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: string
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: str
GetField
Retrieves a field. If the field was not found, null is returned.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | The name of the field to fetch. |
Return value
Type: ValueArray
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | The name of the field to fetch. |
Return value
Type: ValueArray
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | The name of the field to fetch. |
Return value
Type: ValueArray
GetFieldCount
Returns the number of fields in the field data object. The ids of the fields range from 0 through (GetFieldCount()-1).
Syntax
Parameters
GetFieldCount takes no parameters.
Return value
Type: unsigned int
Syntax
Parameters
GetFieldCount takes no parameters.
Return value
Type: uint
Syntax
Parameters
GetFieldCount takes no parameters.
Return value
Type: int
GetFieldWithHandle
Returns the field associated with the specified handle.
Syntax
Parameters
Type | Name | Min | Max | Description |
rhandle | hand | | | The handle to the requested field. |
Return value
Type: ValueArray
Syntax
Parameters
Type | Name | Min | Max | Description |
System.IntPtr | hand | | | The handle to the requested field. |
Return value
Type: ValueArray
Syntax
Parameters
Name | Type | Min | Max | Description |
hand | PyObject* | | | The handle to the requested field. |
Return value
Type: ValueArray
GetFieldWithId
Retrieves a field from its index in the field data.
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | The id of the field. |
Return value
Type: ValueArray
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | The id of the field. |
Return value
Type: ValueArray
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The id of the field. |
Return value
Type: ValueArray
GetFirstFieldHandle
Returns the handle of the first field, or null if no fields are added to the object.
Syntax
Parameters
GetFirstFieldHandle takes no parameters.
Return value
Type: rhandle
Syntax
Parameters
GetFirstFieldHandle takes no parameters.
Return value
Type: System.IntPtr
Syntax
Parameters
GetFirstFieldHandle takes no parameters.
Return value
Type: PyObject*
GetMaxFieldId
Returns the id of the field with the highest id. NOTE! If no fields exist in the field data object, the return is undefined.
Syntax
Parameters
GetMaxFieldId takes no parameters.
Return value
Type: rid
Syntax
Parameters
GetMaxFieldId takes no parameters.
Return value
Type: rid
Syntax
Parameters
GetMaxFieldId takes no parameters.
Return value
Type: int
GetMaxTupleId
Returns the id of the last tuple in the array. If the array is empty, the value is undefined.
Syntax
Parameters
GetMaxTupleId takes no parameters.
Return value
Type: rid
Syntax
Parameters
GetMaxTupleId takes no parameters.
Return value
Type: rid
Syntax
Parameters
GetMaxTupleId takes no parameters.
Return value
Type: int
GetNextFieldHandle
Returns the next handle, or null if no more fields exist in the object.
Syntax
Parameters
Type | Name | Min | Max | Description |
rhandle | hand | | | The current handle. |
Return value
Type: rhandle
Syntax
Parameters
Type | Name | Min | Max | Description |
System.IntPtr | hand | | | The current handle. |
Return value
Type: System.IntPtr
Syntax
Parameters
Name | Type | Min | Max | Description |
hand | PyObject* | | | The current handle. |
Return value
Type: PyObject*
IndexedCombine
Works like IndexedCopy, but uses two consecutive ids in the idtable, and a blend value from the blendtable. The idtable contains (idtable_cnt*2) indices and blendtable contains idtable_cnt blend values. Does the blend: dest = src1*(1-blend) + src2*blend The FieldData must have enough tuples to hold the new data.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data to combine from. |
RidArray | idtable | | | Array containing the tuple indices to combine. |
RealArray | blendtable | | | Array containing the blend weights. |
rid | startId | | | The tuple to begin putting the combinations into. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data to combine from. |
RidArray | idtable | | | Array containing the tuple indices to combine. |
RealArray | blendtable | | | Array containing the blend weights. |
rid | startId | | | The tuple to begin putting the combinations into. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The field data to combine from. |
idtable | RidArray | | | Array containing the tuple indices to combine. |
blendtable | RealArray | | | Array containing the blend weights. |
startId | int | | | The tuple to begin putting the combinations into. |
IndexedCombine3
Works like IndexedCombine(), but with three ids that are combined through two blend values in the blendtable. The idtable contains (idtable_cnt*3) indices and blendtable contains (idtable_cnt*2) blend values. Does the blend: dest = src1*blend1 + src2*blend2 + src3*(1-(blend1+blend2)) The FieldData must have enough tuples to hold the new data.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data to combine from. |
RidArray | idtable | | | Array containing the tuple indices to combine. |
RealArray | blendtable | | | Array containing the blend weights. |
rid | startId | | | The tuple to begin putting the combinations into. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data to combine from. |
RidArray | idtable | | | Array containing the tuple indices to combine. |
RealArray | blendtable | | | Array containing the blend weights. |
rid | startId | | | The tuple to begin putting the combinations into. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The field data to combine from. |
idtable | RidArray | | | Array containing the tuple indices to combine. |
blendtable | RealArray | | | Array containing the blend weights. |
startId | int | | | The tuple to begin putting the combinations into. |
IndexedCopy
Copies tuples from a source field data object through an id table. The id table dictates the order in which the tuples are to be copied. E.g. If the first item in the id table has the value 14, then the tuple with id 14 in the source array will be copied to the first tuple in this array. Note! All ids in the id table must be valid ids of tuples in the source field data object. The id table is assumed to have a tuple size of 1. The source and this field data object must have the same underlaying data fields, of the same type and the same tuple sizes. The FieldData must have enough tuples to hold the new data.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field data object to copy from. |
RidArray | idtable | | | Array containing the tuple indices to copy. |
rid | startId | | | The first tuple to begin copy into. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field data object to copy from. |
RidArray | idtable | | | Array containing the tuple indices to copy. |
rid | startId | | | The first tuple to begin copy into. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The source field data object to copy from. |
idtable | RidArray | | | Array containing the tuple indices to copy. |
startId | int | | | The first tuple to begin copy into. |
IsA
Returns true if FieldData is a or is a descendant of the class named as the type parameter.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | type | | | Name of the class to check if FieldData is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
string | type | | | Name of the class to check if FieldData is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
type | str | | | Name of the class to check if FieldData is, or is a descendant of. |
Return value
Type: bool
IsEmpty
Returns 1 if no tuples exist in the field data.
Syntax
Parameters
IsEmpty takes no parameters.
Return value
Type: int
Syntax
Parameters
IsEmpty takes no parameters.
Return value
Type: int
Syntax
Parameters
IsEmpty takes no parameters.
Return value
Type: int
IsNull
Returns true if the FieldData object is invalid.
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
IsSetupIdenticalTo
Compares the field setup of this field data object to another field data object. If the setups are not identical, false is returned. Note! IsSetupIdenticalTo will return false even if the same fields exist in both field data objects, but are not in the same order.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | other | | | The other field data object used for comparison. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | other | | | The other field data object used for comparison. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
other | FieldData | | | The other field data object used for comparison. |
Return value
Type: bool
NewCopy
Creates another field data object with the same field setup. To also copy the data to the new object, set copy_data to true.
Syntax
Parameters
Type | Name | Min | Max | Description |
bool | copy_data | | | True if data should be copied along with the field properties. |
Return value
Type: FieldData
Syntax
Parameters
Type | Name | Min | Max | Description |
bool | copy_data | | | True if data should be copied along with the field properties. |
Return value
Type: FieldData
Syntax
Parameters
Name | Type | Min | Max | Description |
copy_data | bool | | | True if data should be copied along with the field properties. |
Return value
Type: FieldData
NewPackedCopy
Like NewCopy, NewPackedCopy creates a field data object with the same underlying data and tuple settings as the source field data object. However, NewPackedCopy only copies unique tuples, and if the index_array parameter is set, this index array will contain the same number of tuples as the source field data object, and with the ids of a specific tuples within the new copy of the field data object.
Syntax
Parameters
Type | Name | Min | Max | Description |
RidArray | index_array | | | Will contain indices to the new packed field data values. |
Return value
Type: FieldData
Syntax
Parameters
Type | Name | Min | Max | Description |
RidArray | index_array | | | Will contain indices to the new packed field data values. |
Return value
Type: FieldData
Syntax
Parameters
Name | Type | Min | Max | Description |
index_array | RidArray | | | Will contain indices to the new packed field data values. |
Return value
Type: FieldData
RemoveAllFields
Clears all fields from the object. Releases all data in the object.
Syntax
Parameters
RemoveAllFields takes no parameters.
Syntax
Parameters
RemoveAllFields takes no parameters.
Syntax
Parameters
RemoveAllFields takes no parameters.
RemoveField
Removes a field. Removing a field causes the remaining fields to be remapped to new ids. Note that the field must exist. If not, the method will return error. To remove a field that may not exist, use SafeRemoveField.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | The name of the field. |
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | The name of the field. |
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | The name of the field. |
SafeRemoveField
Removes a field. Removing a field causes the remaining fields to be remapped to new ids.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | The name of the field. |
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | The name of the field. |
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | The name of the field. |
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | type | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
string | type | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
type | str | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spFieldData, and if this is the case, returns the object cast into spFieldData.
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to cast. |
Return value
Type: FieldData
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to cast. |
Return value
Type: FieldData
Syntax
Parameters
Name | Type | Min | Max | Description |
object | Object | | | Object to cast. |
Return value
Type: FieldData