Class: Classbench::TrieStats
- Inherits:
-
Object
- Object
- Classbench::TrieStats
- 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 to trie nodes.
Instance Attribute Summary collapse
-
#classbench ⇒ Object
Returns the value of attribute classbench.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
Instance Method Summary collapse
-
#initialize ⇒ TrieStats
constructor
A new instance of TrieStats.
Constructor Details
#initialize ⇒ TrieStats
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
#classbench ⇒ Object
Returns the value of attribute classbench.
64 65 66 |
# File 'lib/classbench/trie.rb', line 64 def classbench @classbench end |
#nodes ⇒ Object
Returns the value of attribute nodes.
65 66 67 |
# File 'lib/classbench/trie.rb', line 65 def nodes @nodes end |