Skip to main content
Part of Data A general container for vector data.

Public Types

Public Member Functions

Create DataObjectContainer

Element Access

Capacity

Friends

Operations

Detailed Description

A general container for vector data. This is a container for all data objects of the same type which may be used within SoS. A vector data object is described through a ‘design’ identifier and a ‘quantity’ identifier: quantity A ‘quantity’ may be the x-direction of the stress tensor, the plastic strain or any other scalar physical quantity. design A ‘design’ is a single instantiation of the same quantity, i.e. if one has several measurements of the same quantity, each measurement represents a single design. Throughout the workflow of SoS one may add data sets which may be interpreted in terms of new designs or quantities. For example, the mean value or the standard deviation of a quantity is computed from a set of designs of the same quantity, and can be interpreted as a new design. Furthermore, one may define additional quantities, for example compute the von Mises equivalent stress from the 6-dimensional stress tensor (i.e. from 6 different quantities). DataObjectContainer is a Sender. It communicates to it’s Listeners (Qt Datatables, Structure) when its DataObjects are changed (insert, erase, rename, change activity)

Constructor & Destructor Documentation

DataObjectContainer()

copy constructor Parameters

Member Function Documentation

__getitem__()

returns the i-th element of the current filter Parameters Returns a data object pointer Exceptions

__str__()

provides the print() method for this class in SWIG bindings Returns a message to be printed when print(this) is called

active()

Filter for active data objects. Returns returns the subset of active data objects

checkInsert()

checks if an item can be inserted Parameters Returns If the key is invalid, it returns false. returns true if key does not exist in the data base.

depInputs()

Filter for data objects marked as DOE dependent parameters. Returns returns the subset of data objects marked as DOE dependent parameters

designExists()

Check whether any DataObject with the given design ID exists. Computational complexity is of order O( log N_designs ). Parameters Returns True if a DataObject with the given design ID exists.

designIdents()

generates a vector of strings containing all design idents being part in this filter The ordering of the vector corresponds to the ordering of the ouput of generateVector() Returns the vector contained of design ident strings

designs()

Generates a vector of strings containing all design idents being part in this filter. Each design ident appears only once in the list. You can use this, for example, to find out which design names are selected. Returns The vector contained of design ident strings

dimension()

Returns returns the dimension of the data objects of given type, if any Parameters

empty()

True, if the DataObjectContainer contains no data objects. Returns returns true, if the DataObjectContainer contains no data objects

erase() [1/2]

erases a data object from the container Parameters

erase() [2/2]

Erases the DataObjects contained in the DataObjectContainer passed as the argument, from this container. DataObjects not contained in this container, are skipped. Parameters

eraseDesign()

erases all objects (and sets “needs update” flag of its dependencies) with given design ident Parameters

eraseQuantity()

erases all objects (and sets “needs update” flag of its dependencies) with given quantity ident Parameters

exists() [1/2]

Check whether a DataObject of given design ID and quantity ID exists. Parameters Returns true, if the requested DataObject exists.

exists() [2/2]

Check whether a DataObject with the given DataObjectKey exists. Returns true, if the given key exists Parameters

fillValueTypeManager()

Fill ValueTypeManager with all ValueTypes contained in this DataObjectContainer.
Convention: one ValueType per quantity. Ignores DataObjects with empty m_value_type shared_ptr.
Parameters

filterDesign() [1/2]

Returns the subset of data objects where the design ID is equal to the given ID. Parameters Returns The resulting DataObjectContainer

filterDesign() [2/2]

Returns the subset of data objects where the design ID is equal to one of the given ID list. Design IDs not found in the current DataObjectContainer are skipped. Parameters Returns the resulting filter object

filterID() [1/3]

Returns a set containing a single or no data object, defined by design and quantity ID. Parameters Returns the resulting container

filterID() [2/3]

Returns container containing a single DataObject. Parameters Returns the resulting container

filterID() [3/3]

Returns a container containing all objects in key_vector. Throws an ERROR if key_vector contains duplicate DataObjectKeys. Parameters Returns the resulting container

filterQuantity() [1/2]

Returns the subset of data objects where the quantity ident is equal to the given ID. Parameters Returns the resulting filter object

filterQuantity() [2/2]

Returns the subset of data objects where the quantity ID is equal to one of the given ID list. Quantity IDs not found in the current DataObjectContainer are skipped. Parameters Returns the resulting filter object

filterSerializable()

Get a subset of all data objects which can be serialized These are all objects which do not contain any NaN or infinity numbers. Returns The resulting DataObjectContainer

filterType()

Returns a container containing objects of a single type. Parameters Returns the resulting container

filterWithoutDesign()

Returns the subset of data objects where the design ID is NOT equal to the given ID. Parameters Returns the resulting filter object

filterWithoutID()

Returns the subset of data objects NOT containing the data object defined by ID and quantity ID. Parameters Returns the resulting filter object

filterWithoutQuantity()

Returns the subset of data objects where the quantity ID is NOT equal to the given ID. Parameters Returns the resulting filter object

find() [1/2]

Gets the data object with given data key. Parameters Returns a pointer to the requested object Exceptions

find() [2/2]

Gets the data object with given data key. Parameters Returns a pointer to the requested object Exceptions

fromFile()

Filter for data objects which were imported from a file. Returns returns the subset of data objects which were imported from a file

getSampleIdent()

static Returns the design string ident of the given sample number Parameters

getSampleNumber()

static Returns the sample number which is given as a design ident string Parameters

inactive()

Filter for inactive data objects. Returns returns the subset of inactive data objects

inputs()

Filter for data objects marked as DOE input parameters. Returns returns the subset of data objects marked as DOE input parameters

insert() [1/3]

inserts a new data object. Assigns ValueTypeDouble (named after key.quantity()) to the inserted data object. Parameters Returns An iterator to the newly added data object Exceptions

insert() [2/3]

inserts a new data object. Parameters Returns An iterator to the newly added data object Exceptions

insert() [3/3]

inserts a set of data objects contained in another container Parameters See also generateDescription for each inserted object! Parameters See also database must be a valid pointer.

isReservedResultQuantityIdent()

static Returns true if the given quantity ident is reserved for results (hence it cannot be imported from file) Parameters

isSampleDesignIdent()

static Returns true if the given design ident string can be interpreted as a sample number Parameters

nonSamples()

Filter for non-sample data objects. Returns returns the subset of data objects NOT having sample string IDs

notFromFile()

Filter for data objects which were NOT imported from a file. Returns returns the subset of data objects which were NOT imported from a file

operator*()

performs the set intersection Parameters Returns returns the intersection of this and other

operator+()

performs the set union Parameters Returns returns the union of this and other

operator/()

performs the set difference Parameters Returns returns the difference of this minus other

operator=()

destructor the assignment operator It copies all data and callbacks, but no mutexes (thread locks) Parameters Returns a reference to this object

operator==()

Returns true if both objects contain objects with identical content Parameters

operator[]()

returns the i-th element of the current filter Parameters Returns a data object pointer Exceptions

quantities()

Generates a vector of strings containing all quantity idents being part in this filter. Each quantity ident appears only once in the list. You can use this, for example, to find out which quantity names are selected. Returns The vector contained of quantity ident strings

quantityExists()

Check whether any DataObject with the given quantity ID exists. Worst case computational complexity is of order O( N_designs * log N_quantities) Parameters Returns True if a DataObject with the given quantity ID exists.

quantityIdents()

generates a vector of strings containing all quantity idents being part in this filter The ordering of the vector corresponds to the ordering of the ouput of generateVector() Returns the vector contained of quantity ident strings

renameDesign()

renames all design idents
Creates copies of the DataObjects to be renamed and removes the original DataObjects from this DataObjectContainer. This favors data consistency over performance.
Parameters

renameQuantity()

renames all quantity idents
Creates copies of the DataObjects to be renamed and removes the original DataObjects from this DataObjectContainer. This favors data consistency over performance.
Parameters

responses()

Filter for data objects marked as DOE responses. Returns returns the subset of data objects marked as DOE responses

sampleFormatString()

static Returns A copy of the See also sample_ident_format_string

samples()

Filter for sample data objects. Returns returns the subset of data objects having sample string IDs

setActive()

changes the activity flag of all contained objects Parameters

size()

Get the number of data objects contained in this DataObjectContainer. Returns the number of objects contained in this DataObjectContainer

sortDesignIdents()

static Sorts the given list of design IDs. Parameters Returns An ordered vector of IDs. Numbers are sorted according to See also compareDesignIdents