PeriDyno 1.0.0
Loading...
Searching...
No Matches
PriorityQueue.h
Go to the documentation of this file.
1
16
17#ifndef PRIORITY_QUEUE_H
18#define PRIORITY_QUEUE_H
19
20#include "Heap.h"
21#include "functional_base.h"
23
24namespace dyno
25{
26
39
40 template <typename T, typename Container = dyno::RandomAccessContainer<T>, typename Compare = dyno::less<typename Container::value_type> >
42 {
43 public:
45 typedef Container container_type;
46 typedef Compare compare_type;
47
48 typedef typename Container::value_type value_type;
49 typedef typename Container::reference reference;
50 typedef typename Container::const_reference const_reference;
51 typedef typename Container::size_type size_type;
52 typedef typename Container::difference_type difference_type;
53
54 public:
56 private:
58
59 public:
60 DYN_FUNC priority_queue();
61 DYN_FUNC ~priority_queue();
62
63 DYN_FUNC explicit priority_queue(const container_type& c);
64
65 DYN_FUNC explicit priority_queue(const compare_type& compare);
66
67 DYN_FUNC explicit priority_queue(const container_type& c, const compare_type& compare);
68
69 DYN_FUNC inline bool empty() const;
70
71 DYN_FUNC inline bool isEmpty() const;
72
73 DYN_FUNC size_type size() const;
74
75 DYN_FUNC const_reference top() const;
76
77 DYN_FUNC void push(const value_type& value);
78
79 DYN_FUNC void pop();
80
81 DYN_FUNC void clear();
82
83 DYN_FUNC void change(size_type n);
84
85 DYN_FUNC void remove(size_type n);
86
87 }; //priority_queue
88
89
90}
91#include "PriorityQueue.inl"
92#endif
DYN_FUNC bool isEmpty() const
priority_queue< T, Container, Compare > this_type
DYN_FUNC void clear()
DYN_FUNC priority_queue(const compare_type &compare)
DYN_FUNC priority_queue(const container_type &c)
DYN_FUNC void change(size_type n)
DYN_FUNC void pop()
DYN_FUNC const_reference top() const
DYN_FUNC priority_queue(const container_type &c, const compare_type &compare)
DYN_FUNC size_type size() const
DYN_FUNC bool empty() const
DYN_FUNC void remove(size_type n)
DYN_FUNC void push(const value_type &value)
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25