We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6a0c39 commit a040819Copy full SHA for a040819
src/InfoLoggerMessageList.cxx
@@ -25,3 +25,11 @@ InfoLoggerMessageList::~InfoLoggerMessageList()
25
infoLog_msg_destroy(msg); // destroy list (ok with null)
26
}
27
28
+unsigned long InfoLoggerMessageList::size()
29
+{
30
+ unsigned long nMsg = 0;
31
+ for (infoLog_msg_t* m = this->msg; m != nullptr; m = m->next) {
32
+ nMsg++;
33
+ }
34
+ return nMsg;
35
+}
src/InfoLoggerMessageList.h
@@ -21,6 +21,7 @@ class InfoLoggerMessageList
21
InfoLoggerMessageList(TR_file* rawMessageList);
22
~InfoLoggerMessageList();
23
infoLog_msg_t* msg;
24
+ unsigned long size(); // return number of messages in list
};
// _INFOLOGGER_MESSAGE_LIST_H
0 commit comments