Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SCR_WeightedArray< Class TValue > Interface Template Reference
Inheritance diagram for SCR_WeightedArray< Class TValue >:
[legend]

Public Member Functions

int GetRandomValue (out TValue outValue)
 
int GetRandomValue (out TValue outValue, RandomGenerator randomGenerator)
 
int GetWeightedValue (out TValue outValue, float weightedValue)
 
float GetTotalWeight ()
 
TValue Get (int n)
 
void Set (int n, TValue value)
 
int Insert (TValue value, float weight)
 
void Remove (int i)
 
void RemoveOrdered (int i)
 
float GetWeight (int i)
 
TValue GetValue (int i)
 
int Count ()
 
bool IsEmpty ()
 
bool Contains (TValue value)
 
int Find (TValue value)
 
int CopyFrom (notnull SCR_WeightedArray< TValue > from)
 
void Clear ()
 
int ToArray (out notnull array< TValue > outArray)
 
void Debug ()
 

Protected Attributes

ref array< TValue > m_Values = new array<TValue>()
 
ref array< float > m_Weights = new array<float>()
 
float m_TotalWeight
 

Member Function Documentation

◆ Clear()

void SCR_WeightedArray< Class TValue >.Clear ( )

◆ Contains()

bool SCR_WeightedArray< Class TValue >.Contains ( TValue  value)

◆ CopyFrom()

int SCR_WeightedArray< Class TValue >.CopyFrom ( notnull SCR_WeightedArray< TValue >  from)

◆ Count()

int SCR_WeightedArray< Class TValue >.Count ( )

◆ Debug()

void SCR_WeightedArray< Class TValue >.Debug ( )

◆ Find()

int SCR_WeightedArray< Class TValue >.Find ( TValue  value)

◆ Get()

TValue SCR_WeightedArray< Class TValue >.Get ( int  n)

◆ GetRandomValue() [1/2]

int SCR_WeightedArray< Class TValue >.GetRandomValue ( out TValue  outValue)

◆ GetRandomValue() [2/2]

int SCR_WeightedArray< Class TValue >.GetRandomValue ( out TValue  outValue,
RandomGenerator  randomGenerator 
)

◆ GetTotalWeight()

float SCR_WeightedArray< Class TValue >.GetTotalWeight ( )

◆ GetValue()

TValue SCR_WeightedArray< Class TValue >.GetValue ( int  i)

◆ GetWeight()

float SCR_WeightedArray< Class TValue >.GetWeight ( int  i)

◆ GetWeightedValue()

int SCR_WeightedArray< Class TValue >.GetWeightedValue ( out TValue  outValue,
float  weightedValue 
)

◆ Insert()

int SCR_WeightedArray< Class TValue >.Insert ( TValue  value,
float  weight 
)

◆ IsEmpty()

bool SCR_WeightedArray< Class TValue >.IsEmpty ( )

◆ Remove()

void SCR_WeightedArray< Class TValue >.Remove ( int  i)

◆ RemoveOrdered()

void SCR_WeightedArray< Class TValue >.RemoveOrdered ( int  i)

◆ Set()

void SCR_WeightedArray< Class TValue >.Set ( int  n,
TValue  value 
)

◆ ToArray()

int SCR_WeightedArray< Class TValue >.ToArray ( out notnull array< TValue >  outArray)

Member Data Documentation

◆ m_TotalWeight

float SCR_WeightedArray< Class TValue >.m_TotalWeight
protected

◆ m_Values

ref array<TValue> SCR_WeightedArray< Class TValue >.m_Values = new array<TValue>()
protected

◆ m_Weights

ref array<float> SCR_WeightedArray< Class TValue >.m_Weights = new array<float>()
protected

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