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

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

+ Inheritance diagram for MR.ObjMap:

Public Member Functions

unsafe ObjMap ()
 Constructs an empty (default-constructed) instance.
 
unsafe ObjMap (MR._ByValue_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<>.
 
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 ()
 
unsafe Const_ObjMap ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_ObjMap (MR._ByValue_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]
 the user can directly manipulate the vector, anyway she cannot break anything
 
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]
 the user can directly manipulate the vector, anyway she cannot break anything
 
unsafe ref readonly MR.ObjId this[MR.ObjId i] [get]
 Generated from method MR.ObjMap.operator[].
 
- Properties inherited from MR.Misc.Object< Const_ObjMap >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Member Functions inherited from MR.Const_ObjMap
virtual unsafe void Dispose (bool disposing)
 
- Protected Attributes inherited from MR.Misc.Object< Const_ObjMap >
bool _IsOwningVal
 

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.

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