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

Public Member Functions

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

Static Public Member Functions

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

Static Protected Attributes

typing _offsetof_vec_ = 0
 

Detailed Description

Generated from:  MR::Vector<float, MR::VoxelId>
Aliases:  Vector_float_Id_VoxelTag, Vector_float_Id_VoxelTag, Vector_float_Id_VoxelTag


 \\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.Vector_float_VoxelId.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/5]

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

◆ __init__() [3/5]

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

◆ __init__() [4/5]

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

◆ __init__() [5/5]

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

Member Function Documentation

◆ __eq__()

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

◆ __getitem__() [1/2]

float mrmeshpy.Vector_float_VoxelId.__getitem__ ( self,
VoxelId i )

◆ __getitem__() [2/2]

float mrmeshpy.Vector_float_VoxelId.__getitem__ ( self,
VoxelId i )

◆ __iter__()

typing.Iterator[float] mrmeshpy.Vector_float_VoxelId.__iter__ ( self)

◆ __ne__()

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

◆ __setitem__()

None mrmeshpy.Vector_float_VoxelId.__setitem__ ( self,
VoxelId arg0,
float arg1 )

◆ autoResizeAt()

float mrmeshpy.Vector_float_VoxelId.autoResizeAt ( self,
VoxelId i )
this accessor automatically adjusts the size of the vector

◆ autoResizeSet() [1/2]

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

◆ autoResizeSet() [2/2]

None mrmeshpy.Vector_float_VoxelId.autoResizeSet ( self,
VoxelId pos,
int len,
float 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]

float mrmeshpy.Vector_float_VoxelId.back ( self)

◆ back() [2/2]

float mrmeshpy.Vector_float_VoxelId.back ( self)

◆ backId()

VoxelId mrmeshpy.Vector_float_VoxelId.backId ( self)
returns the identifier of the back() element

◆ beginId()

VoxelId mrmeshpy.Vector_float_VoxelId.beginId ( self)
returns the identifier of the first element

◆ capacity()

int mrmeshpy.Vector_float_VoxelId.capacity ( self)

◆ clear()

None mrmeshpy.Vector_float_VoxelId.clear ( self)

◆ data() [1/2]

float mrmeshpy.Vector_float_VoxelId.data ( self)

◆ data() [2/2]

float mrmeshpy.Vector_float_VoxelId.data ( self)

◆ emplace_back()

float mrmeshpy.Vector_float_VoxelId.emplace_back ( self)

◆ empty()

bool mrmeshpy.Vector_float_VoxelId.empty ( self)

◆ endId()

VoxelId mrmeshpy.Vector_float_VoxelId.endId ( self)
returns backId() + 1

◆ front() [1/2]

float mrmeshpy.Vector_float_VoxelId.front ( self)

◆ front() [2/2]

float mrmeshpy.Vector_float_VoxelId.front ( self)

◆ heapBytes()

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

◆ operator() [1/2]

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

◆ operator() [2/2]

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

◆ pop_back()

None mrmeshpy.Vector_float_VoxelId.pop_back ( self)

◆ push_back() [1/2]

None mrmeshpy.Vector_float_VoxelId.push_back ( self,
float t )

◆ push_back() [2/2]

None mrmeshpy.Vector_float_VoxelId.push_back ( self,
float t )

◆ reserve()

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

◆ resize() [1/2]

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

◆ resize() [2/2]

None mrmeshpy.Vector_float_VoxelId.resize ( self,
int newSize,
float t )

◆ resizeWithReserve() [1/2]

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

◆ resizeWithReserve() [2/2]

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

◆ size()

int mrmeshpy.Vector_float_VoxelId.size ( self)

◆ swap()

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

◆ vec_() [1/2]

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

◆ vec_() [2/2]

None mrmeshpy.Vector_float_VoxelId.vec_ ( self,
std_vector_float arg1 )

Member Data Documentation

◆ _offsetof_vec_

typing mrmeshpy.Vector_float_VoxelId._offsetof_vec_ = 0
staticprotected

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