mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
FIFO:HasUniqueID(UniqueID)
This commit is contained in:
parent
03c2943545
commit
c56763b68f
@ -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