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

Public Member Functions

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

Protected Member Functions

VertId _Subscript (self, VertId i)
 
VertId _Subscript (self, VertId i)
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::VertMap


 \\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)
 \\ingroup BasicGroup

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.VertMap.__init__ ( self)

◆ __init__() [2/5]

None mrmeshpy.VertMap.__init__ ( self,
int size )

◆ __init__() [3/5]

None mrmeshpy.VertMap.__init__ ( self,
int size,
VertId val )

◆ __init__() [4/5]

None mrmeshpy.VertMap.__init__ ( self,
std_vector_Id_VertTag vec )

◆ __init__() [5/5]

None mrmeshpy.VertMap.__init__ ( self,
VertMap arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __eq__()

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

◆ __iter__()

typing.Iterator[VertId] mrmeshpy.VertMap.__iter__ ( self)

◆ __ne__()

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

◆ _pybind11_conduit_v1_()

mrmeshpy.VertMap._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

◆ _Subscript() [1/2]

VertId mrmeshpy.VertMap._Subscript ( self,
VertId i )
protected

◆ _Subscript() [2/2]

VertId mrmeshpy.VertMap._Subscript ( self,
VertId i )
protected

◆ autoResizeAt()

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

◆ autoResizeSet() [1/2]

None mrmeshpy.VertMap.autoResizeSet ( self,
VertId i,
VertId val )

◆ autoResizeSet() [2/2]

None mrmeshpy.VertMap.autoResizeSet ( self,
VertId pos,
int len,
VertId val )
sets elements [pos, pos+len) to given value, adjusting the size of the vector to include new elements

◆ back() [1/2]

VertId mrmeshpy.VertMap.back ( self)

◆ back() [2/2]

VertId mrmeshpy.VertMap.back ( self)

◆ backId()

VertId mrmeshpy.VertMap.backId ( self)
returns the identifier of the back() element

◆ beginId()

VertId mrmeshpy.VertMap.beginId ( self)
returns the identifier of the first element

◆ capacity()

int mrmeshpy.VertMap.capacity ( self)

◆ clear()

None mrmeshpy.VertMap.clear ( self)

◆ data() [1/2]

VertId mrmeshpy.VertMap.data ( self)

◆ data() [2/2]

VertId mrmeshpy.VertMap.data ( self)

◆ empty()

bool mrmeshpy.VertMap.empty ( self)

◆ endId()

VertId mrmeshpy.VertMap.endId ( self)
returns backId() + 1

◆ front() [1/2]

VertId mrmeshpy.VertMap.front ( self)

◆ front() [2/2]

VertId mrmeshpy.VertMap.front ( self)

◆ heapBytes()

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

◆ pop_back()

None mrmeshpy.VertMap.pop_back ( self)

◆ push_back() [1/2]

None mrmeshpy.VertMap.push_back ( self,
VertId t )

◆ push_back() [2/2]

None mrmeshpy.VertMap.push_back ( self,
VertId t )

◆ reserve()

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

◆ resize() [1/2]

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

◆ resize() [2/2]

None mrmeshpy.VertMap.resize ( self,
int newSize,
VertId t )

◆ resizeNoInit()

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

◆ resizeWithReserve() [1/2]

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

◆ resizeWithReserve() [2/2]

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

◆ size()

int mrmeshpy.VertMap.size ( self)

◆ swap()

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

◆ vec_() [1/2]

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

◆ vec_() [2/2]

None mrmeshpy.VertMap.vec_ ( self,
std_vector_Id_VertTag arg1 )

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