MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / remove

Method remove

src/CoolPropLib.cpp:493–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491 return next_handle - 1;
492 }
493 void remove(long handle) {
494 std::scoped_lock guard(ASLib_mutex);
495 std::size_t count_removed = ASlibrary.erase(handle);
496 if (count_removed != 1) {
497 throw CoolProp::HandleError("could not free handle");
498 }
499 }
500 shared_ptr<CoolProp::AbstractState>& get(long handle) {
501 std::scoped_lock guard(ASLib_mutex);
502 auto it = ASlibrary.find(handle);

Callers 12

build_one_fluidFunction · 0.80
fetch_pubchem_sdfFunction · 0.80
copy_filesFunction · 0.80
remove_filesFunction · 0.80
__init__.pyFile · 0.80
clearPointDataMethod · 0.80
__init__.pyFile · 0.80
free_stateFunction · 0.80
generateFunction · 0.80
setup.pyFile · 0.80
AbstractState_freeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected