Kanzi 3.9.10
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.
 
 MemoryStrategy (MemoryStrategy enum_)
 Constructs a copy of a MemoryStrategy object.
 
int getValue ()
 Returns the integer value of the enumeration constant.
 
final int swigValue ()
 Returns the integer value of the enumeration constant.
 

Static Public Member Functions

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

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() [1/2]

MemoryStrategy ( int value)

Constructs a MemoryStrategy of an integer value.

Parameters
valueInteger value to convert to enumeration constant.

◆ MemoryStrategy() [2/2]

Constructs a copy of a MemoryStrategy object.

Parameters
enum_MemoryStrategy to be copy constructed.

Member Function Documentation

◆ getValue()

int getValue ( )

Returns the integer value of the enumeration constant.

Returns
Integer value.

Implements Enum.

◆ swigToEnum()

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.

◆ swigValue()

final int swigValue ( )

Returns the integer value of the enumeration constant.

Used internally by SWIG generated code.

Returns
Integer value.

◆ toEnum()

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.