MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ObjMap Class Reference

Public Member Functions

bool __eq__ (self, ObjMap b)
 
ObjId __getitem__ (self, ObjId i)
 
ObjId __getitem__ (self, ObjId i)
 
None __init__ (self)
 
None __init__ (self, int size)
 
None __init__ (self, int size, ObjId val)
 
None __init__ (self, std_vector_Id_ObjTag vec)
 
typing.Iterator[ObjId__iter__ (self)
 
bool __ne__ (self, ObjMap b)
 
None __setitem__ (self, ObjId arg0, ObjId arg1)
 
ObjId autoResizeAt (self, ObjId i)
 
None autoResizeSet (self, ObjId pos, int len, ObjId val)
 
None autoResizeSet (self, ObjId i, ObjId val)
 
ObjId back (self)
 
ObjId back (self)
 
ObjId backId (self)
 
ObjId beginId (self)
 
int capacity (self)
 
None clear (self)
 
ObjId data (self)
 
ObjId data (self)
 
ObjId emplace_back (self)
 
bool empty (self)
 
ObjId endId (self)
 
ObjId front (self)
 
ObjId front (self)
 
int heapBytes (self)
 
None pop_back (self)
 
None push_back (self, ObjId t)
 
None push_back (self, ObjId t)
 
None reserve (self, int capacity)
 
None resize (self, int newSize)
 
None resize (self, int newSize, ObjId t)
 
None resizeNoInit (self, int targetSize)
 
None resizeWithReserve (self, int newSize)
 
None resizeWithReserve (self, int newSize, ObjId value)
 
int size (self)
 
None swap (self, ObjMap b)
 
std_vector_Id_ObjTag vec_ (self)
 
None vec_ (self, std_vector_Id_ObjTag arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
ObjMap operator (*args, **kwargs)
 
ObjMap operator (*args, **kwargs)
 

Static Protected Attributes

typing _offsetof_vec_ = 0
 

Detailed Description

Generated from:  MR::ObjMap


 \\brief std::vector<T>-like container that requires specific indexing type,
 \\tparam T type of stored elements
 \\tparam I type of index (shall be convertible to size_t)

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.ObjMap.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/5]

None mrmeshpy.ObjMap.__init__ ( self)
creates empty vector

◆ __init__() [3/5]

None mrmeshpy.ObjMap.__init__ ( self,
int size )
creates a vector with \\p size elements with default value

◆ __init__() [4/5]

None mrmeshpy.ObjMap.__init__ ( self,
int size,
ObjId val )
creates a vector with \\p size elements with the given value

◆ __init__() [5/5]

None mrmeshpy.ObjMap.__init__ ( self,
std_vector_Id_ObjTag vec )
moves data from the given std::vector<T>

Member Function Documentation

◆ __eq__()

bool mrmeshpy.ObjMap.__eq__ ( self,
ObjMap b )

◆ __getitem__() [1/2]

ObjId mrmeshpy.ObjMap.__getitem__ ( self,
ObjId i )

◆ __getitem__() [2/2]

ObjId mrmeshpy.ObjMap.__getitem__ ( self,
ObjId i )

◆ __iter__()

typing.Iterator[ObjId] mrmeshpy.ObjMap.__iter__ ( self)

◆ __ne__()

bool mrmeshpy.ObjMap.__ne__ ( self,
ObjMap b )

◆ __setitem__()

None mrmeshpy.ObjMap.__setitem__ ( self,
ObjId arg0,
ObjId arg1 )

◆ autoResizeAt()

ObjId mrmeshpy.ObjMap.autoResizeAt ( self,
ObjId i )
this accessor automatically adjusts the size of the vector

◆ autoResizeSet() [1/2]

None mrmeshpy.ObjMap.autoResizeSet ( self,
ObjId i,
ObjId val )
sets the element #i to the given value, adjusting the size of the vector to include new element

◆ autoResizeSet() [2/2]

None mrmeshpy.ObjMap.autoResizeSet ( self,
ObjId pos,
int len,
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 \\p pos are also set to \\p val (for faster implementation)

◆ back() [1/2]

ObjId mrmeshpy.ObjMap.back ( self)

◆ back() [2/2]

ObjId mrmeshpy.ObjMap.back ( self)

◆ backId()

ObjId mrmeshpy.ObjMap.backId ( self)
returns the identifier of the back() element

◆ beginId()

ObjId mrmeshpy.ObjMap.beginId ( self)
returns the identifier of the first element

◆ capacity()

int mrmeshpy.ObjMap.capacity ( self)

◆ clear()

None mrmeshpy.ObjMap.clear ( self)

◆ data() [1/2]

ObjId mrmeshpy.ObjMap.data ( self)

◆ data() [2/2]

ObjId mrmeshpy.ObjMap.data ( self)

◆ emplace_back()

ObjId mrmeshpy.ObjMap.emplace_back ( self)

◆ empty()

bool mrmeshpy.ObjMap.empty ( self)

◆ endId()

ObjId mrmeshpy.ObjMap.endId ( self)
returns backId() + 1

◆ front() [1/2]

ObjId mrmeshpy.ObjMap.front ( self)

◆ front() [2/2]

ObjId mrmeshpy.ObjMap.front ( self)

◆ heapBytes()

int mrmeshpy.ObjMap.heapBytes ( self)
returns the amount of memory this object occupies on heap

◆ operator() [1/2]

ObjMap mrmeshpy.ObjMap.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

ObjMap mrmeshpy.ObjMap.operator ( * args,
** kwargs )
static

◆ pop_back()

None mrmeshpy.ObjMap.pop_back ( self)

◆ push_back() [1/2]

None mrmeshpy.ObjMap.push_back ( self,
ObjId t )

◆ push_back() [2/2]

None mrmeshpy.ObjMap.push_back ( self,
ObjId t )

◆ reserve()

None mrmeshpy.ObjMap.reserve ( self,
int capacity )

◆ resize() [1/2]

None mrmeshpy.ObjMap.resize ( self,
int newSize )

◆ resize() [2/2]

None mrmeshpy.ObjMap.resize ( self,
int newSize,
ObjId t )

◆ resizeNoInit()

None mrmeshpy.ObjMap.resizeNoInit ( self,
int targetSize )
resizes the vector skipping initialization of its elements (more precisely initializing them using ( noInit ) constructor )

◆ resizeWithReserve() [1/2]

None mrmeshpy.ObjMap.resizeWithReserve ( self,
int newSize )
doubles reserved memory until resize(newSize) can be done without reallocation

◆ resizeWithReserve() [2/2]

None mrmeshpy.ObjMap.resizeWithReserve ( self,
int newSize,
ObjId value )
doubles reserved memory until resize(newSize, value) can be done without reallocation

◆ size()

int mrmeshpy.ObjMap.size ( self)

◆ swap()

None mrmeshpy.ObjMap.swap ( self,
ObjMap b )

◆ vec_() [1/2]

std_vector_Id_ObjTag mrmeshpy.ObjMap.vec_ ( self)
the user can directly manipulate the vector, anyway she cannot break anything

◆ vec_() [2/2]

None mrmeshpy.ObjMap.vec_ ( self,
std_vector_Id_ObjTag arg1 )

Member Data Documentation

◆ _offsetof_vec_

typing mrmeshpy.ObjMap._offsetof_vec_ = 0
staticprotected

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