Kanzi  3.9.9
Kanzi Engine Java API
MemoryStrategy Enum Reference

Legacy version of enum "kanzi.ResourceManager.MemoryStrategy". More...

Inheritance diagram for MemoryStrategy:
[legend]

Public Member Functions

 MemoryStrategy (int value)
 Constructs a MemoryStrategy of an integer value. More...
 
 MemoryStrategy (MemoryStrategy enum_)
 Constructs a copy of a MemoryStrategy object. More...
 
int getValue ()
 Returns the integer value of the enumeration constant. More...
 
final int swigValue ()
 Returns the integer value of the enumeration constant. More...
 

Static Public Member Functions

static MemoryStrategy swigToEnum (int swigValue)
 Converts an integer value to the matching enumeration constant. More...
 
static MemoryStrategy toEnum (int value)
 Converts an integer value to the matching enumeration constant. More...
 

Public Attributes

 KeepInMemory =(0)
 When a resource is no longer referenced, the resource manager keeps the resource in memory
until you call purge().
 
 OptimizeMemory =(1)
 When a resource is no longer referenced, the resource manager deletes the resource and frees
the (CPU and GPU) memory used by the resource.
 

Detailed Description

Legacy version of enum "kanzi.ResourceManager.MemoryStrategy".


Resource manager memory strategy.

Constructor & Destructor Documentation

MemoryStrategy ( int  value)

Constructs a MemoryStrategy of an integer value.

Parameters
valueInteger value to convert to enumeration constant.

Constructs a copy of a MemoryStrategy object.

Parameters
enum_MemoryStrategy to be copy constructed.

Member Function Documentation

int getValue ( )

Returns the integer value of the enumeration constant.

Returns
Integer value.

Implements Enum.

static MemoryStrategy swigToEnum ( int  swigValue)
static

Converts an integer value to the matching enumeration constant.

Used internally by SWIG generated code.

Parameters
swigValueInteger value to convert to enumeration constant.
Returns
Enumeration constant matching the integer value.
final int swigValue ( )

Returns the integer value of the enumeration constant.

Used internally by SWIG generated code.

Returns
Integer value.
static MemoryStrategy toEnum ( int  value)
static

Converts an integer value to the matching enumeration constant.

Parameters
valueInteger value to convert to enumeration constant.
Returns
Enumeration constant matching the integer value.