Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

DataObjectIdentMap Class Reference

Last update: 16.07.2025

A map of data objects of same type being associated with single string idents. More...

Public Types

typedef DataObjectPtr PtrBase
 corresponding DataObject pointer type
 

Public Member Functions

PtrBase __getitem__ (string key) const
 references a member of the map More...
 
 __setitem__ (string key, PtrBase value)
 adds/changes a value in the map More...
 
 DataObjectIdentMap ()
 default constructor (creates an empty list)
 

Public Attributes

elements
 STL member.
 
keys
 STL member.
 

Detailed Description

A map of data objects of same type being associated with single string idents.

The implementation uses a std::map. Hence, it ensures that each data object is contained only once in the set. The class may be used to store the data objects contained in a single input file. At this stage of the import of data, no information on the 'design ident' exist.

Template Parameters
TYPEthe type of the vector data

Member Function Documentation

◆ __getitem__()

PtrBase __getitem__ ( string  key) const

references a member of the map

Parameters
keythe ident
Returns
a reference to the value of the ident
Note
This is used for SWIG to access the [] operator.

◆ __setitem__()

__setitem__ ( string  key,
PtrBase  value 
)

adds/changes a value in the map

Parameters
keythe ident
valuethe new value
Note
This is used for SWIG to access the [] operator.

Connect with Ansys