MeshLib Java Docs
Loading...
Searching...
No Matches

Public Member Functions

 ReserveMode (int value)
boolean equals (java.lang.Object other)
int hashCode ()
java.lang.String toString ()

Static Public Member Functions

static ReserveMode of (int value)

Public Attributes

final int value

Static Public Attributes

static final ReserveMode Exact = new ReserveMode(0)
static final ReserveMode Grow = new ReserveMode(1)

Detailed Description

how resizeNoInit reserves the memory when the capacity is short

The constants are static fields of this class. value holds the underlying value, so this can also hold values that aren't named constants.

Constructor & Destructor Documentation

◆ ReserveMode()

meshlib.ReserveMode.ReserveMode ( int value)

Member Function Documentation

◆ equals()

boolean meshlib.ReserveMode.equals ( java.lang.Object other)

◆ hashCode()

int meshlib.ReserveMode.hashCode ( )

◆ of()

ReserveMode meshlib.ReserveMode.of ( int value)
static

Returns the named constant with this value, or a new instance if there's none.

◆ toString()

java.lang.String meshlib.ReserveMode.toString ( )

Member Data Documentation

◆ Exact

final ReserveMode meshlib.ReserveMode.Exact = new ReserveMode(0)
static

< exactly the target size: for a vector resized once

◆ Grow

final ReserveMode meshlib.ReserveMode.Grow = new ReserveMode(1)
static

< the vector grows the capacity geometrically by its own policy, as push_back does, so repeated small growths copy the elements only O(log) times

◆ value

final int meshlib.ReserveMode.value

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