MCPcopy Create free account
hub / github.com/devosoft/avida / HasString

Method HasString

avida-core/source/tools/cStringList.cc:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool cStringList::HasString(const cString & test_string) const
63{
64 tConstListIterator<cString> string_it(string_list);
65 const cString * cur_string = NULL;
66 while ((cur_string = string_it.Next()) != NULL) {
67 if (test_string == *cur_string) {
68 return true;
69 }
70 }
71 return false;
72}
73
74cString cStringList::PopString(const cString & test_string)
75{

Callers 7

HasArgMethod · 0.80
processCommandMethod · 0.80
LoadBatchWithInstSetFunction · 0.80
LoadFileMethod · 0.80
CommandMapTasksMethod · 0.80
GetTaskCountMethod · 0.80

Calls 1

NextMethod · 0.45

Tested by

no test coverage detected