Class: Classbench::TrieStats

Inherits:
Object
  • Object
show all
Defined in:
lib/classbench/trie.rb

Overview

Class representing statistics related to the trie.

Statistics are divided into two groups:

1) statistics proposed in ClassBench tool and
2) statistics related to trie nodes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrieStats

Returns a new instance of TrieStats.



67
68
69
70
# File 'lib/classbench/trie.rb', line 67

def initialize
  self.classbench = ClassbenchStats.new
  self.nodes = NodeStats.new
end

Instance Attribute Details

#classbenchObject

Returns the value of attribute classbench.



64
65
66
# File 'lib/classbench/trie.rb', line 64

def classbench
  @classbench
end

#nodesObject

Returns the value of attribute nodes.



65
66
67
# File 'lib/classbench/trie.rb', line 65

def nodes
  @nodes
end