retdec
|
Sorts structured types according to their names and dependencies. More...
#include <struct_types_sorter.h>
Static Public Member Functions | |
static StructTypeVector | sort (const StructTypeSet &types) |
Sorts the given set of structured types according to their names and dependencies. More... | |
Additional Inherited Members | |
![]() | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable ()=default | |
~NonCopyable ()=default | |
Sorts structured types according to their names and dependencies.
This class implements the "static helper" (or "library") design pattern (it has just static functions and no instances can be created).
|
static |
Sorts the given set of structured types according to their names and dependencies.
For example, if types contains the following three structures
then they are ordered in the following way
This is the order in which they have to be defined.
Before the structures are compared based on dependencies, they are sorted by their names. This results into a more deterministic output.