full: Test for a Full/Empty Queue Object

View source: R/QueueClass.R

fullR Documentation

Test for a Full/Empty Queue Object

Description

full tests whether a Queue object is full, that is whether the number of frames it contains is equal to its capacity. empty tests whether a Queue object is empty, that is whether it contains no frames.

Usage

full(x)

empty(x)

Arguments

x

A Queue object.

Value

A logical.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Queue, queue, capacity

Examples

balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
buf <- queue(balloon)
full(buf)


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.