> ## 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.

# DataObjectVector Class Reference

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

A vector of [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md).

## Public Types

| Type | Name |
| - | - |
|  typedef std::vector\< [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) > | [Base](#a797064178a8d629c12e3ab5bdb042302) the data type of the base class |
|  typedef std::vector\< [DataObjectVector](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_vector.md) > | [MultiSamplesVector](#a6b430a59c0368bd18944f8f57744cfec) a vector of vectors of pointers of this class |

## Public Member Functions

| Type | Name |
| - | - |
| | [DataObjectVector](#a7ffbb0488164e86ae212d16aed483601) () default constructor (creates an ampty set) |
| | [DataObjectVector](#a5fbb9ecc4d7ade66e0f5b0709a617726) ([DataObjectVector](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_vector.md) other) copy constructor |
| [DataObjectVector](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_vector.md) | [operator=](#ad8f1d8bb2f00d92f419d1ced74267abd) ([DataObjectVector](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_vector.md) other) copy-assignment operator |
| bool | [operator==](#ac1735f7b9ee2aa6bbf447b2d1ceb9999) ([DataObjectVector](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_vector.md) other) |

## Public Attributes

| Type | Name |
| - | - |
|  T | **elements** STL member. |

## Detailed Description

A vector of [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md).

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000003)****
>
> \{ [DataObjectVector](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_vector.md) is obsolete. Use the DataObjectContainers \[] index operator to iterate over a selection of [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md).}

It is based on a C++ std::vector, providing fast random element access of O(1).

## Constructor & Destructor Documentation

### DataObjectVector()

```cpp theme={null}
DataObjectVector(DataObjectVector other)
```

copy constructor

**Parameters**

| Name | Description |
| - | - |
| other | the items to be copied from |

## Member Function Documentation

### operator=()

```cpp theme={null}
DataObjectVector operator=(DataObjectVector other)
```

copy-assignment operator

**Parameters**

| Name | Description |
| - | - |
| other | the items to be assign-copied from |

### operator==()

```cpp theme={null}
bool operator==(DataObjectVector other)
```

**Returns**

true if both objects contain the same content

**Parameters**

| Name | Description |
| - | - |
| other | the other object to be compared with |
