ITokenTable *TokenTableFactoryImpl::getSingleton(const ISmbiosTable *table) { if( !table ) { table = smbios::SmbiosFactory::getFactory()->getSingleton(); } if (! _tablePtr) _tablePtr = makeNew(table); return _tablePtr; }
M_APM MAPM::val(void) { if (myVal->m_apm_refcount==1) /* Return my private myVal */ return myVal; /* Otherwise, our copy of myVal is shared-- we need to make a new private copy. */ M_APM oldVal=myVal; myVal=makeNew(); m_apm_copy(myVal,oldVal); unref(oldVal); return myVal; }
void MAPM::create(void) { myVal=makeNew(); }
boost::shared_ptr<secp256k1_context> Secp256k1ContextFactory::create() const { boost::shared_ptr<secp256k1_context> context(makeNew(), Secp256k1ContextDisposer()); return context; }
link LISTcons(Item n, link x){ link t = makeNew(n); t->next = x; return t; }