ValueOpcodeMapSubtract

class dsviper.ValueOpcodeMapSubtract

Bases: ValueOpcode

Removes from the map at a path the entries whose key it carries.

Note: Not directly instantiable.

arguments(definitions: DefinitionsConst, *, encoded: bool = True) → tuple[Attachment, ValueKey, PathConst, ValueSet]

Return (attachment, key, path, value), resolving the ids the opcode carries against definitions.

encoded=False returns a Value rather than a native object.

key() → ValueOpcodeKey

Return the ValueOpcodeKey the opcode applies to - the attachment, the instance and its concept.

path() → PathConst

Return the Path inside the document the opcode writes at.

type() → str

Return ‘Map_Subtract’, the name of this opcode’s kind.

value() → ValueSet

Return the keys the opcode removes from the map.