Ignore:
Timestamp:
Oct 28, 2008, 8:32:47 PM (12 years ago)
Author:
orlov
Message:
  • No hash-code for Expr-s in table.
  • Domain, Values and Entries return table contents in sorted order.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/c++/runtime/rf_table.ih

    r2752 r4007  
    102102}
    103103
    104 //  zaglushka  - hash-function
    105 inline int expr_hash (Expr const& _key)
    106 {
    107      return _key.get_len();
    108 }
    109 
    110104inline void Table::bind (Expr const& _key, Expr const& _val)
    111105{
     
    115109    new_node = new TableNode;
    116110    new_node->key = _key;
    117     new_node->hash_key = expr_hash(_key);
    118111    new_node->left = TableNode::nil;
    119112    new_node->right = TableNode::nil;
Note: See TracChangeset for help on using the changeset viewer.