Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/pmb/node_modules_old/js-sdsl/dist/esm/container/OtherContainer/ drwxrwxrwx | |
| Viewing file: Select action/file-type: var __extends = this && this.t || function() {
var extendStatics = function(e, t) {
extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var n in t) if (Object.prototype.hasOwnProperty.call(t, n)) e[n] = t[n];
};
return extendStatics(e, t);
};
return function(e, t) {
if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
extendStatics(e, t);
function __() {
this.constructor = e;
}
e.prototype = t === null ? Object.create(t) : (__.prototype = t.prototype, new __);
};
}();
import Deque from "../SequentialContainer/Deque";
import { Base } from "../ContainerBase";
var Queue = function(e) {
__extends(Queue, e);
function Queue(t) {
if (t === void 0) {
t = [];
}
var n = e.call(this) || this;
n.q = new Deque(t);
n.o = n.q.size();
return n;
}
Queue.prototype.clear = function() {
this.q.clear();
this.o = 0;
};
Queue.prototype.push = function(e) {
this.q.pushBack(e);
this.o += 1;
};
Queue.prototype.pop = function() {
this.q.popFront();
if (this.o) this.o -= 1;
};
Queue.prototype.front = function() {
return this.q.front();
};
return Queue;
}(Base);
export default Queue; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]-- |