MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / Lookup

Method Lookup

src/fco/fcosetimpl.cpp:122–131  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// Lookup -- TODO: figure out how I can implement const and non-const versions without duplicating code. //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

120// without duplicating code.
121///////////////////////////////////////////////////////////////////////////////
122const iFCOIter* cFCOSetImpl::Lookup(const cFCOName& name) const
123{
124 const cFCOIterImpl* pIter = CreateIterator(this);
125 if (!pIter->SeekToFCO(name))
126 {
127 pIter->DestroyIter();
128 pIter = NULL;
129 }
130 return pIter;
131}
132
133iFCOIter* cFCOSetImpl::Lookup(const cFCOName& name)
134{

Callers 1

CreateNodeMethod · 0.45

Calls 3

CreateIteratorFunction · 0.85
DestroyIterMethod · 0.80
SeekToFCOMethod · 0.45

Tested by

no test coverage detected