Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

PropertyList Class Reference

Last update: 16.07.2025

Container class for handling properties Uses templates to easily find and cast configurations of different types. More...

Public Types

using const_iterator = typename ListType::const_iterator
 
using iterator = typename ListType::iterator
 
using ListType = std::vector< value_type >
 
using value_type = boost::shared_ptr< PropertyBase >
 

Public Member Functions

virtual string __str__ ()
 Outputfunction used in python context. Use this function to print instances of this class in python. More...
 
virtual loadJson (JsonValue root) override
 Function to load the Serializables data from a JsonValue. More...
 
PropertyList operator= (PropertyList other)
 
 PropertyList (PropertyList other)
 
 push_back (PropertyBase v)
 Appends a new entry to the list. We use unique_ptr so move is used. More...
 
virtual JsonValue saveJson () override
 Function to save the Serializables data as a JsonValue. More...
 
virtual std::ostream write (std::ostream os)
 Polymorphic ostream writer. Is used in the operator<<. More...
 

Detailed Description

Container class for handling properties Uses templates to easily find and cast configurations of different types.

Member Function Documentation

◆ __str__()

virtual string __str__ ( )
virtual

Outputfunction used in python context. Use this function to print instances of this class in python.

Returns
string containing the object

◆ loadJson()

virtual loadJson ( JsonValue  root)
overridevirtual

Function to load the Serializables data from a JsonValue.

Parameters
rootThe data of the serializable as JsonValue

◆ push_back()

push_back ( PropertyBase  v)

Appends a new entry to the list. We use unique_ptr so move is used.

Parameters
vThe ptr to be appended.

◆ saveJson()

virtual JsonValue saveJson ( )
overridevirtual

Function to save the Serializables data as a JsonValue.

Returns
The data of the serializable as JsonValue

◆ write()

virtual std::ostream write ( std::ostream  os)
virtual

Polymorphic ostream writer. Is used in the operator<<.

Parameters
osThe output stream
Returns
The output stream modified to contain information on the instance

Connect with Ansys