ContentsIndexHome
PreviousUpNext
insert Method

Assigns the specified value to the specified position. When the position did not exist it the index domain, it will be created.

Sets the given position to the specified value. If the specified position does not exist yet in the index domain(s), the index domain(s) will be extended. Applies to element valued data. 

 

virtual void insert(const Tuple& pos, const IElement* value) = 0;

 

Sets the given position to the specified value. If the specified position does not exist yet in the index domain(s), the index domain(s) will be extended. 

If the value does not exist in the associated range (when this is a view on an Element Parameter which does not have a subset of Integer as its range), the boolean insertIntoRange can be set to true to indicate that the value should also be inserted into the range. 

Applies to element valued data of which the range is not a subset of Integers. 

 

virtual void insert(const Tuple& pos, const char* value, bool insertIntoRange = true) = 0;

 

Sets the given position to the specified value. If the specified position does not exist yet in the index domain(s), the index domain(s) will be extended. Applies to double valued data. 

 

virtual void insert(const Tuple& pos, double value) = 0;

 

Sets the given position to the specified value. If the specified position does not exist yet in the index domain(s), the index domain(s) will be extended. 

If the value does not exist in the associated range (when this is a view on an Element Parameter with a subset of Integer as its range), the boolean insertIntoRange can be set to true to indicate that the value should also be inserted into the range. 

Applies to element valued data of which the range is a subset of Integers. 

 

virtual void insert(const Tuple& pos, int value, bool insertIntoRange = true) = 0;