Efficiently iterates through collections of VuoModuleInfo objects in VuoCompilerEnvironment, without making copies of the collections.
Definition at line 17 of file VuoModuleInfoIterator.hh.
Public Member Functions | |
VuoModuleInfoIterator (map< string, map< string, VuoModuleInfo * > > *allModuleInfos, const string &overriddenCompiledModuleCachePath) | |
Constructs an iterator that will visit every item in allModuleInfos. | |
VuoModuleInfoIterator (map< string, map< string, VuoModuleInfo * > > *allModuleInfos, const string &overriddenCompiledModuleCachePath, const set< string > &searchModuleKeys) | |
Constructs an iterator that will visit only the items in allModuleInfos that match one of searchModuleKeys. | |
VuoModuleInfo * | next (void) |
Returns the next VuoModuleInfo to visit, or null if there are no more to visit. | |
VuoModuleInfoIterator::VuoModuleInfoIterator | ( | map< string, map< string, VuoModuleInfo * > > * | allModuleInfos, |
const string & | overriddenCompiledModuleCachePath | ||
) |
Constructs an iterator that will visit every item in allModuleInfos.
If allModuleInfos contains both a compiled module and its override, the override will be returned.
allModuleInfos must not be modified between now and when the caller is finished iterating through the modules.
Definition at line 20 of file VuoModuleInfoIterator.cc.
VuoModuleInfoIterator::VuoModuleInfoIterator | ( | map< string, map< string, VuoModuleInfo * > > * | allModuleInfos, |
const string & | overriddenCompiledModuleCachePath, | ||
const set< string > & | searchModuleKeys | ||
) |
Constructs an iterator that will visit only the items in allModuleInfos that match one of searchModuleKeys.
If allModuleInfos contains both a compiled module and its override, the override will be returned.
allModuleInfos must not be modified between now and when the caller is finished iterating through the modules.
Definition at line 36 of file VuoModuleInfoIterator.cc.
VuoModuleInfo * VuoModuleInfoIterator::next | ( | void | ) |
Returns the next VuoModuleInfo to visit, or null if there are no more to visit.
Definition at line 70 of file VuoModuleInfoIterator.cc.