MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::UniqueThreadSafeOwner_MR_AABBTree Struct Reference
Inheritance diagram for meshlib::UniqueThreadSafeOwner_MR_AABBTree:

Public Member Functions

auto assign_from_another (_other:&meshlib::UniqueThreadSafeOwner_MR_AABBTree) -> &mut meshlib::UniqueThreadSafeOwner_MR_AABBTree
void reset ()
auto get () -> Option<&mut meshlib::AABBTree >
auto get_or_create (creator:&meshlib::std_function_MR_AABBTree) -> &mut meshlib::AABBTree
void update (updater:&meshlib::std_function_void_from_MR_AABBTree_ref)
auto heap_bytes () const -> usize

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::UniqueThreadSafeOwner_MR_AABBTree >
static auto construct_from_another (_other:&meshlib::UniqueThreadSafeOwner_MR_AABBTree) -> meshlib::Owned< meshlib::UniqueThreadSafeOwner_MR_AABBTree >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

This class is base class for unique thread safe owning of some objects, for example AABBTree classes derived from this one should have function like getOrCreate Generated from class MR::UniqueThreadSafeOwner<MR::AABBTree>.

Generated from class MR::UniqueThreadSafeOwner<MR::AABBTree>. Heap-allocated instances are held in Owned<UniqueThreadSafeOwner_MR_AABBTree>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::UniqueThreadSafeOwner_MR_AABBTree::assign_from_another ( _other:&meshlib::UniqueThreadSafeOwner_MR_AABBTree ) -> &mut meshlib::UniqueThreadSafeOwner_MR_AABBTree

Generated from method MR::UniqueThreadSafeOwner<MR::AABBTree>::operator=.

Calls MR_UniqueThreadSafeOwner_MR_AABBTree_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object. The reference to this object might be preserved in the return value.

◆ construct_from_another()

auto meshlib::UniqueThreadSafeOwner_MR_AABBTree::construct_from_another ( _other:&meshlib::UniqueThreadSafeOwner_MR_AABBTree ) -> meshlib::Owned< meshlib::UniqueThreadSafeOwner_MR_AABBTree >
static

Generated from constructor MR::UniqueThreadSafeOwner<MR::AABBTree>::UniqueThreadSafeOwner.

Calls MR_UniqueThreadSafeOwner_MR_AABBTree_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ get()

auto meshlib::UniqueThreadSafeOwner_MR_AABBTree::get ( ) -> Option<&mut meshlib::AABBTree >

returns existing owned object and does not create new one Generated from method MR::UniqueThreadSafeOwner<MR::AABBTree>::get.

Calls MR_UniqueThreadSafeOwner_MR_AABBTree_get().

◆ get_or_create()

auto meshlib::UniqueThreadSafeOwner_MR_AABBTree::get_or_create ( creator:&meshlib::std_function_MR_AABBTree ) -> &mut meshlib::AABBTree

returns existing owned object or creates new one using creator function Generated from method MR::UniqueThreadSafeOwner<MR::AABBTree>::getOrCreate.

Calls MR_UniqueThreadSafeOwner_MR_AABBTree_getOrCreate().

◆ heap_bytes()

auto meshlib::UniqueThreadSafeOwner_MR_AABBTree::heap_bytes ( ) const -> usize

returns the amount of memory this object occupies on heap Generated from method MR::UniqueThreadSafeOwner<MR::AABBTree>::heapBytes.

Calls MR_UniqueThreadSafeOwner_MR_AABBTree_heapBytes().

◆ new()

auto meshlib::UniqueThreadSafeOwner_MR_AABBTree::new ( ) -> meshlib::Owned< meshlib::UniqueThreadSafeOwner_MR_AABBTree >
static

Constructs an empty (default-constructed) instance.

Calls MR_UniqueThreadSafeOwner_MR_AABBTree_DefaultConstruct().

◆ reset()

void meshlib::UniqueThreadSafeOwner_MR_AABBTree::reset ( )

deletes owned object Generated from method MR::UniqueThreadSafeOwner<MR::AABBTree>::reset.

Calls MR_UniqueThreadSafeOwner_MR_AABBTree_reset().

◆ update()

void meshlib::UniqueThreadSafeOwner_MR_AABBTree::update ( updater:&meshlib::std_function_void_from_MR_AABBTree_ref )

calls given updater for the owned object (if any) Generated from method MR::UniqueThreadSafeOwner<MR::AABBTree>::update.

Calls MR_UniqueThreadSafeOwner_MR_AABBTree_update().


The documentation for this struct was generated from the following file: