priority_queue_base_dispatch.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef PB_DS_PRIORITY_QUEUE_BASE_DS_DISPATCHER_HPP
00042 #define PB_DS_PRIORITY_QUEUE_BASE_DS_DISPATCHER_HPP
00043
00044 #include <ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp>
00045 #include <ext/pb_ds/detail/binomial_heap_/binomial_heap_.hpp>
00046 #include <ext/pb_ds/detail/rc_binomial_heap_/rc_binomial_heap_.hpp>
00047 #include <ext/pb_ds/detail/binary_heap_/binary_heap_.hpp>
00048 #include <ext/pb_ds/detail/thin_heap_/thin_heap_.hpp>
00049
00050 namespace __gnu_pbds
00051 {
00052 namespace detail
00053 {
00054
00055 template<typename Value_Type, typename Cmp_Fn, typename Tag, typename Allocator>
00056 struct priority_queue_base_dispatch;
00057
00058 template<typename Value_Type, typename Cmp_Fn, typename Allocator>
00059 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, pairing_heap_tag, Allocator>
00060 {
00061 typedef pairing_heap_< Value_Type, Cmp_Fn, Allocator> type;
00062 };
00063
00064 template<typename Value_Type, typename Cmp_Fn, typename Allocator>
00065 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, binomial_heap_tag, Allocator>
00066 {
00067 typedef binomial_heap_< Value_Type, Cmp_Fn, Allocator> type;
00068 };
00069
00070 template<typename Value_Type, typename Cmp_Fn, typename Allocator>
00071 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, rc_binomial_heap_tag, Allocator>
00072 {
00073 typedef rc_binomial_heap_< Value_Type, Cmp_Fn, Allocator> type;
00074 };
00075
00076 template<typename Value_Type, typename Cmp_Fn, typename Allocator>
00077 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, binary_heap_tag, Allocator>
00078 {
00079 typedef binary_heap_< Value_Type, Cmp_Fn, Allocator> type;
00080 };
00081
00082 template<typename Value_Type, typename Cmp_Fn, typename Allocator>
00083 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, thin_heap_tag, Allocator>
00084 {
00085 typedef thin_heap_< Value_Type, Cmp_Fn, Allocator> type;
00086 };
00087
00088 }
00089 }
00090
00091 #endif // #ifndef PB_DS_PRIORITY_QUEUE_BASE_DS_DISPATCHER_HPP