Definition at line 51 of file FieldCreateFactory.cpp.
template<typename FLD >
static void epics::pvData::FieldCreate::Helper::cache |
( |
const FieldCreate * |
create, |
|
|
std::tr1::shared_ptr< FLD > & |
ent |
|
) |
| |
|
inlinestatic |
Definition at line 53 of file FieldCreateFactory.cpp.
56 Lock G(create->mutex);
59 std::pair<cache_t::iterator, cache_t::iterator> itp(create->cache.equal_range(hash));
60 for(; itp.first!=itp.second; ++itp.first) {
61 Field* cent(itp.first->second);
62 FLD* centx(dynamic_cast<FLD*>(cent));
63 if(centx &&
compare(*centx, *ent)) {
67 }
catch(std::tr1::bad_weak_ptr&){
76 create->cache.insert(std::make_pair(hash, ent.get()));
shared_ptr< T > static_pointer_cast(shared_ptr< U > const &r) BOOST_NOEXCEPT
static unsigned hash(Field *fld)
bool compare(const Field &a, const Field &b)
The documentation for this struct was generated from the following file: