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

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ Dipoles() [1/5]

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

◆ Dipoles() [2/5]

meshlib.Dipoles.Dipoles ( )

creates empty vector

Calls MR_Dipoles_DefaultConstruct().

◆ Dipoles() [3/5]

meshlib.Dipoles.Dipoles ( meshlib.Dipoles _other)

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

Calls MR_Dipoles_ConstructFromAnother().

◆ Dipoles() [4/5]

meshlib.Dipoles.Dipoles ( long size)

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

Calls MR_Dipoles_Construct().

◆ Dipoles() [5/5]

meshlib.Dipoles.Dipoles ( long size,
meshlib.Dipole val )

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

Member Function Documentation

◆ assign()

void meshlib.Dipoles.assign ( long count,
meshlib.Dipole val )

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

Calls MR_Dipoles_assign().

◆ assignFromAnother()

meshlib.Dipoles meshlib.Dipoles.assignFromAnother ( meshlib.Dipoles _other)

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

Calls MR_Dipoles_AssignFromAnother().

◆ autoResizeAt()

meshlib.Dipole meshlib.Dipoles.autoResizeAt ( meshlib.NodeId i)

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

Calls MR_Dipoles_autoResizeAt().

◆ autoResizeSet() [1/2]

void meshlib.Dipoles.autoResizeSet ( meshlib.NodeId i,
meshlib.Dipole val )

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

Calls MR_Dipoles_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.Dipoles.autoResizeSet ( meshlib.NodeId pos,
long len,
meshlib.Dipole 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::Dipoles::autoResizeSet.

Calls MR_Dipoles_autoResizeSet_3().

◆ back()

meshlib.Dipole meshlib.Dipoles.back ( )

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

Calls MR_Dipoles_back().

◆ back_mut()

meshlib.Dipole meshlib.Dipoles.back_mut ( )

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

Calls MR_Dipoles_back_mut().

◆ backId()

meshlib.NodeId meshlib.Dipoles.backId ( )

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

Calls MR_Dipoles_backId().

◆ beginId()

meshlib.NodeId meshlib.Dipoles.beginId ( )

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

Calls MR_Dipoles_beginId().

◆ capacity()

long meshlib.Dipoles.capacity ( )

Generated from method MR::Dipoles::capacity.

Calls MR_Dipoles_capacity().

◆ clear()

void meshlib.Dipoles.clear ( )

Generated from method MR::Dipoles::clear.

Calls MR_Dipoles_clear().

◆ data()

meshlib.Dipole meshlib.Dipoles.data ( )

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

Calls MR_Dipoles_data().

◆ data_mut()

meshlib.Dipole meshlib.Dipoles.data_mut ( )

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

Calls MR_Dipoles_data_mut().

◆ empty()

boolean meshlib.Dipoles.empty ( )

Generated from method MR::Dipoles::empty.

Calls MR_Dipoles_empty().

◆ endId()

meshlib.NodeId meshlib.Dipoles.endId ( )

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

Calls MR_Dipoles_endId().

◆ front()

meshlib.Dipole meshlib.Dipoles.front ( )

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

Calls MR_Dipoles_front().

◆ front_mut()

meshlib.Dipole meshlib.Dipoles.front_mut ( )

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

Calls MR_Dipoles_front_mut().

◆ heapBytes()

long meshlib.Dipoles.heapBytes ( )

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

Calls MR_Dipoles_heapBytes().

◆ index()

meshlib.Dipole meshlib.Dipoles.index ( meshlib.NodeId i)

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

Calls MR_Dipoles_index().

◆ index_mut()

meshlib.Dipole meshlib.Dipoles.index_mut ( meshlib.NodeId i)

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

Calls MR_Dipoles_index_mut().

◆ max_size()

long meshlib.Dipoles.max_size ( )

Generated from method MR::Dipoles::max_size.

Calls MR_Dipoles_max_size().

◆ pop_back()

void meshlib.Dipoles.pop_back ( )

Generated from method MR::Dipoles::pop_back.

Calls MR_Dipoles_pop_back().

◆ push_back_const_MR_Dipole_ref()

void meshlib.Dipoles.push_back_const_MR_Dipole_ref ( meshlib.Dipole t)

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

Calls MR_Dipoles_push_back_const_MR_Dipole_ref().

◆ push_back_MR_Dipole_rvalue_ref()

void meshlib.Dipoles.push_back_MR_Dipole_rvalue_ref ( meshlib.Dipole t)

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

Calls MR_Dipoles_push_back_MR_Dipole_rvalue_ref().

◆ reserve()

void meshlib.Dipoles.reserve ( long capacity)

Generated from method MR::Dipoles::reserve.

Calls MR_Dipoles_reserve().

◆ resize() [1/2]

void meshlib.Dipoles.resize ( long newSize)

Generated from method MR::Dipoles::resize.

Calls MR_Dipoles_resize_1().

◆ resize() [2/2]

void meshlib.Dipoles.resize ( long newSize,
meshlib.Dipole t )

Generated from method MR::Dipoles::resize.

Calls MR_Dipoles_resize_2().

◆ resizeWithReserve() [1/2]

void meshlib.Dipoles.resizeWithReserve ( long newSize)

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

Calls MR_Dipoles_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.Dipoles.resizeWithReserve ( long newSize,
meshlib.Dipole value )

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

Calls MR_Dipoles_resizeWithReserve_2().

◆ setVec()

void meshlib.Dipoles.setVec ( meshlib.std_vector_MR_Dipole_MR_Allocator_MR_Dipole value)

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

Calls MR_Dipoles_Set_vec().

◆ shrink_to_fit()

void meshlib.Dipoles.shrink_to_fit ( )

Generated from method MR::Dipoles::shrink_to_fit.

Calls MR_Dipoles_shrink_to_fit().

◆ size()

long meshlib.Dipoles.size ( )

Generated from method MR::Dipoles::size.

Calls MR_Dipoles_size().

◆ swap()

void meshlib.Dipoles.swap ( meshlib.Dipoles b)

Generated from method MR::Dipoles::swap.

Calls MR_Dipoles_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::Dipoles named vec. The reference to this object might be preserved as the return value.

Calls MR_Dipoles_Get_vec().


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