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

std.vector<T>-like container that requires specific indexing type, More...

+ Inheritance diagram for MR.VertMap:

Public Member Functions

unsafe VertMap ()
 Constructs an empty (default-constructed) instance.
 
unsafe VertMap (MR._ByValue_VertMap _other)
 Generated from constructor MR.VertMap.VertMap.
 
 VertMap (Const_VertMap _other)
 Generated from constructor MR.VertMap.VertMap.
 
 VertMap (VertMap _other)
 Generated from constructor MR.VertMap.VertMap.
 
unsafe VertMap (ulong size)
 creates a vector with size elements with default value Generated from constructor MR.VertMap.VertMap.
 
unsafe VertMap (ulong size, in MR.VertId val)
 creates a vector with size elements with the given value Generated from constructor MR.VertMap.VertMap.
 
unsafe VertMap (MR.Misc._Moved< MR.Std.Vector_MRVertId > vec)
 moves data from the given std.vector<T> Generated from constructor MR.VertMap.VertMap.
 
unsafe MR.VertMap assign (MR._ByValue_VertMap _other)
 Generated from method MR.VertMap.operator=.
 
unsafe void clear ()
 Generated from method MR.VertMap.clear.
 
unsafe void resize (ulong newSize)
 Generated from method MR.VertMap.resize.
 
unsafe void resize (ulong newSize, in MR.VertId t)
 Generated from method MR.VertMap.resize.
 
unsafe void resizeNoInit (ulong targetSize)
 Generated from method MR.VertMap.resizeNoInit.
 
unsafe void reserve (ulong capacity)
 Generated from method MR.VertMap.reserve.
 
unsafe void resizeWithReserve (ulong newSize)
 doubles reserved memory until resize(newSize) can be done without reallocation Generated from method MR.VertMap.resizeWithReserve.
 
unsafe void resizeWithReserve (ulong newSize, in MR.VertId value)
 doubles reserved memory until resize(newSize, value) can be done without reallocation Generated from method MR.VertMap.resizeWithReserve.
 
unsafe void autoResizeSet (MR.VertId pos, ulong len, MR.VertId val)
 sets elements [pos, pos+len) to the given value, adjusting the size of the vector to include new elements; the elements in between old size and pos are also set to val (for faster implementation) Generated from method MR.VertMap.autoResizeSet.
 
unsafe void autoResizeSet (MR.VertId i, MR.VertId val)
 sets the element #i to the given value, adjusting the size of the vector to include new element Generated from method MR.VertMap.autoResizeSet.
 
unsafe ref MR.VertId autoResizeAt (MR.VertId i)
 this accessor automatically adjusts the size of the vector Generated from method MR.VertMap.autoResizeAt.
 
unsafe void pushBack (in MR.VertId t)
 Generated from method MR.VertMap.push_back.
 
unsafe void pushBack (MR.Misc._MoveRef _move_t, in MR.VertId t)
 Generated from method MR.VertMap.push_back.
 
unsafe void popBack ()
 Generated from method MR.VertMap.pop_back.
 
unsafe ref MR.VertId emplaceBack ()
 Generated from method MR.VertMap.emplace_back<>.
 
unsafe new ref MR.VertId front ()
 Generated from method MR.VertMap.front.
 
unsafe new ref MR.VertId back ()
 Generated from method MR.VertMap.back.
 
unsafe new MR.Misc.? Ref< MR.VertIddata ()
 Generated from method MR.VertMap.data.
 
unsafe void swap (MR.VertMap b)
 Generated from method MR.VertMap.swap.
 

Static Public Member Functions

static unsafe implicit operator VertMap (MR.Misc._Moved< MR.Std.Vector_MRVertId > vec)
 moves data from the given std.vector<T> Generated from constructor MR.VertMap.VertMap.
 

Properties

new unsafe MR.Std.Vector_MRVertId vec [get, protected set]
 the user can directly manipulate the vector, anyway she cannot break anything
 
unsafe new ref MR.VertId this[MR.VertId i] [get]
 Generated from method MR.VertMap.operator[].
 

Detailed Description

std.vector<T>-like container that requires specific indexing type,

Template Parameters
Ttype of stored elements
Itype of index (shall be convertible to size_t) Generated from class MR.VertMap. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ VertMap() [1/7]

unsafe MR.VertMap.VertMap ( )
inline

Constructs an empty (default-constructed) instance.

◆ VertMap() [2/7]

unsafe MR.VertMap.VertMap ( MR._ByValue_VertMap _other)
inline

Generated from constructor MR.VertMap.VertMap.

◆ VertMap() [3/7]

MR.VertMap.VertMap ( Const_VertMap _other)
inline

Generated from constructor MR.VertMap.VertMap.

◆ VertMap() [4/7]

MR.VertMap.VertMap ( VertMap _other)
inline

Generated from constructor MR.VertMap.VertMap.

◆ VertMap() [5/7]

unsafe MR.VertMap.VertMap ( ulong size)
inline

creates a vector with size elements with default value Generated from constructor MR.VertMap.VertMap.

◆ VertMap() [6/7]

unsafe MR.VertMap.VertMap ( ulong size,
in MR.VertId val )
inline

creates a vector with size elements with the given value Generated from constructor MR.VertMap.VertMap.

◆ VertMap() [7/7]

unsafe MR.VertMap.VertMap ( MR.Misc._Moved< MR.Std.Vector_MRVertId > vec)
inline

moves data from the given std.vector<T> Generated from constructor MR.VertMap.VertMap.

Member Function Documentation

◆ assign()

unsafe MR.VertMap MR.VertMap.assign ( MR._ByValue_VertMap _other)
inline

Generated from method MR.VertMap.operator=.

◆ autoResizeAt()

unsafe ref MR.VertId MR.VertMap.autoResizeAt ( MR.VertId i)
inline

this accessor automatically adjusts the size of the vector Generated from method MR.VertMap.autoResizeAt.

◆ autoResizeSet() [1/2]

unsafe void MR.VertMap.autoResizeSet ( MR.VertId i,
MR.VertId val )
inline

sets the element #i to the given value, adjusting the size of the vector to include new element Generated from method MR.VertMap.autoResizeSet.

◆ autoResizeSet() [2/2]

unsafe void MR.VertMap.autoResizeSet ( MR.VertId pos,
ulong len,
MR.VertId val )
inline

sets elements [pos, pos+len) to the given value, adjusting the size of the vector to include new elements; the elements in between old size and pos are also set to val (for faster implementation) Generated from method MR.VertMap.autoResizeSet.

◆ back()

unsafe new ref MR.VertId MR.VertMap.back ( )
inline

Generated from method MR.VertMap.back.

◆ clear()

unsafe void MR.VertMap.clear ( )
inline

Generated from method MR.VertMap.clear.

◆ data()

unsafe new MR.Misc.? Ref< MR.VertId > MR.VertMap.data ( )
inline

Generated from method MR.VertMap.data.

◆ emplaceBack()

unsafe ref MR.VertId MR.VertMap.emplaceBack ( )
inline

Generated from method MR.VertMap.emplace_back<>.

◆ front()

unsafe new ref MR.VertId MR.VertMap.front ( )
inline

Generated from method MR.VertMap.front.

◆ operator VertMap()

static unsafe implicit MR.VertMap.operator VertMap ( MR.Misc._Moved< MR.Std.Vector_MRVertId > vec)
inlinestatic

moves data from the given std.vector<T> Generated from constructor MR.VertMap.VertMap.

◆ popBack()

unsafe void MR.VertMap.popBack ( )
inline

Generated from method MR.VertMap.pop_back.

◆ pushBack() [1/2]

unsafe void MR.VertMap.pushBack ( in MR.VertId t)
inline

Generated from method MR.VertMap.push_back.

◆ pushBack() [2/2]

unsafe void MR.VertMap.pushBack ( MR.Misc._MoveRef _move_t,
in MR.VertId t )
inline

Generated from method MR.VertMap.push_back.

◆ reserve()

unsafe void MR.VertMap.reserve ( ulong capacity)
inline

Generated from method MR.VertMap.reserve.

◆ resize() [1/2]

unsafe void MR.VertMap.resize ( ulong newSize)
inline

Generated from method MR.VertMap.resize.

◆ resize() [2/2]

unsafe void MR.VertMap.resize ( ulong newSize,
in MR.VertId t )
inline

Generated from method MR.VertMap.resize.

◆ resizeNoInit()

unsafe void MR.VertMap.resizeNoInit ( ulong targetSize)
inline

Generated from method MR.VertMap.resizeNoInit.

◆ resizeWithReserve() [1/2]

unsafe void MR.VertMap.resizeWithReserve ( ulong newSize)
inline

doubles reserved memory until resize(newSize) can be done without reallocation Generated from method MR.VertMap.resizeWithReserve.

◆ resizeWithReserve() [2/2]

unsafe void MR.VertMap.resizeWithReserve ( ulong newSize,
in MR.VertId value )
inline

doubles reserved memory until resize(newSize, value) can be done without reallocation Generated from method MR.VertMap.resizeWithReserve.

◆ swap()

unsafe void MR.VertMap.swap ( MR.VertMap b)
inline

Generated from method MR.VertMap.swap.

Property Documentation

◆ this[MR.VertId i]

unsafe new ref MR.VertId MR.VertMap.this[MR.VertId i]
get

Generated from method MR.VertMap.operator[].

◆ vec

new unsafe MR.Std.Vector_MRVertId MR.VertMap.vec
getprotected set

the user can directly manipulate the vector, anyway she cannot break anything


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