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

Method create_block

src/geode/model/mixin/core/blocks.cpp:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209 template < index_t dimension >
210 void Blocks< dimension >::create_block(
211 uuid block_id, BlocksBuilderKey /*unused*/ )
212 {
213 typename Blocks< dimension >::Impl::ComponentPtr block{
214 new Block< dimension >{ typename Block< dimension >::BlocksKey{} }
215 };
216 IdentifierBuilder{ *block }.set_id( std::move( block_id ) );
217 impl_->add_component( std::move( block ) );
218 }
219
220 template < index_t dimension >
221 void Blocks< dimension >::create_block(

Callers

nothing calls this directly

Calls 2

add_componentMethod · 0.80
set_idMethod · 0.45

Tested by

no test coverage detected