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

Public Member Functions

 VertScalars (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VertScalars ()
 VertScalars (meshlib.VertScalars _other)
 VertScalars (long size)
 VertScalars (long size, float val)
meshlib.VertScalars assignFromAnother (meshlib.VertScalars _other)
void assign (long count, float val)
boolean opEqual (meshlib.VertScalars b)
boolean opNotEqual (meshlib.VertScalars b)
void clear ()
boolean empty ()
long size ()
long max_size ()
void resize (long newSize)
void resize (long newSize, float t)
long capacity ()
void reserve (long capacity)
void shrink_to_fit ()
float index (meshlib.VertId i)
java.lang.foreign.MemorySegment index_mut (meshlib.VertId i)
void resizeWithReserve (long newSize)
void resizeWithReserve (long newSize, float value)
void autoResizeSet (meshlib.VertId pos, long len, float val)
void autoResizeSet (meshlib.VertId i, float val)
java.lang.foreign.MemorySegment autoResizeAt (meshlib.VertId i)
void push_back_const_float_ref (float t)
void push_back_float_rvalue_ref (float t)
void pop_back ()
float front ()
java.lang.foreign.MemorySegment front_mut ()
float back ()
java.lang.foreign.MemorySegment back_mut ()
meshlib.VertId beginId ()
meshlib.VertId backId ()
meshlib.VertId endId ()
java.lang.foreign.MemorySegment data_mut ()
java.lang.Float data ()
void swap (meshlib.VertScalars b)
long heapBytes ()
meshlib.std_vector_float_MR_Allocator_float vec ()
void setVec (meshlib.std_vector_float_MR_Allocator_float 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::VertScalars.

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

Constructor & Destructor Documentation

◆ VertScalars() [1/5]

meshlib.VertScalars.VertScalars ( 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.

◆ VertScalars() [2/5]

meshlib.VertScalars.VertScalars ( )

creates empty vector

Calls MR_VertScalars_DefaultConstruct().

◆ VertScalars() [3/5]

meshlib.VertScalars.VertScalars ( meshlib.VertScalars _other)

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

Calls MR_VertScalars_ConstructFromAnother().

◆ VertScalars() [4/5]

meshlib.VertScalars.VertScalars ( long size)

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

Calls MR_VertScalars_Construct().

◆ VertScalars() [5/5]

meshlib.VertScalars.VertScalars ( long size,
float val )

creates a vector with size elements with the given value Generated from constructor MR::VertScalars::VertScalars. 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_VertScalars_Construct_fill().

Member Function Documentation

◆ assign()

void meshlib.VertScalars.assign ( long count,
float val )

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

Calls MR_VertScalars_assign().

◆ assignFromAnother()

meshlib.VertScalars meshlib.VertScalars.assignFromAnother ( meshlib.VertScalars _other)

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

Calls MR_VertScalars_AssignFromAnother().

◆ autoResizeAt()

java.lang.foreign.MemorySegment meshlib.VertScalars.autoResizeAt ( meshlib.VertId i)

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

Calls MR_VertScalars_autoResizeAt(). Some types are raw C types, see the C bindings for the details.

◆ autoResizeSet() [1/2]

void meshlib.VertScalars.autoResizeSet ( meshlib.VertId i,
float val )

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

Calls MR_VertScalars_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.VertScalars.autoResizeSet ( meshlib.VertId pos,
long 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 pos are also set to val (for faster implementation) Generated from method MR::VertScalars::autoResizeSet.

Calls MR_VertScalars_autoResizeSet_3().

◆ back()

float meshlib.VertScalars.back ( )

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

Calls MR_VertScalars_back().

◆ back_mut()

java.lang.foreign.MemorySegment meshlib.VertScalars.back_mut ( )

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

Calls MR_VertScalars_back_mut(). Some types are raw C types, see the C bindings for the details.

◆ backId()

meshlib.VertId meshlib.VertScalars.backId ( )

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

Calls MR_VertScalars_backId().

◆ beginId()

meshlib.VertId meshlib.VertScalars.beginId ( )

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

Calls MR_VertScalars_beginId().

◆ capacity()

long meshlib.VertScalars.capacity ( )

Generated from method MR::VertScalars::capacity.

Calls MR_VertScalars_capacity().

◆ clear()

void meshlib.VertScalars.clear ( )

Generated from method MR::VertScalars::clear.

Calls MR_VertScalars_clear().

◆ data()

java.lang.Float meshlib.VertScalars.data ( )

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

Calls MR_VertScalars_data().

◆ data_mut()

java.lang.foreign.MemorySegment meshlib.VertScalars.data_mut ( )

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

Calls MR_VertScalars_data_mut(). Some types are raw C types, see the C bindings for the details.

◆ empty()

boolean meshlib.VertScalars.empty ( )

Generated from method MR::VertScalars::empty.

Calls MR_VertScalars_empty().

◆ endId()

meshlib.VertId meshlib.VertScalars.endId ( )

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

Calls MR_VertScalars_endId().

◆ front()

float meshlib.VertScalars.front ( )

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

Calls MR_VertScalars_front().

◆ front_mut()

java.lang.foreign.MemorySegment meshlib.VertScalars.front_mut ( )

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

Calls MR_VertScalars_front_mut(). Some types are raw C types, see the C bindings for the details.

◆ heapBytes()

long meshlib.VertScalars.heapBytes ( )

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

Calls MR_VertScalars_heapBytes().

◆ index()

float meshlib.VertScalars.index ( meshlib.VertId i)

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

Calls MR_VertScalars_index().

◆ index_mut()

java.lang.foreign.MemorySegment meshlib.VertScalars.index_mut ( meshlib.VertId i)

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

Calls MR_VertScalars_index_mut(). Some types are raw C types, see the C bindings for the details.

◆ max_size()

long meshlib.VertScalars.max_size ( )

Generated from method MR::VertScalars::max_size.

Calls MR_VertScalars_max_size().

◆ opEqual()

boolean meshlib.VertScalars.opEqual ( meshlib.VertScalars b)

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

Calls MR_equal_MR_VertScalars().

◆ opNotEqual()

boolean meshlib.VertScalars.opNotEqual ( meshlib.VertScalars b)

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

Calls MR_not_equal_MR_VertScalars().

◆ pop_back()

void meshlib.VertScalars.pop_back ( )

Generated from method MR::VertScalars::pop_back.

Calls MR_VertScalars_pop_back().

◆ push_back_const_float_ref()

void meshlib.VertScalars.push_back_const_float_ref ( float t)

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

Calls MR_VertScalars_push_back_const_float_ref().

◆ push_back_float_rvalue_ref()

void meshlib.VertScalars.push_back_float_rvalue_ref ( float t)

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

Calls MR_VertScalars_push_back_float_rvalue_ref().

◆ reserve()

void meshlib.VertScalars.reserve ( long capacity)

Generated from method MR::VertScalars::reserve.

Calls MR_VertScalars_reserve().

◆ resize() [1/2]

void meshlib.VertScalars.resize ( long newSize)

Generated from method MR::VertScalars::resize.

Calls MR_VertScalars_resize_1().

◆ resize() [2/2]

void meshlib.VertScalars.resize ( long newSize,
float t )

Generated from method MR::VertScalars::resize.

Calls MR_VertScalars_resize_2().

◆ resizeWithReserve() [1/2]

void meshlib.VertScalars.resizeWithReserve ( long newSize)

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

Calls MR_VertScalars_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.VertScalars.resizeWithReserve ( long newSize,
float value )

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

Calls MR_VertScalars_resizeWithReserve_2().

◆ setVec()

void meshlib.VertScalars.setVec ( meshlib.std_vector_float_MR_Allocator_float value)

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

Calls MR_VertScalars_Set_vec().

◆ shrink_to_fit()

void meshlib.VertScalars.shrink_to_fit ( )

Generated from method MR::VertScalars::shrink_to_fit.

Calls MR_VertScalars_shrink_to_fit().

◆ size()

long meshlib.VertScalars.size ( )

Generated from method MR::VertScalars::size.

Calls MR_VertScalars_size().

◆ swap()

void meshlib.VertScalars.swap ( meshlib.VertScalars b)

Generated from method MR::VertScalars::swap.

Calls MR_VertScalars_swap().

◆ vec()

meshlib.std_vector_float_MR_Allocator_float meshlib.VertScalars.vec ( )

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

Calls MR_VertScalars_Get_vec().


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