GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
WeakMap Class Reference

Public Member Functions

 __construct ()
 
 count ()
 
 current ()
 
 key ()
 
 next ()
 
 offsetExists ($object)
 
 offsetGet ($object)
 
 offsetSet ($object, $value)
 
 offsetUnset ($object)
 
 rewind ()
 
 valid ()
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructs a new map

59  {
60  }

Member Function Documentation

◆ count()

count ( )

Counts the number of live entries in the map

Returns
int
67  {
68  }

◆ current()

current ( )

Returns the current value being iterated on in the map.

Returns
mixed
75  {
76  }

◆ key()

key ( )

Returns the object serving as key in the map, at the current iterating position.

Returns
mixed
83  {
84  }

◆ next()

next ( )

Advances to the next map element.

89  {
90  }

◆ offsetExists()

offsetExists (   $object)

Checks whether the passed object is referenced in the map.

Parameters
object$object
Returns
bool
99  {
100  }

◆ offsetGet()

offsetGet (   $object)

Returns the value pointed to by a certain object.

Parameters
object$object
Returns
mixed
109  {
110  }

◆ offsetSet()

offsetSet (   $object,
  $value 
)

Updates the map with a new key-value pair. If the key already existed in the map, the old value is replaced with the new.

Parameters
object$object
mixed$value
119  {
120  }

◆ offsetUnset()

offsetUnset (   $object)

Removes an entry from the map.

Parameters
object$object
127  {
128  }

◆ rewind()

rewind ( )

Rewinds the iterator to the beginning of the map.

133  {
134  }

◆ valid()

valid ( )

Returns whether the iterator is still on a valid map element.

Returns
bool
141  {
142  }

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