PHP 클래스 WeakMap, ClearSky

상속: implements Countable, implements ArrayAccess, implements Iterator
파일 보기 프로젝트 열기: robske110/ClearSky

공개 메소드들

메소드 설명
__construct ( ) Constructs a new map
count ( ) : integer Counts the number of live entries in the map
current ( ) : mixed Returns the current value being iterated on in the map.
key ( ) : mixed Returns the object serving as key in the map, at the current iterating position.
next ( ) Advances to the next map element.
offsetExists ( object $object ) : boolean Checks whether the passed object is referenced in the map.
offsetGet ( object $object ) : mixed Returns the value pointed to by a certain object.
offsetSet ( object $object, mixed $value ) Updates the map with a new key-value pair.
offsetUnset ( object $object ) Removes an entry from the map.
rewind ( ) Rewinds the iterator to the beginning of the map.
valid ( ) : boolean Returns whether the iterator is still on a valid map element.

메소드 상세

__construct() 공개 메소드

Constructs a new map
public __construct ( )

count() 공개 메소드

Counts the number of live entries in the map
public count ( ) : integer
리턴 integer

current() 공개 메소드

Returns the current value being iterated on in the map.
public current ( ) : mixed
리턴 mixed

key() 공개 메소드

Returns the object serving as key in the map, at the current iterating position.
public key ( ) : mixed
리턴 mixed

next() 공개 메소드

Advances to the next map element.
public next ( )

offsetExists() 공개 메소드

Checks whether the passed object is referenced in the map.
public offsetExists ( object $object ) : boolean
$object object
리턴 boolean

offsetGet() 공개 메소드

Returns the value pointed to by a certain object.
public offsetGet ( object $object ) : mixed
$object object
리턴 mixed

offsetSet() 공개 메소드

If the key already existed in the map, the old value is replaced with the new.
public offsetSet ( object $object, mixed $value )
$object object
$value mixed

offsetUnset() 공개 메소드

Removes an entry from the map.
public offsetUnset ( object $object )
$object object

rewind() 공개 메소드

Rewinds the iterator to the beginning of the map.
public rewind ( )

valid() 공개 메소드

Returns whether the iterator is still on a valid map element.
public valid ( ) : boolean
리턴 boolean