BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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_
fc::priority::max
static priority max()
Definition: priority.hpp:16
fc
Definition: api.hpp:15
fc::priority::operator<
bool operator<(const priority &p) const
Definition: priority.hpp:13
fc::priority::value
int value
Definition: priority.hpp:19
fc::priority::_internal__priority_for_short_sleeps
static priority _internal__priority_for_short_sleeps()
Definition: priority.hpp:18
fc::priority::min
static priority min()
Definition: priority.hpp:17
fc::priority::priority
priority(int v=0)
Definition: priority.hpp:11
fc::priority::priority
priority(const priority &p)
Definition: priority.hpp:12
fc::priority
Definition: priority.hpp:9