Class: DcmDict::Dictionary::BaseDictionary
- Defined in:
- lib/dcm_dict/dictionary/base_dictionary.rb
Overview
Base class for specific dictionary
Direct Known Subclasses
Instance Method Summary collapse
-
#feature_at(key, field) ⇒ Object
Find single feature identified by
field
for record indexed bykey
. -
#initialize ⇒ BaseDictionary
constructor
A new instance of BaseDictionary.
-
#record_at(key) ⇒ Object
Find record data using
key
.
Constructor Details
#initialize ⇒ BaseDictionary
Returns a new instance of BaseDictionary.
29 30 31 32 33 |
# File 'lib/dcm_dict/dictionary/base_dictionary.rb', line 29 def initialize @semaphore = Mutex.new map_source_data freeze_source_data end |
Instance Method Details
#feature_at(key, field) ⇒ Object
Find single feature identified by field
for record indexed by key
41 42 43 |
# File 'lib/dcm_dict/dictionary/base_dictionary.rb', line 41 def feature_at(key, field) @semaphore.synchronize { atomic_feature_at(key, field) } end |
#record_at(key) ⇒ Object
Find record data using key
36 37 38 |
# File 'lib/dcm_dict/dictionary/base_dictionary.rb', line 36 def record_at(key) @semaphore.synchronize { atomic_record_at(key) } end |