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) |
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.
| meshlib.ReserveMode.ReserveMode | ( | int | value | ) |
| boolean meshlib.ReserveMode.equals | ( | java.lang.Object | other | ) |
| int meshlib.ReserveMode.hashCode | ( | ) |
|
static |
Returns the named constant with this value, or a new instance if there's none.
| java.lang.String meshlib.ReserveMode.toString | ( | ) |
|
static |
< exactly the target size: for a vector resized once
|
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
| final int meshlib.ReserveMode.value |