Just check whether a given outpoint is unspent. May populate the cache. Use PeekCoin() to perform a non-caching lookup.
Declared in <coins.h>
<coins.h>
virtual bool HaveCoin(COutPoint const& outpoint) const = 0;
True if the outpoint is unspent.