MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.VertColors Class Reference
Inheritance diagram for meshlib.VertColors:

Public Member Functions

 VertColors (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VertColors ()
 VertColors (meshlib.VertColors _other)
 VertColors (long size)
 VertColors (long size, meshlib.Color val)
meshlib.VertColors assignFromAnother (meshlib.VertColors _other)
void assign (long count, meshlib.Color val)
boolean opEqual (meshlib.VertColors b)
boolean opNotEqual (meshlib.VertColors b)
void clear ()
boolean empty ()
long size ()
long max_size ()
void resize (long newSize)
void resize (long newSize, meshlib.Color t)
void resizeNoInit (long targetSize, meshlib.ReserveMode mode)
long capacity ()
void reserve (long capacity)
void shrink_to_fit ()
meshlib.Color index (meshlib.VertId i)
meshlib.Color index_mut (meshlib.VertId i)
void resizeWithReserve (long newSize)
void resizeWithReserve (long newSize, meshlib.Color value)
void autoResizeSet (meshlib.VertId pos, long len, meshlib.Color val)
void autoResizeSet (meshlib.VertId i, meshlib.Color val)
meshlib.Color autoResizeAt (meshlib.VertId i)
void push_back_const_MR_Color_ref (meshlib.Color t)
void push_back_MR_Color_rvalue_ref (meshlib.Color t)
void pop_back ()
meshlib.Color front ()
meshlib.Color front_mut ()
meshlib.Color back ()
meshlib.Color back_mut ()
meshlib.VertId beginId ()
meshlib.VertId backId ()
meshlib.VertId endId ()
meshlib.Color data_mut ()
meshlib.Color data ()
void swap (meshlib.VertColors b)
long heapBytes ()
meshlib.std_vector_MR_Color_MR_Allocator_MR_Color vec ()
void setVec (meshlib.std_vector_MR_Color_MR_Allocator_MR_Color value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Vector<T> is indexed by size_t Generated from class MR::VertColors.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ VertColors() [1/5]

meshlib.VertColors.VertColors ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ VertColors() [2/5]

meshlib.VertColors.VertColors ( )

creates empty vector

Calls MR_VertColors_DefaultConstruct().

◆ VertColors() [3/5]

meshlib.VertColors.VertColors ( meshlib.VertColors _other)

Generated from constructor MR::VertColors::VertColors. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_VertColors_ConstructFromAnother().

◆ VertColors() [4/5]

meshlib.VertColors.VertColors ( long size)

creates a vector with size elements with default value Generated from constructor MR::VertColors::VertColors. The reference to the parameter size might be preserved in the constructed object.

Calls MR_VertColors_Construct().

◆ VertColors() [5/5]

meshlib.VertColors.VertColors ( long size,
meshlib.Color val )

creates a vector with size elements with the given value Generated from constructor MR::VertColors::VertColors. The reference to the parameter size might be preserved in the constructed object. The reference to the parameter val might be preserved in the constructed object.

Calls MR_VertColors_Construct_fill().

Member Function Documentation

◆ assign()

void meshlib.VertColors.assign ( long count,
meshlib.Color val )

replaces the contents with count copies of val Generated from method MR::VertColors::assign. The reference to things referred to by the parameter val (if any) might be preserved in this object.

Calls MR_VertColors_assign().

◆ assignFromAnother()

meshlib.VertColors meshlib.VertColors.assignFromAnother ( meshlib.VertColors _other)

Generated from method MR::VertColors::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_VertColors_AssignFromAnother().

◆ autoResizeAt()

meshlib.Color meshlib.VertColors.autoResizeAt ( meshlib.VertId i)

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

Calls MR_VertColors_autoResizeAt().

◆ autoResizeSet() [1/2]

void meshlib.VertColors.autoResizeSet ( meshlib.VertId i,
meshlib.Color val )

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

Calls MR_VertColors_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.VertColors.autoResizeSet ( meshlib.VertId pos,
long len,
meshlib.Color 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::VertColors::autoResizeSet.

Calls MR_VertColors_autoResizeSet_3().

◆ back()

meshlib.Color meshlib.VertColors.back ( )

Generated from method MR::VertColors::back. The reference to this object might be preserved in the return value.

Calls MR_VertColors_back().

◆ back_mut()

meshlib.Color meshlib.VertColors.back_mut ( )

Generated from method MR::VertColors::back. The reference to this object might be preserved in the return value.

Calls MR_VertColors_back_mut().

◆ backId()

meshlib.VertId meshlib.VertColors.backId ( )

returns the identifier of the back() element Generated from method MR::VertColors::backId.

Calls MR_VertColors_backId().

◆ beginId()

meshlib.VertId meshlib.VertColors.beginId ( )

returns the identifier of the first element Generated from method MR::VertColors::beginId.

Calls MR_VertColors_beginId().

◆ capacity()

long meshlib.VertColors.capacity ( )

Generated from method MR::VertColors::capacity.

Calls MR_VertColors_capacity().

◆ clear()

void meshlib.VertColors.clear ( )

Generated from method MR::VertColors::clear.

Calls MR_VertColors_clear().

◆ data()

meshlib.Color meshlib.VertColors.data ( )

Generated from method MR::VertColors::data. The reference to this object might be preserved in the return value.

Calls MR_VertColors_data().

◆ data_mut()

meshlib.Color meshlib.VertColors.data_mut ( )

Generated from method MR::VertColors::data. The reference to this object might be preserved in the return value.

Calls MR_VertColors_data_mut().

◆ empty()

boolean meshlib.VertColors.empty ( )

Generated from method MR::VertColors::empty.

Calls MR_VertColors_empty().

◆ endId()

meshlib.VertId meshlib.VertColors.endId ( )

returns backId() + 1 Generated from method MR::VertColors::endId.

Calls MR_VertColors_endId().

◆ front()

meshlib.Color meshlib.VertColors.front ( )

Generated from method MR::VertColors::front. The reference to this object might be preserved in the return value.

Calls MR_VertColors_front().

◆ front_mut()

meshlib.Color meshlib.VertColors.front_mut ( )

Generated from method MR::VertColors::front. The reference to this object might be preserved in the return value.

Calls MR_VertColors_front_mut().

◆ heapBytes()

long meshlib.VertColors.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::VertColors::heapBytes.

Calls MR_VertColors_heapBytes().

◆ index()

meshlib.Color meshlib.VertColors.index ( meshlib.VertId i)

Generated from method MR::VertColors::operator[]. The reference to this object might be preserved in the return value.

Calls MR_VertColors_index().

◆ index_mut()

meshlib.Color meshlib.VertColors.index_mut ( meshlib.VertId i)

Generated from method MR::VertColors::operator[]. The reference to this object might be preserved in the return value.

Calls MR_VertColors_index_mut().

◆ max_size()

long meshlib.VertColors.max_size ( )

Generated from method MR::VertColors::max_size.

Calls MR_VertColors_max_size().

◆ opEqual()

boolean meshlib.VertColors.opEqual ( meshlib.VertColors b)

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

Calls MR_equal_MR_VertColors().

◆ opNotEqual()

boolean meshlib.VertColors.opNotEqual ( meshlib.VertColors b)

Generated from method MR::VertColors::operator!=.

Calls MR_not_equal_MR_VertColors().

◆ pop_back()

void meshlib.VertColors.pop_back ( )

Generated from method MR::VertColors::pop_back.

Calls MR_VertColors_pop_back().

◆ push_back_const_MR_Color_ref()

void meshlib.VertColors.push_back_const_MR_Color_ref ( meshlib.Color t)

Generated from method MR::VertColors::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_VertColors_push_back_const_MR_Color_ref().

◆ push_back_MR_Color_rvalue_ref()

void meshlib.VertColors.push_back_MR_Color_rvalue_ref ( meshlib.Color t)

Generated from method MR::VertColors::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_VertColors_push_back_MR_Color_rvalue_ref().

◆ reserve()

void meshlib.VertColors.reserve ( long capacity)

Generated from method MR::VertColors::reserve.

Calls MR_VertColors_reserve().

◆ resize() [1/2]

void meshlib.VertColors.resize ( long newSize)

Generated from method MR::VertColors::resize.

Calls MR_VertColors_resize_1().

◆ resize() [2/2]

void meshlib.VertColors.resize ( long newSize,
meshlib.Color t )

Generated from method MR::VertColors::resize.

Calls MR_VertColors_resize_2().

◆ resizeNoInit()

void meshlib.VertColors.resizeNoInit ( long targetSize,
meshlib.ReserveMode mode )

resizes the vector skipping initialization of its elements (more precisely initializing them using ( noInit ) constructor ) Generated from method MR::VertColors::resizeNoInit.

Calls MR_VertColors_resizeNoInit().

◆ resizeWithReserve() [1/2]

void meshlib.VertColors.resizeWithReserve ( long newSize)

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::VertColors::resizeWithReserve.

Calls MR_VertColors_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.VertColors.resizeWithReserve ( long newSize,
meshlib.Color value )

same as resize(newSize, value), which already grows the capacity geometrically Generated from method MR::VertColors::resizeWithReserve.

Calls MR_VertColors_resizeWithReserve_2().

◆ setVec()

void meshlib.VertColors.setVec ( meshlib.std_vector_MR_Color_MR_Allocator_MR_Color value)

The user can directly manipulate the vector, they can't break anything anyway. Modifies a member variable of class MR::VertColors named vec. The reference to the parameter value might be preserved in this object in element vec.

Calls MR_VertColors_Set_vec().

◆ shrink_to_fit()

void meshlib.VertColors.shrink_to_fit ( )

Generated from method MR::VertColors::shrink_to_fit.

Calls MR_VertColors_shrink_to_fit().

◆ size()

long meshlib.VertColors.size ( )

Generated from method MR::VertColors::size.

Calls MR_VertColors_size().

◆ swap()

void meshlib.VertColors.swap ( meshlib.VertColors b)

Generated from method MR::VertColors::swap.

Calls MR_VertColors_swap().

◆ vec()

The user can directly manipulate the vector, they can't break anything anyway. Returns a pointer to a member variable of class MR::VertColors named vec. The reference to this object might be preserved as the return value.

Calls MR_VertColors_Get_vec().


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