mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Added LIFO/FIFO:HasUniqueID(UniqueID)
This commit is contained in:
parent
dd957237e2
commit
626b48c3d1
@ -2535,6 +2535,14 @@ function FIFO:GetPointerStack()
|
|||||||
return self.stackbypointer
|
return self.stackbypointer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- FIFO Check if a certain UniqeID exists
|
||||||
|
-- @param #FIFO self
|
||||||
|
-- @return #boolean exists
|
||||||
|
function FIFO:HasUniqueID(UniqueID)
|
||||||
|
self:T(self.lid.."HasUniqueID")
|
||||||
|
return self.stackbyid[UniqueID] and true or false
|
||||||
|
end
|
||||||
|
|
||||||
--- FIFO Get the data stack by UniqueID
|
--- FIFO Get the data stack by UniqueID
|
||||||
-- @param #FIFO self
|
-- @param #FIFO self
|
||||||
-- @return #table Table of #FIFO.IDEntry entries
|
-- @return #table Table of #FIFO.IDEntry entries
|
||||||
@ -2801,6 +2809,14 @@ function LIFO:GetIDStackSorted()
|
|||||||
return idstack
|
return idstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- LIFO Check if a certain UniqeID exists
|
||||||
|
-- @param #LIFO self
|
||||||
|
-- @return #boolean exists
|
||||||
|
function LIFO:HasUniqueID(UniqueID)
|
||||||
|
self:T(self.lid.."HasUniqueID")
|
||||||
|
return self.stackbyid[UniqueID] and true or false
|
||||||
|
end
|
||||||
|
|
||||||
--- LIFO Print stacks to dcs.log
|
--- LIFO Print stacks to dcs.log
|
||||||
-- @param #LIFO self
|
-- @param #LIFO self
|
||||||
-- @return #LIFO self
|
-- @return #LIFO self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user