Why TList
has no any API? For what it can be used instead TQueue
? I did not found any usages of this (except of Lightmass.h).
Also I see there is TListThreadSafe
that I found in UnrealEd/Lightmass.h
. It’s TQueue duplicate?
Thanks!
Why TList
has no any API? For what it can be used instead TQueue
? I did not found any usages of this (except of Lightmass.h).
Also I see there is TListThreadSafe
that I found in UnrealEd/Lightmass.h
. It’s TQueue duplicate?
Thanks!
What do you mean with “no API”? Do you mean this? TList | Unreal Engine Documentation
The question makes no sense to me, sorry.
You might want to have look at this: Containers | Unreal Engine Documentation
I mean the class TList
is empty and has only constructor while TQueue
has much functionality. And both are simple linked lists. So why there is an TList
at all?
I think the TList
probably is redundant. I just want to get that clarified. It’s declared in Containers
section and not used almost in UE4 code. Maybe this usage can be replaced with TQueue
and TList
will be unused completely (so, TList
can be removed from code)… And the last container class ( TListThreadSafe
) not found in Containers
page… I think this is just very similar to TQueue
. So it can ve replaced with TQueue
too…
It’s just comprehension UE4 symbols.
They are completely different containers.
One is a list.
The other is a queue.
Before you talk about removing or replacing containers, please consider reading about them.
Take a look at this code: //// Simple single-linked list template.//template <class ElementType> cla - Pastebin.com
There are just no code. Just single-linked
list.
And take a look at Queue.h private section:
Just similar single linked list (with Tail
pointer).
So, why single linked lists both are available, if queue is most self-sufficient? Do you watch code?
The container names are conditional, as I think. “List” is generic name, while “queue” name speaks for itself.