MeshLib C# Docs
Loading...
Searching...
No Matches

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

Inheritance diagram for MR.ObjMap:

Classes

class  _Enumerator

Public Member Functions

new IEnumerator< MR.Misc.Ref< MR.ObjId > > GetEnumerator ()
unsafe ObjMap ()
 Constructs an empty (default-constructed) instance.
unsafe ObjMap (MR._ByValue_ObjMap _other)
 Generated from constructor MR.ObjMap.ObjMap.
 ObjMap (Const_ObjMap _other)
 Generated from constructor MR.ObjMap.ObjMap.
 ObjMap (ObjMap _other)
 Generated from constructor MR.ObjMap.ObjMap.
unsafe ObjMap (ulong size)
 creates a vector with size elements with default value Generated from constructor MR.ObjMap.ObjMap.
unsafe ObjMap (ulong size, in MR.ObjId val)
 creates a vector with size elements with the given value Generated from constructor MR.ObjMap.ObjMap.
unsafe ObjMap (MR.Misc._Moved< MR.Std.Vector_MRObjId > vec)
 moves data from the given std::vector<T> Generated from constructor MR.ObjMap.ObjMap.
unsafe MR.ObjMap assign (MR._ByValue_ObjMap _other)
 Generated from method MR::ObjMap::operator=.
unsafe void clear ()
 Generated from method MR.ObjMap.clear.
unsafe void resize (ulong newSize)
 Generated from method MR.ObjMap.resize.
unsafe void resize (ulong newSize, in MR.ObjId t)
 Generated from method MR.ObjMap.resize.
unsafe void resizeNoInit (ulong targetSize)
 Generated from method MR.ObjMap.resizeNoInit.
unsafe void reserve (ulong capacity)
 Generated from method MR.ObjMap.reserve.
unsafe void resizeWithReserve (ulong newSize)
 doubles reserved memory until resize(newSize) can be done without reallocation Generated from method MR.ObjMap.resizeWithReserve.
unsafe void resizeWithReserve (ulong newSize, in MR.ObjId value)
 doubles reserved memory until resize(newSize, value) can be done without reallocation Generated from method MR.ObjMap.resizeWithReserve.
unsafe void autoResizeSet (MR.ObjId pos, ulong len, MR.ObjId 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.ObjMap.autoResizeSet.
unsafe void autoResizeSet (MR.ObjId i, MR.ObjId val)
 sets the element #i to the given value, adjusting the size of the vector to include new element Generated from method MR.ObjMap.autoResizeSet.
unsafe ref MR.ObjId autoResizeAt (MR.ObjId i)
 this accessor automatically adjusts the size of the vector Generated from method MR.ObjMap.autoResizeAt.
unsafe void pushBack (in MR.ObjId t)
 Generated from method MR::ObjMap::push_back.
unsafe void pushBack (MR.Misc._MoveRef _move_t, in MR.ObjId t)
 Generated from method MR::ObjMap::push_back.
unsafe void popBack ()
 Generated from method MR::ObjMap::pop_back.
unsafe ref MR.ObjId emplaceBack ()
 Generated from method MR::ObjMap::emplace_back&lt;&gt;.
unsafe new ref MR.ObjId front ()
 Generated from method MR.ObjMap.front.
unsafe new ref MR.ObjId back ()
 Generated from method MR.ObjMap.back.
unsafe new MR.Misc.? Ref< MR.ObjIddata ()
 Generated from method MR.ObjMap.data.
unsafe void swap (MR.ObjMap b)
 Generated from method MR.ObjMap.swap.
Public Member Functions inherited from MR.Const_ObjMap
virtual void Dispose ()
IEnumerator< MR.Misc.ConstRef< MR.ObjId > > GetEnumerator ()
unsafe Const_ObjMap ()
 Constructs an empty (default-constructed) instance.
unsafe Const_ObjMap (MR._ByValue_ObjMap _other)
 Generated from constructor MR.ObjMap.ObjMap.
 Const_ObjMap (Const_ObjMap _other)
 Generated from constructor MR.ObjMap.ObjMap.
 Const_ObjMap (ObjMap _other)
 Generated from constructor MR.ObjMap.ObjMap.
unsafe Const_ObjMap (ulong size)
 creates a vector with size elements with default value Generated from constructor MR.ObjMap.ObjMap.
unsafe Const_ObjMap (ulong size, in MR.ObjId val)
 creates a vector with size elements with the given value Generated from constructor MR.ObjMap.ObjMap.
unsafe Const_ObjMap (MR.Misc._Moved< MR.Std.Vector_MRObjId > vec)
 moves data from the given std::vector<T> Generated from constructor MR.ObjMap.ObjMap.
unsafe bool empty ()
 Generated from method MR.ObjMap.empty.
unsafe ulong size ()
 Generated from method MR.ObjMap.size.
unsafe ulong capacity ()
 Generated from method MR.ObjMap.capacity.
unsafe ref readonly MR.ObjId front ()
 Generated from method MR.ObjMap.front.
unsafe ref readonly MR.ObjId back ()
 Generated from method MR.ObjMap.back.
unsafe MR.ObjId beginId ()
 returns the identifier of the first element Generated from method MR.ObjMap.beginId.
unsafe MR.ObjId backId ()
 returns the identifier of the back() element Generated from method MR.ObjMap.backId.
unsafe MR.ObjId endId ()
 returns backId() + 1 Generated from method MR.ObjMap.endId.
unsafe MR.? ObjId data ()
 Generated from method MR.ObjMap.data.
unsafe ulong heapBytes ()
 returns the amount of memory this object occupies on heap Generated from method MR.ObjMap.heapBytes.
bool Equals (MR.Const_ObjMap? b)
override bool Equals (object? other)

Static Public Member Functions

static unsafe implicit operator ObjMap (MR.Misc._Moved< MR.Std.Vector_MRObjId > vec)
 moves data from the given std::vector<T> Generated from constructor MR.ObjMap.ObjMap.
Static Public Member Functions inherited from MR.Const_ObjMap
static unsafe implicit operator Const_ObjMap (MR.Misc._Moved< MR.Std.Vector_MRObjId > vec)
 moves data from the given std::vector<T> Generated from constructor MR.ObjMap.ObjMap.
static unsafe bool operator== (MR.Const_ObjMap _this, MR.Const_ObjMap b)
 Generated from method MR::ObjMap::operator==.
static unsafe bool operator!= (MR.Const_ObjMap _this, MR.Const_ObjMap b)

Properties

new unsafe MR.Std.Vector_MRObjId vec [get, protected set]
 The user can directly manipulate the vector, they can't break anything anyway.
unsafe new ref MR.ObjId this[MR.ObjId i] [get]
 Generated from method MR::ObjMap::operator[].
Properties inherited from MR.Const_ObjMap
unsafe MR.Std.Const_Vector_MRObjId vec [get, protected set]
 The user can directly manipulate the vector, they can't break anything anyway.
unsafe ref readonly MR.ObjId this[MR.ObjId i] [get]
 Generated from method MR::ObjMap::operator[].

Additional Inherited Members

Protected Member Functions inherited from MR.Const_ObjMap
virtual unsafe void Dispose (bool disposing)

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.ObjMap. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ ObjMap() [1/7]

unsafe MR.ObjMap.ObjMap ( )
inline

Constructs an empty (default-constructed) instance.

◆ ObjMap() [2/7]

unsafe MR.ObjMap.ObjMap ( MR._ByValue_ObjMap _other)
inline

Generated from constructor MR.ObjMap.ObjMap.

◆ ObjMap() [3/7]

MR.ObjMap.ObjMap ( Const_ObjMap _other)
inline

Generated from constructor MR.ObjMap.ObjMap.

◆ ObjMap() [4/7]

MR.ObjMap.ObjMap ( ObjMap _other)
inline

Generated from constructor MR.ObjMap.ObjMap.

◆ ObjMap() [5/7]

unsafe MR.ObjMap.ObjMap ( ulong size)
inline

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

◆ ObjMap() [6/7]

unsafe MR.ObjMap.ObjMap ( ulong size,
in MR.ObjId val )
inline

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

◆ ObjMap() [7/7]

unsafe MR.ObjMap.ObjMap ( MR.Misc._Moved< MR.Std.Vector_MRObjId > vec)
inline

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

Member Function Documentation

◆ assign()

unsafe MR.ObjMap MR.ObjMap.assign ( MR._ByValue_ObjMap _other)
inline

Generated from method MR::ObjMap::operator=.

◆ autoResizeAt()

unsafe ref MR.ObjId MR.ObjMap.autoResizeAt ( MR.ObjId i)
inline

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

◆ autoResizeSet() [1/2]

unsafe void MR.ObjMap.autoResizeSet ( MR.ObjId i,
MR.ObjId val )
inline

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

◆ autoResizeSet() [2/2]

unsafe void MR.ObjMap.autoResizeSet ( MR.ObjId pos,
ulong len,
MR.ObjId 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.ObjMap.autoResizeSet.

◆ back()

unsafe new ref MR.ObjId MR.ObjMap.back ( )
inline

Generated from method MR.ObjMap.back.

◆ clear()

unsafe void MR.ObjMap.clear ( )
inline

Generated from method MR.ObjMap.clear.

◆ data()

unsafe new MR.Misc.? Ref< MR.ObjId > MR.ObjMap.data ( )
inline

Generated from method MR.ObjMap.data.

◆ emplaceBack()

unsafe ref MR.ObjId MR.ObjMap.emplaceBack ( )
inline

Generated from method MR::ObjMap::emplace_back&lt;&gt;.

◆ front()

unsafe new ref MR.ObjId MR.ObjMap.front ( )
inline

Generated from method MR.ObjMap.front.

◆ GetEnumerator()

new IEnumerator< MR.Misc.Ref< MR.ObjId > > MR.ObjMap.GetEnumerator ( )
inline

◆ operator ObjMap()

unsafe implicit MR.ObjMap.operator ObjMap ( MR.Misc._Moved< MR.Std.Vector_MRObjId > vec)
inlinestatic

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

◆ popBack()

unsafe void MR.ObjMap.popBack ( )
inline

Generated from method MR::ObjMap::pop_back.

◆ pushBack() [1/2]

unsafe void MR.ObjMap.pushBack ( in MR.ObjId t)
inline

Generated from method MR::ObjMap::push_back.

◆ pushBack() [2/2]

unsafe void MR.ObjMap.pushBack ( MR.Misc._MoveRef _move_t,
in MR.ObjId t )
inline

Generated from method MR::ObjMap::push_back.

◆ reserve()

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

Generated from method MR.ObjMap.reserve.

◆ resize() [1/2]

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

Generated from method MR.ObjMap.resize.

◆ resize() [2/2]

unsafe void MR.ObjMap.resize ( ulong newSize,
in MR.ObjId t )
inline

Generated from method MR.ObjMap.resize.

◆ resizeNoInit()

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

Generated from method MR.ObjMap.resizeNoInit.

◆ resizeWithReserve() [1/2]

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

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

◆ resizeWithReserve() [2/2]

unsafe void MR.ObjMap.resizeWithReserve ( ulong newSize,
in MR.ObjId value )
inline

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

◆ swap()

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

Generated from method MR.ObjMap.swap.

Property Documentation

◆ this[MR.ObjId i]

unsafe new ref MR.ObjId MR.ObjMap.this[MR.ObjId i]
get

Generated from method MR::ObjMap::operator[].

◆ vec

new unsafe MR.Std.Vector_MRObjId MR.ObjMap.vec
getprotected set

The user can directly manipulate the vector, they can't break anything anyway.


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