@@ -124,24 +124,24 @@ Reset parameters in order to start reading data from the beginning with
124124"""
125125reset! (cache:: TimeSeriesCache ) = _reset! (cache. common)
126126
127- _get_component (c:: TimeSeriesCache ) = _get_component (c. common)
128- _get_last_cached_time (c:: TimeSeriesCache ) = c. common. last_cached_time[]
129- _get_length_available (c:: TimeSeriesCache ) = c. common. length_available[]
130- _set_length_available! (c:: TimeSeriesCache , len) = c. common. length_available[] = len
131- _get_length_remaining (c:: TimeSeriesCache ) = c. common. length_remaining[]
132- _get_last_timestamp_read (c:: TimeSeriesCache ) = c. common. last_read_time[]
133- _set_last_timestamp_read! (c:: TimeSeriesCache , val) = c. common. last_read_time[] = val
134- _get_start_time (c:: TimeSeriesCache ) = c. common. start_time
135- _decrement_length_remaining! (c:: TimeSeriesCache , num) = c. common. length_remaining[] -= num
136- _get_name (c:: TimeSeriesCache ) = c. common. name
137- _get_num_iterations (c:: TimeSeriesCache ) = c. common. num_iterations
138- _get_ignore_scaling_factors (c:: TimeSeriesCache ) = c. common. ignore_scaling_factors
139- _get_type (c:: TimeSeriesCache ) = typeof (c. common. ts[])
140- _get_time_series (c:: TimeSeriesCache ) = c. common. ts[]
141- _set_time_series! (c:: TimeSeriesCache , ts) = c. common. ts[] = ts
142- _get_iterations_remaining (c:: TimeSeriesCache ) = c. common. iterations_remaining[]
143- _decrement_iterations_remaining! (c:: TimeSeriesCache ) = c. common. iterations_remaining[] -= 1
144- _get_resolution (cache:: TimeSeriesCache ) = get_resolution (_get_time_series (cache))
127+ @inline _get_component (c:: TimeSeriesCache ) = _get_component (c. common)
128+ @inline _get_last_cached_time (c:: TimeSeriesCache ) = c. common. last_cached_time[]
129+ @inline _get_length_available (c:: TimeSeriesCache ) = c. common. length_available[]
130+ @inline _set_length_available! (c:: TimeSeriesCache , len) = c. common. length_available[] = len
131+ @inline _get_length_remaining (c:: TimeSeriesCache ) = c. common. length_remaining[]
132+ @inline _get_last_timestamp_read (c:: TimeSeriesCache ) = c. common. last_read_time[]
133+ @inline _set_last_timestamp_read! (c:: TimeSeriesCache , val) = c. common. last_read_time[] = val
134+ @inline _get_start_time (c:: TimeSeriesCache ) = c. common. start_time
135+ @inline _decrement_length_remaining! (c:: TimeSeriesCache , num) = c. common. length_remaining[] -= num
136+ @inline _get_name (c:: TimeSeriesCache ) = c. common. name
137+ @inline _get_num_iterations (c:: TimeSeriesCache ) = c. common. num_iterations
138+ @inline _get_ignore_scaling_factors (c:: TimeSeriesCache ) = c. common. ignore_scaling_factors
139+ @inline _get_type (c:: TimeSeriesCache ) = typeof (c. common. ts[])
140+ @inline _get_time_series (c:: TimeSeriesCache ) = c. common. ts[]
141+ @inline _set_time_series! (c:: TimeSeriesCache , ts) = c. common. ts[] = ts
142+ @inline _get_iterations_remaining (c:: TimeSeriesCache ) = c. common. iterations_remaining[]
143+ @inline _decrement_iterations_remaining! (c:: TimeSeriesCache ) = c. common. iterations_remaining[] -= 1
144+ @inline _get_resolution (cache:: TimeSeriesCache ) = get_resolution (_get_time_series (cache))
145145
146146struct TimeSeriesCacheKey
147147 component_uuid:: Base.UUID
@@ -195,7 +195,7 @@ struct TimeSeriesCacheCommon{T <: TimeSeriesData, U <: InfrastructureSystemsComp
195195 end
196196end
197197
198- _get_component (c:: TimeSeriesCacheCommon ) = c. component
198+ @inline _get_component (c:: TimeSeriesCacheCommon ) = c. component
199199
200200function _reset! (common:: TimeSeriesCacheCommon )
201201 common. next_time[] = common. start_time
0 commit comments