Skip to main content
Holds Integral (int32) data describing a Property located on given entities (the Property Field’s data is bounded with its scoping). Is the equivalent of the Field but with integral values data (and not double values). Inherits from:

Members

Friends

Public static functions

Function emptyPropertyField

Return type: PropertyField

Function createPropertyFieldWithTransformation

Instantiate a PropertyField with Transformation. For each call to a getter, the workflow in input is connected this PropertyField to input_name_to_connect and the PropertyField output in output_name_to_eval is used as the getter instance. Parameters:
  • Workflow transformation_wf: [in] Transformation workflow.
  • int reserved_number_of_entity = 0
  • int reserved_data_size = 0
  • std::string const & input_name_to_connect = “input_field” : [in] Name of the input of the workflow to connect. Should take a Field.
  • std::string const & output_name_to_eval = “transformed_field” : [in] Name of the output of the workflow to evaluate. Should return a Field.
Return type: PropertyField

Public functions

Function ~PropertyField

Return type:

Function PropertyField

Create an empty property field with a client. Parameters:
  • Client const *const client: [in] Client to create the property field on.
  • dp_int number_of_entities = 0 : [in] Number of entities.
  • dp_int data_size = 0 : [in] Reserved size of data.
  • const Location & loc = Location() : [in] Location of entities.
Return type:

Function PropertyField

Create a property with number of entities and data size. Parameters:
  • dp_int number_of_entities = 0 : [in] Number of entities.
  • dp_int data_size = 0 : [in] Reserved size of data.
Return type:

Function PropertyField

Retrieve an existing instance of PropertyField on a server. Parameters:
  • int id: [in] Id of the Field object on the server’s database.
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function PropertyField

Parameters:
  • PropertyField const &
Return type:

Function PropertyField

Parameters:
  • PropertyField &&
Return type:

Function operator=

Parameters:
  • PropertyField const &
Return type: PropertyField &

Function operator=

Parameters:
  • PropertyField &&
Return type: PropertyField &

Function fieldDefinition

Returns: FieldDefinition of the field. Return type: FieldDefinition

Function setFieldDefinition

Set the FieldDefinition. Parameters: Return type: void

Function support

Returns: Support of the PropertyField. Return type: Support

Function setSupport

Set the support of the PropertyField. Parameters: Return type: void

Function setSupport

Set the support of the Field. Parameters: Return type: void

Function setSupport

Set the support of the Field. Parameters: Return type: void

Function name

Returns: Name of PropertyField. Return type: std::string

Function setName

Set name of PropertyField. Parameters:
  • const std::string & name: [in] New name.
Return type: void

Function location

Returns: Location of the property. Return type: Location

Function scoping

Returns: Scoping of the property. Return type: Scoping

Function dataSize

Returns: Size of the data container. Return type: dp_int

Function numberOfComponents

Returns: Number of components in the property data. Return type: dp_int

Function numberOfElementaryData

Returns: Number of elementary data (size = number of components) contained in the PropertyField. Return type: dp_int

Function push_back

Push back the entity data. Parameters:
  • dp_id entity_id: [in] Id of entity for which to push data.
  • std::vector< int > const & values: [in] Vector of data for entity.
Return type: void

Function push_back

Push back the entity data. Parameters:
  • dp_id entity_id: [in] Index of entity for which to push data.
  • const int * values: [in] Ptr on data for entity.
  • int size: [in] Number of entities.
Return type: void

Function push_back

Push back the entity data. Parameters:
  • dp_id entity_id: [in] Index of entity for which to push data.
  • int * values: [in] Ptr on data for entity.
  • int size: [in] Number of entities.
Return type: void

Function setData

Set the data of the property field. Parameters:
  • std::vector< int > const & data: [in] Vector of data.
Return type: void

Function setData

Set the data of the property field. Parameters:
  • int const *const data: [in] List of data.
  • int size: [in] Size of list.
Return type: void

Function setDataPointer

Set the data pointer of the property field. Parameters:
  • std::vector< int > const & data: [in] Vector of data.
Return type: void

Function setDataPointer

Set the data pointer of the property field. Parameters:
  • int *const data: [in] List of data.
  • int size: [in] Size of list.
Return type: void

Function setScoping

Set the scoping of the property field. Parameters: Return type: void

Function dataByIndex

Returns: Pointer to entity data given by index. Parameters:
  • dp_index entity_index: [in] Index of entity for which to get data.
  • int & size: [out] Size of return data.
Return type: const dp_int *

Function dataById

Returns: Pointer to entity data given by id. Parameters:
  • dp_id entity_id: [in] Id of entity for which to get data.
  • int & size: [out] Size of return data.
Return type: const dp_int *

Function fillCursor

Get data at a given index. Parameters: Return type: void

Function getIds

Get ids of property entities. Parameters:
  • std::vector< dp_id > & ids_to_fill: [out] Entity ids.
Return type: void

Function getData

Get all data for property entities. Parameters:
  • std::vector< dp_int > & values_to_fill: [out] Property entity data.
Return type: void

Function data

Returns: DpfVector of data array. Return type: DpfVector< int >

Function dataPointer

Returns: DpfVector of data array. Return type: DpfVector< int >

Function entityData

Returns: DpfVector of data array of an entity, by index. Parameters:
  • dp_index entity_index: [in] Index of entity for which to get data.
  • DpfVector< int > & data: [out] Pointer to the data.
Return type: void

Function entityDataById

Returns: DpfVector of data array of an entity, by id. Parameters:
  • dp_id entity_id: [in] Id of entity for which to get data.
  • DpfVector< int > & data: [out] Pointer to the data.
Return type: void

Function reserve

Reserve the Field. Only implemented for in process udage. To reserve the size for gRPC usage, use the constructor. Parameters:
  • dp_int number_of_entities: [in] Number of entities.
  • dp_int overall_size = 0 : [in] Total size of entity data.
Return type: void

Function resize

Reserve the Field. Parameters:
  • dp_int number_of_entities: [in] Number of entities.
  • dp_int overall_size: [in] Total size of entity data.
Return type: void

Function deep_copy

Make a deep copy on a given client. Parameters: Return type: PropertyField

Function cloneToCustomTypeField

Creates a new custom type field object from current property field without its data. Parameters:
  • ansys::dpf::Client const *const client = nullptr : [in] Remote client
  • bool const copy_ids = true : [in] Boolean to decide if scoping ids are to be copied
  • bool const copy_data_ptr = true : [in] Boolean to decide if data pointer is to be copied
  • bool const copy_support = true : [in] Boolean to decide if the support reference is to be copied
Return type: CustomTypeField

Function cloneToField

Creates a new field object from current property field without its data. Parameters:
  • ansys::dpf::Client const *const client = nullptr : [in] Remote client
  • bool const copy_ids = true : [in] Boolean to decide if scoping ids are to be copied
  • bool const copy_data_ptr = true : [in] Boolean to decide if data pointer is to be copied
  • bool const copy_support = true : [in] Boolean to decide if the support reference is to be copied
Return type: Field

Function cloneToPropertyField

Creates a new property field object from current property field without its data. Parameters:
  • ansys::dpf::Client const *const client = nullptr : [in] Remote client
  • bool const copy_ids = true : [in] Boolean to decide if scoping ids are to be copied
  • bool const copy_data_ptr = true : [in] Boolean to decide if data pointer is to be copied
  • bool const copy_support = true : [in] Boolean to decide if the support reference is to be copied
Return type: PropertyField

Function getHeaderAsDataTree

Get the header of the PropertyField as a DataTree object. Return type: DataTree

Function setHeaderAsDataTree

Set the header of the PropertyField using a DataTree object. Parameters:
  • const DataTree & datatree
Return type: void