Skip to main content
Contains a group of scopings. The scopings container is designed as a set of scopings ordered through labels and ids. Labels identify how the fields are filtered. The most common scopings container have the label “body” with ids corresponding to each body entity. Generally, a defined ScopingsContainer will contain Scoping entities to apply on the MeshedRegion entities of a corresponding MeshesContainer. See also: Scoping Inherits from:
  • ansys::dpf::CollectionBase

Members

Friends

Public functions

Function ScopingsContainer

Return type:

Function ~ScopingsContainer

Return type:

Function ScopingsContainer

Parameters:
  • ScopingsContainer const &
Return type:

Function ScopingsContainer

Parameters:
  • ScopingsContainer &&
Return type:

Function ScopingsContainer

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

Function ScopingsContainer

Create a group of scopings 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 group of scopings.
Return type:

Function ScopingsContainer

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

Function ScopingsContainer

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

Function operator=

Parameters:
  • ScopingsContainer const &
Return type: ScopingsContainer &

Function operator=

Parameters:
  • ScopingsContainer &&
Return type: ScopingsContainer &

Function operator[]

Returns: Scoping at given index. Parameters:
  • dp_int index: [in] Index of scoping.
Return type: Scoping

Function at

Returns: Scoping at given index. Parameters:
  • dp_index index: [in] Index of scoping to get.
Return type: Scoping

Function at

Returns: Scoping at given index. Parameters:
  • dp_index index: [in] Index of scoping to get.
Return type: const Scoping

Function update

Update Scoping at given index. Parameters:
  • Scoping & f: [in] New scoping.
  • dp_index index: [in] Index of scoping to update.
Return type: void

Function add

Add new scoping with given labels to group. Parameters:
  • LabelSpace const & labels: [in] Label space to use for new scoping.
  • Scoping const & f: [in] Scoping to add to group.
  • bool can_replace = true : [in] if can_replace is false, then, the entity is pushed back without checking if the label space already exists.
Return type: void

Function getScopings

Returns: Vector of scopings for given label space. Parameters: Return type: std::vector< Scoping >

Function getScopingsIndices

Returns: Scoping indices for scopings given by LabelSpace Parameters: Return type: std::vector< dp_index >

Function getScoping

Returns: First scoping for given label space. Parameters:
  • LabelSpace const & labels: [in] Label space for which to get first scoping.
Return type: Scoping

Function getMatchingScoping

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

Function getMatchingScopingIndices

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

Function createSubScopingsContainer

Create a new ScopingsContainer with all the scopings corresponding to the label space in input Parameters:
  • LabelSpace const & lab_space: [in] Label space for which to create new scopings container.
Return type: ScopingsContainer

Function deep_copy

Create a new ScopingsContainer on a server by copying all the data of this ScopingsContainer. Parameters: Return type: ScopingsContainer

Function getHashableKey

Set and get an simpler hashable entity (here a topoloy identifier) instead of the full scoppings container to save time Return type: std::string

Function setHashableKey

Parameters:
  • const std::string & unique_identifier
Return type: void

Function getHash

Compute and get the hash of a scopings_container Return type: size_t

Public static functions

Function emptyScopingsContainer

Create an empty scopings container. Returns: Empty ScopingsContainer. Return type: ScopingsContainer