> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PropertyList Class Reference

Part of [MOP properties](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__properties)

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

## Public Types

| Type | Name |
| - | - |
|  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](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_property_base.md) > |

## Public Member Functions

| Type | Name |
| - | - |
| virtual string | [\_\_str\_\_](#a3031d648b73235d11d64df95db3d84ce) () Outputfunction used in python context. Use this function to print instances of this class in python. |
| virtual | [loadJson](#ae5700ae63985e3e6b30cb716ddb5fdd0) ([JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) root) override Function to load the Serializables data from a [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md). |
| [PropertyList](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_list.md) | **operator=** ([PropertyList](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_list.md) other) |
| | **PropertyList** ([PropertyList](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_list.md) other) |
| | [push\_back](#a32d36491abec383e98bf94a25b87bb28) ([PropertyBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_property_base.md) v) Appends a new entry to the list. We use unique\_ptr so move is used. |
| virtual [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) | [saveJson](#ab4587af0230811304c91f1c0aaa1c9ce) () override Function to save the Serializables data as a [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md). |
| virtual std::ostream | [write](#a5246641e855e709d801786e7514c486a) (std::ostream os) Polymorphic ostream writer. Is used in the operator\<\<. |

## Detailed Description

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

## Member Function Documentation

### \_\_str\_\_()

```cpp theme={null}
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()

```cpp theme={null}
virtual loadJson(JsonValue root)
```

`override` `virtual`

Function to load the Serializables data from a [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md).

**Parameters**

| Name | Description |
| - | - |
| root | The data of the serializable as [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) |

### push\_back()

```cpp theme={null}
push_back(PropertyBase v)
```

Appends a new entry to the list. We use unique\_ptr so move is used.

**Parameters**

| Name | Description |
| - | - |
| v | The ptr to be appended. |

### saveJson()

```cpp theme={null}
virtual JsonValue saveJson()
```

`override` `virtual`

Function to save the Serializables data as a [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md).

**Returns**

The data of the serializable as [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md)

### write()

```cpp theme={null}
virtual std::ostream write(std::ostream os)
```

`virtual`

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

**Parameters**

| Name | Description |
| - | - |
| os | The output stream |

**Returns**

The output stream modified to contain information on the instance
