ATerm++

PrevUpHomeNext

Class dictionary

genspect::dictionary —

Synopsis

class dictionary : public genspect::aterm {
public:
  // construct/copy/destruct
  dictionary();

  // public member functions
  aterm get(aterm);
  void put(aterm, aterm);
  void dict_remove(aterm);
};

Description

dictionary construct/copy/destruct

  1. dictionary();

    Create a new dictionary.

dictionary public member functions

  1. aterm get(aterm key);

    Get the value belonging to a given key in the dictionary.

  2. void put(aterm key, aterm value);

    Add / update a (key, value)-pair in a dictionary. If key does not already exist in the dictionary, this function adds the (key, value)-pair to the dictionary. Otherwise, it updates the value to value.

  3. void dict_remove(aterm key);

    Remove the (key, value)-pair from the dictionary. This function can be used to remove an entry from the dictionary.

Copyright © 2004 Wieger Wesselink

PrevUpHomeNext