Skip to main content
Contains a group of entries of same type. The AnyCollection is designed as a set of entries ordered through labels and ids. Labels identify how the entries are filtered. See also: Any Template parameters:
  • typename DataT
Inherits from:
  • ansys::dpf::CollectionBase

Members

Friends

Public functions

Function Collection

Return type:

Function ~Collection

Return type:

Function Collection

Parameters:
  • rhsCollection< DataT > const &
Return type:

Function Collection

Parameters:
  • rhsCollection< DataT > &&
Return type:

Function Collection

Create container for a group of entries with the given labels. Parameters:
  • std::vector< std::string > const & labels: [in] Labels for group of entries.
Return type:

Function Collection

Create a new collection on a server. Parameters:
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function Collection

Create a collection with the given labels on a server. Parameters:
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
  • std::vector< std::string > const & labels: [in] Labels for meshes.
Return type:

Function Collection

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

Function operator=

Parameters:
  • rhsCollection< DataT > const &
Return type: Collection &

Function operator=

Parameters:
  • rhsCollection< DataT > &&
Return type: Collection &

Function operator[]

Returns: Any for given index. Parameters:
  • dp_int index: [in] Index of entries within container.
Return type: DataT

Function at

Returns: DataT for given index. Parameters: Return type: DataT

Function at

Returns: DataT for given index. Parameters: Return type: const DataT

Function update

Update a Any at index. Parameters:
  • DataT & f: [in] New Any.
  • dp_index index: [in] Index of Any to update.
Return type: void

Function add

Add Any with given label space. Parameters:
  • LabelSpace const & labels: [in] Label space for Any.
  • DataT const & f: [in] Any to add.
  • bool can_replace = true : [in] if can_replace is false, then, the entity is pushed back without checking if the label space already exists, available starting with 2024R2.
Return type: void

Function getEntries

Returns: Vector of entries for given label space. Parameters:
  • LabelSpace const & label_space: [in] Label space for which to get entries.
Return type: std::vector< DataT >

Function getEntry

Returns: First Any for given label space. Parameters: Return type: DataT

Function getEntriesIndices

Parameters: Return type: std::vector< dp_index >

Function getMatchingEntitiesIndices

Returns: Vector of matching entries to the given label space. Parameters:
  • LabelSpace const & label_space: [in] Label space for which to get entries.
Return type: DpfVector< dp_index >

Function getMatchingEntity

Returns: First matching Any for given label space. Parameters: Return type: DataT

Function createSubCollection

create a Collection with all the entries corresponding to the label space in input Parameters: Return type: Collection< DataT >

Public static functions

Function emptyCollection

Create an empty container. Returns: Empty container. Return type: Collection< DataT >