Skip to content

Commit a8fc3dc

Browse files
committed
Generator: specify tracked/untracked variables.
1 parent d82485b commit a8fc3dc

File tree

4 files changed

+287
-67
lines changed

4 files changed

+287
-67
lines changed

src/api/libcellml/generator.h

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,94 @@ class LIBCELLML_EXPORT Generator
209209
*/
210210
bool untrackAllVariables(const AnalyserModelPtr &model);
211211

212+
/**
213+
* @brief Get the number of tracked constants in the given @p model.
214+
*
215+
* Get the number of tracked constants in the given @p model.
216+
*
217+
* @param model The pointer to the @ref AnalyserModel for which to get the number of tracked constants.
218+
*
219+
* @return The number of tracked constants in the model.
220+
*/
221+
size_t trackedConstantCount(const AnalyserModelPtr &model);
222+
223+
/**
224+
* @brief Get the number of untracked constants in the given @p model.
225+
*
226+
* Get the number of untracked constants in the given @p model.
227+
*
228+
* @param model The pointer to the @ref AnalyserModel for which to get the number of untracked constants.
229+
*
230+
* @return The number of untracked constants in the model.
231+
*/
232+
size_t untrackedConstantCount(const AnalyserModelPtr &model);
233+
234+
/**
235+
* @brief Get the number of tracked computed constants in the given @p model.
236+
*
237+
* Get the number of tracked computed constants in the given @p model.
238+
*
239+
* @param model The pointer to the @ref AnalyserModel for which to get the number of tracked computed constants.
240+
*
241+
* @return The number of tracked computed constants in the model.
242+
*/
243+
size_t trackedComputedConstantCount(const AnalyserModelPtr &model);
244+
245+
/**
246+
* @brief Get the number of untracked computed constants in the given @p model.
247+
*
248+
* Get the number of untracked computed constants in the given @p model.
249+
*
250+
* @param model The pointer to the @ref AnalyserModel for which to get the number of untracked computed constants.
251+
*
252+
* @return The number of untracked computed constants in the model.
253+
*/
254+
size_t untrackedComputedConstantCount(const AnalyserModelPtr &model);
255+
256+
/**
257+
* @brief Get the number of tracked algebraic variables in the given @p model.
258+
*
259+
* Get the number of tracked algebraic variables in the given @p model.
260+
*
261+
* @param model The pointer to the @ref AnalyserModel for which to get the number of tracked algebraic variables.
262+
*
263+
* @return The number of tracked algebraic variables in the model.
264+
*/
265+
size_t trackedAlgebraicCount(const AnalyserModelPtr &model);
266+
267+
/**
268+
* @brief Get the number of untracked algebraic variables in the given @p model.
269+
*
270+
* Get the number of untracked algebraic variables in the given @p model.
271+
*
272+
* @param model The pointer to the @ref AnalyserModel for which to get the number of untracked algebraic variables.
273+
*
274+
* @return The number of untracked algebraic variables in the model.
275+
*/
276+
size_t untrackedAlgebraicCount(const AnalyserModelPtr &model);
277+
278+
/**
279+
* @brief Get the number of tracked external variables in the given @p model.
280+
*
281+
* Get the number of tracked external variables in the given @p model.
282+
*
283+
* @param model The pointer to the @ref AnalyserModel for which to get the number of tracked external variables.
284+
*
285+
* @return The number of tracked external variables in the model.
286+
*/
287+
size_t trackedExternalCount(const AnalyserModelPtr &model);
288+
289+
/**
290+
* @brief Get the number of untracked external variables in the given @p model.
291+
*
292+
* Get the number of untracked external variables in the given @p model.
293+
*
294+
* @param model The pointer to the @ref AnalyserModel for which to get the number of untracked external variables.
295+
*
296+
* @return The number of untracked external variables in the model.
297+
*/
298+
size_t untrackedExternalCount(const AnalyserModelPtr &model);
299+
212300
/**
213301
* @brief Get the number of tracked variables in the given @p model.
214302
*

0 commit comments

Comments
 (0)