BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
priority.hpp
Go to the documentation of this file.
1 #ifndef _FC_PRIORITY_HPP_
2 #define _FC_PRIORITY_HPP_
3 
4 namespace fc {
9  class priority {
10  public:
11  explicit priority( int v = 0):value(v){}
12  priority( const priority& p ):value(p.value){}
13  bool operator < ( const priority& p )const {
14  return value < p.value;
15  }
16  static priority max() { return priority(10000); }
17  static priority min() { return priority(-10000); }
19  int value;
20  };
21 }
22 #endif // _FC_PRIORITY_HPP_
bool operator<(const priority &p) const
Definition: priority.hpp:13
static priority max()
Definition: priority.hpp:16
static priority min()
Definition: priority.hpp:17
Definition: api.hpp:15
priority(const priority &p)
Definition: priority.hpp:12
priority(int v=0)
Definition: priority.hpp:11
static priority _internal__priority_for_short_sleeps()
Definition: priority.hpp:18