36 #define G_OP_ACCESS "GTimes::operator[](int&)"
37 #define G_INSERT "GTimes::insert(int&, GTime&)"
38 #define G_REMOVE "GTimes::remove(int&)"
112 if (
this != ×) {
141 #if defined(G_RANGE_CHECK)
142 if (index < 0 || index >=
size()) {
164 #if defined(G_RANGE_CHECK)
165 if (index < 0 || index >=
size()) {
241 #if defined(G_RANGE_CHECK)
249 if (index < 0 || index >=
size()) {
277 #if defined(G_RANGE_CHECK)
278 if (index < 0 || index >=
size()) {
307 int num = times.
size();
313 for (
int i = 0; i < num; ++i) {
356 result.append(
"=== GTimes ===");
364 for (
int i = 0; i <
size(); ++i) {
int size(void) const
Return number of times.
Time container class definition.
void extend(const GTimes ×)
Append time container.
void init_members(void)
Initialise class members.
void free_members(void)
Delete class members.
GTime & operator[](const int &index)
Return reference to time.
void clear(void)
Clear container.
GTimes & operator=(const GTimes ×)
Assignment operator.
void copy_members(const GTimes ×)
Copy class members.
virtual ~GTimes(void)
Destructor.
Exception handler interface definition.
void reserve(const int &num)
Reserve memory for times in container.
void remove(const int &index)
Remove time from container.
GTimes * clone(void) const
Clone object.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
GTimes(void)
Void constructor.
void insert(const int &index, const GTime &time)
Insert time into container.
std::string print(const GChatter &chatter=NORMAL) const
Print time container information.
void append(const GTime &time)
Append time to container.
std::vector< GTime > m_times
List of times.
bool is_empty(void) const
Signal if there are no times.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.