MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Const_UnionFind_MRFaceId Class Reference

Union-find data structure for representing disjoin sets of elements with few very quick operations: 1) union of two sets in one, 2) checking whether two elements pertain to the same set, 3) finding representative element (root) of each set by any set's element. More...

Inheritance diagram for MR.Const_UnionFind_MRFaceId:

Classes

struct  _Underlying

Public Member Functions

virtual void Dispose ()
unsafe Const_UnionFind_MRFaceId ()
 Constructs an empty (default-constructed) instance.
unsafe Const_UnionFind_MRFaceId (MR._ByValue_UnionFind_MRFaceId _other)
 Generated from constructor MR::UnionFind<MR.FaceId>::UnionFind.
 Const_UnionFind_MRFaceId (Const_UnionFind_MRFaceId _other)
 Generated from constructor MR::UnionFind<MR.FaceId>::UnionFind.
 Const_UnionFind_MRFaceId (UnionFind_MRFaceId _other)
 Generated from constructor MR::UnionFind<MR.FaceId>::UnionFind.
unsafe Const_UnionFind_MRFaceId (ulong size)
 creates union-find with given number of elements, each element is the only one in its disjoint set Generated from constructor MR::UnionFind<MR.FaceId>::UnionFind.
unsafe ulong size ()
 returns the number of elements in union-find Generated from method MR::UnionFind<MR.FaceId>size.
unsafe bool isRoot (MR.FaceId a)
 returns true if given element is the root of some set Generated from method MR::UnionFind<MR.FaceId>isRoot.
unsafe MR.FaceId parent (MR.FaceId a)
 return parent element of this element, which is equal to given element only for set's root Generated from method MR::UnionFind<MR.FaceId>parent.
unsafe MR.Const_FaceMap parents ()
 gets the parents of all elements as is Generated from method MR::UnionFind<MR.FaceId>parents.

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Detailed Description

Union-find data structure for representing disjoin sets of elements with few very quick operations: 1) union of two sets in one, 2) checking whether two elements pertain to the same set, 3) finding representative element (root) of each set by any set's element.

Template Parameters
Iis the identifier of a set's element, e.g. FaceId Generated from class MR::UnionFind<MR.FaceId>. This is the const half of the class.

Constructor & Destructor Documentation

◆ Const_UnionFind_MRFaceId() [1/5]

unsafe MR.Const_UnionFind_MRFaceId.Const_UnionFind_MRFaceId ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_UnionFind_MRFaceId() [2/5]

unsafe MR.Const_UnionFind_MRFaceId.Const_UnionFind_MRFaceId ( MR._ByValue_UnionFind_MRFaceId _other)
inline

Generated from constructor MR::UnionFind<MR.FaceId>::UnionFind.

◆ Const_UnionFind_MRFaceId() [3/5]

MR.Const_UnionFind_MRFaceId.Const_UnionFind_MRFaceId ( Const_UnionFind_MRFaceId _other)
inline

Generated from constructor MR::UnionFind<MR.FaceId>::UnionFind.

◆ Const_UnionFind_MRFaceId() [4/5]

MR.Const_UnionFind_MRFaceId.Const_UnionFind_MRFaceId ( UnionFind_MRFaceId _other)
inline

Generated from constructor MR::UnionFind<MR.FaceId>::UnionFind.

◆ Const_UnionFind_MRFaceId() [5/5]

unsafe MR.Const_UnionFind_MRFaceId.Const_UnionFind_MRFaceId ( ulong size)
inline

creates union-find with given number of elements, each element is the only one in its disjoint set Generated from constructor MR::UnionFind<MR.FaceId>::UnionFind.

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.Const_UnionFind_MRFaceId.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_UnionFind_MRFaceId.Dispose ( bool disposing)
inlineprotectedvirtual

◆ isRoot()

unsafe bool MR.Const_UnionFind_MRFaceId.isRoot ( MR.FaceId a)
inline

returns true if given element is the root of some set Generated from method MR::UnionFind<MR.FaceId>isRoot.

◆ parent()

unsafe MR.FaceId MR.Const_UnionFind_MRFaceId.parent ( MR.FaceId a)
inline

return parent element of this element, which is equal to given element only for set's root Generated from method MR::UnionFind<MR.FaceId>parent.

◆ parents()

unsafe MR.Const_FaceMap MR.Const_UnionFind_MRFaceId.parents ( )
inline

gets the parents of all elements as is Generated from method MR::UnionFind<MR.FaceId>parents.

◆ size()

unsafe ulong MR.Const_UnionFind_MRFaceId.size ( )
inline

returns the number of elements in union-find Generated from method MR::UnionFind<MR.FaceId>size.


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