x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

TList, TQueue, TListThreadSafe issues

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!

Product Version: UE 4.18
Tags:
more ▼

asked Nov 29 '17 at 11:18 AM in C++ Programming

avatar image

broly
559 44 63 91

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

more ▼

answered Nov 30 '17 at 06:53 PM

avatar image

BugSwat
200 9 13 19

avatar image broly Nov 30 '17 at 09:49 PM

Take a look at this code: https://pastebin.com/ZxGSB9t0 There are just no code. Just single-linked list.

And take a look at Queue.h private section: https://pastebin.com/QTGGLkD5

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

What do you mean with "no API"? Do you mean this? https://docs.unrealengine.com/latest/INT/API/Runtime/Core/Containers/TList/index.html

The question makes no sense to me, sorry.

You might want to have look at this: https://docs.unrealengine.com/latest/INT/API/Runtime/Core/Containers/index.html

more ▼

answered Nov 29 '17 at 11:27 AM

avatar image

BugSwat
200 9 13 19

avatar image broly Nov 30 '17 at 03:46 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question