Photon .NET Client API 4.1.4.8

Classes | Public Member Functions | Properties | List of all members
ExitGames.Client.Photon.NonAllocDictionary< K, V > Class Template Reference

Replacement for Dictionary<K,V> which does not allocate memory during usage. More...

Classes

struct  KeyIterator
 
struct  PairIterator
 
struct  ValueIterator
 

Public Member Functions

 NonAllocDictionary (uint capacity=29)
 
bool ContainsKey (K key)
 
bool TryGetValue (K key, out V val)
 
void Set (K key, V val)
 
void Add (K key, V val)
 
bool Remove (K key)
 
PairIterator GetEnumerator ()
 
void Clear ()
 

Properties

KeyIterator Keys [get]
 
ValueIterator Values [get]
 
int Count [get]
 
uint Capacity [get]
 
this[K key] [get, set]
 

Detailed Description

Replacement for Dictionary<K,V> which does not allocate memory during usage.

Template Parameters
KKey type.
VValue type.
Type Constraints
K :IEquatable<K> 

Constructor & Destructor Documentation

◆ NonAllocDictionary()

ExitGames.Client.Photon.NonAllocDictionary< K, V >.NonAllocDictionary ( uint  capacity = 29)
inline

Member Function Documentation

◆ Add()

void ExitGames.Client.Photon.NonAllocDictionary< K, V >.Add ( key,
val 
)
inline

◆ Clear()

void ExitGames.Client.Photon.NonAllocDictionary< K, V >.Clear ( )
inline

◆ ContainsKey()

bool ExitGames.Client.Photon.NonAllocDictionary< K, V >.ContainsKey ( key)
inline

◆ GetEnumerator()

PairIterator ExitGames.Client.Photon.NonAllocDictionary< K, V >.GetEnumerator ( )
inline

◆ Remove()

bool ExitGames.Client.Photon.NonAllocDictionary< K, V >.Remove ( key)
inline

◆ Set()

void ExitGames.Client.Photon.NonAllocDictionary< K, V >.Set ( key,
val 
)
inline

◆ TryGetValue()

bool ExitGames.Client.Photon.NonAllocDictionary< K, V >.TryGetValue ( key,
out V  val 
)
inline

Property Documentation

◆ Capacity

uint ExitGames.Client.Photon.NonAllocDictionary< K, V >.Capacity
get

◆ Count

◆ Keys

◆ this[K key]

V ExitGames.Client.Photon.NonAllocDictionary< K, V >.this[K key]
getset

◆ Values


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