Libosinfo.Datamap

g GObject.Object GObject.Object Libosinfo.Entity Libosinfo.Entity GObject.Object->Libosinfo.Entity Libosinfo.Datamap Libosinfo.Datamap Libosinfo.Entity->Libosinfo.Datamap

Subclasses:

None

Methods

Inherited:

Libosinfo.Entity (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (id)

insert (inval, outval)

lookup (inval)

reverse_lookup (outval)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Libosinfo.Entity (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Entity

r

Class Details

class Libosinfo.Datamap(**kwargs)
Bases:

Libosinfo.Entity

Abstract:

No

Structure:

Libosinfo.DatamapClass

classmethod new(id)
Parameters:

id (str) – the unique identifier

Returns:

an empty datamap

Return type:

Libosinfo.Datamap

Construct a new datamapa that is initially empty.

New in version 0.2.3.

insert(inval, outval)
Parameters:
  • inval (str) – the input value

  • outval (str) – the output value

Adds the input value and the output value associated to it to the self.

New in version 0.2.3.

lookup(inval)
Parameters:

inval (str) – the input value

Return type:

str

Returns the output value with which inval is associated to.

New in version 0.2.3.

reverse_lookup(outval)
Parameters:

outval (str) – the output value

Return type:

str

Returns the input value with which outval is associated to.

New in version 0.2.3.