MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / map

Method map

include/geode/basic/mapping.hpp:199–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 GenericMapping& operator=( GenericMapping&& ) noexcept = default;
198
199 void map( const T1& in, const T2& out )
200 {
201 if( this->has_mapping_input( in ) )
202 {
203 if( absl::c_contains( this->in2out( in ), out ) )
204 {
205 return;
206 }
207 }
208 this->in2out_mapping()[in].push_back( out );
209 this->out2in_mapping()[out].push_back( in );
210 }
211
212 void unmap( const T1& in, const T2& out )
213 {

Callers 15

duplicate_pointsMethod · 0.45
process_solid_facetsMethod · 0.45
final_facets_mappingMethod · 0.45
process_solid_edgesMethod · 0.45
final_edges_mappingMethod · 0.45
update_edge_and_facetFunction · 0.45
replace_vertexMethod · 0.45

Calls 1

has_mapping_inputMethod · 0.80

Tested by 7

test_copy_mappingFunction · 0.36
test_generic_mappingFunction · 0.36
test_components_mappingFunction · 0.36
test_merge_mappingsFunction · 0.36
test_bijective_mappingsFunction · 0.36
test_generic_mappingsFunction · 0.36