Overview

Namespaces

  • BN
    • Collections
    • Compiler
      • Grammar
      • Parser
        • Operator
        • Token
      • Postfix
        • Operands
        • Operator
        • Token
      • Scanner
        • Converter
      • Token
  • Demo
  • None

Classes

  • LinearDataStructure
  • Queue
  • Stack

Exceptions

  • NullArgumentException
  • Overview
  • Namespace
  • Class
  • Tree

Class LinearDataStructure

Abstract parent class of all linear data structures (queue, stack or object array). It defines basic methods clear, isEmpty, size and protected array for data stored in data structure.

Direct known subclasses

BN\Collections\Queue, BN\Collections\Stack
Abstract
Namespace: BN\Collections
Located at lib/BN/Collections/LinearDataStructure.php
Methods summary
public
# clear( )

Removes all elements from structure. After clear size is equal to 0

Removes all elements from structure. After clear size is equal to 0

public boolean
# isEmpty( )

Returns

boolean
public integer
# size( )

Returns

integer
protected
# checkIfElementIsNotNull( mixed $element )
Properties summary
protected array $data array()
#
BN-PHP - Big Number data type for PHP API documentation generated by ApiGen 2.8.0