9 #ifndef CMZN_TIMESEQUENCE_HPP__
10 #define CMZN_TIMESEQUENCE_HPP__
12 #include "zinc/timesequence.h"
38 cmzn_timesequence_id id;
46 explicit Timesequence(cmzn_timesequence_id in_time_sequence_id) :
47 id(in_time_sequence_id)
51 id(cmzn_timesequence_access(timeSequence.id))
56 cmzn_timesequence_id temp_id = cmzn_timesequence_access(timeSequence.id);
59 cmzn_timesequence_destroy(&
id);
69 cmzn_timesequence_destroy(&
id);
88 cmzn_timesequence_id
getId()
const
100 return cmzn_timesequence_get_number_of_times(
id);
111 return cmzn_timesequence_get_time(
id, timeIndex);
126 return cmzn_timesequence_set_time(
id, timeIndex, time);
131 inline bool operator==(
const Timesequence& a,
const Timesequence& b)
133 return a.getId() == b.getId();
bool isValid() const
Definition: timesequence.hpp:78
double getNumberOfTimes()
Definition: timesequence.hpp:98
A non-decreasing list of times at which nodal parameters can be stored.
Definition: timesequence.hpp:35
int setTime(int timeIndex, double time)
Definition: timesequence.hpp:124
cmzn_timesequence_id getId() const
Definition: timesequence.hpp:88
double getTime(int timeIndex)
Definition: timesequence.hpp:109