1#ifndef TPRIORITYVALUE_H
2#define TPRIORITYVALUE_H
90 fValue = std::move(rhs.fValue);
149 explicit operator T()
const {
return fValue; }
166 const T& at(
size_t n)
const {
return fValue.at(n); }
167 const T& back()
const {
return fValue.back(); }
168 typename std::vector<T>::const_iterator begin()
const {
return fValue.begin(); }
169 typename std::vector<T>::const_iterator cbegin()
const {
return fValue.cbegin(); }
170 typename std::vector<T>::const_iterator cend()
const {
return fValue.cend(); }
171 typename std::vector<T>::const_reverse_iterator crbegin()
const {
return fValue.crbegin(); }
172 typename std::vector<T>::const_reverse_iterator crend()
const {
return fValue.crend(); }
173 bool empty()
const {
return fValue.empty(); }
174 typename std::vector<T>::const_iterator end()
const {
return fValue.end(); }
175 const T& front()
const {
return fValue.front(); }
176 size_t max_size()
const {
return fValue.max_size(); }
178 const T& operator[](
size_t n)
const {
return fValue[n]; }
179 typename std::vector<T>::const_reverse_iterator rbegin()
const {
return fValue.rbegin(); }
180 typename std::vector<T>::const_reverse_iterator rend()
const {
return fValue.rend(); }
181 void reserve(
size_t n) {
fValue.reserve(n); }
182 void shrink_to_fit() {
fValue.shrink_to_fit(); }
183 size_t size()
const {
return fValue.size(); }
184 void resize(
size_t count) {
fValue.resize(count); }
185 void resize(
size_t count,
const T& value) {
fValue.resize(count, value); }
216 void Reset(
const std::vector<T>& val)
228 const std::vector<T>&
Value()
const {
return fValue; }
246 fValue = std::move(rhs.fValue);
259 return fValue != rhs.fValue;
263 return fValue < rhs.fValue;
267 return fValue > rhs.fValue;
271 return fValue <= rhs.fValue;
275 return fValue >= rhs.fValue;
279 bool operator==(
const std::vector<T>& rhs)
const
283 bool operator!=(
const std::vector<T>& rhs)
const
287 bool operator<(
const std::vector<T>& rhs)
const
291 bool operator>(
const std::vector<T>& rhs)
const
295 bool operator<=(
const std::vector<T>& rhs)
const
299 bool operator>=(
const std::vector<T>& rhs)
const
305 explicit operator std::vector<T>()
const {
return fValue; }
321 const char& at(
size_t pos)
const {
return fValue.at(pos); }
322 const char& back()
const {
return fValue.back(); }
323 std::string::const_iterator begin()
const {
return fValue.begin(); }
324 size_t capacity()
const {
return fValue.capacity(); }
325 std::string::const_iterator cbegin()
const {
return fValue.cbegin(); }
326 std::string::const_iterator cend()
const {
return fValue.cend(); }
327 int compare(
const std::string& str)
const noexcept {
return fValue.compare(str); }
328 int compare(
size_t pos,
size_t len,
const std::string& str)
const {
return fValue.compare(pos, len, str); }
329 int compare(
size_t pos,
size_t len,
const std::string& str,
size_t subpos,
size_t sublen)
const {
return fValue.compare(pos, len, str, subpos, sublen); }
330 int compare(
const char*
s)
const {
return fValue.compare(
s); }
331 int compare(
size_t pos,
size_t len,
const char*
s)
const {
return fValue.compare(pos, len,
s); }
332 int compare(
size_t pos,
size_t len,
const char*
s,
size_t n)
const {
return fValue.compare(pos, len,
s, n); }
333 size_t copy(
char*
s,
size_t len,
size_t pos = 0)
const {
return fValue.copy(
s, len, pos); }
334 std::string::const_reverse_iterator crbegin()
const {
return fValue.crbegin(); }
335 std::string::const_reverse_iterator crend()
const {
return fValue.crend(); }
336 const char* c_str() const noexcept {
return fValue.c_str(); }
337 const char* data() const noexcept {
return fValue.data(); }
338 bool empty()
const {
return fValue.empty(); }
339 std::string::const_iterator end()
const {
return fValue.end(); }
341 size_t find(
const std::string& str,
size_t pos = 0) const noexcept {
return fValue.find(str, pos); }
342 size_t find(
const char*
s,
size_t pos = 0)
const {
return fValue.find(
s, pos); }
343 size_t find(
const char*
s,
size_t pos,
size_t n)
const {
return fValue.find(
s, pos, n); }
344 size_t find(
char c,
size_t pos = 0) const noexcept {
return fValue.find(c, pos); }
345 size_t find_first_not_of(
const std::string& str,
size_t pos = 0) const noexcept {
return fValue.find_first_not_of(str, pos); }
346 size_t find_first_not_of(
const char*
s,
size_t pos = 0)
const {
return fValue.find_first_not_of(
s, pos); }
347 size_t find_first_not_of(
const char*
s,
size_t pos,
size_t n)
const {
return fValue.find_first_not_of(
s, pos, n); }
348 size_t find_first_not_of(
char c,
size_t pos = 0) const noexcept {
return fValue.find_first_not_of(c, pos); }
349 size_t find_first_of(
const std::string& str,
size_t pos = 0) const noexcept {
return fValue.find_first_of(str, pos); }
350 size_t find_first_of(
const char*
s,
size_t pos = 0)
const {
return fValue.find_first_of(
s, pos); }
351 size_t find_first_of(
const char*
s,
size_t pos,
size_t n)
const {
return fValue.find_first_of(
s, pos, n); }
352 size_t find_first_of(
char c,
size_t pos = 0) const noexcept {
return fValue.find_first_of(c, pos); }
353 size_t find_last_not_of(
const std::string& str,
size_t pos = std::string::npos)
const noexcept {
return fValue.find_last_not_of(str, pos); }
354 size_t find_last_not_of(
const char*
s,
size_t pos = std::string::npos)
const {
return fValue.find_last_not_of(
s, pos); }
355 size_t find_last_not_of(
const char*
s,
size_t pos,
size_t n)
const {
return fValue.find_last_not_of(
s, pos, n); }
356 size_t find_last_not_of(
char c,
size_t pos = std::string::npos)
const noexcept {
return fValue.find_last_not_of(c, pos); }
357 size_t find_last_of(
const std::string& str,
size_t pos = std::string::npos)
const noexcept {
return fValue.find_last_of(str, pos); }
358 size_t find_last_of(
const char*
s,
size_t pos = std::string::npos)
const {
return fValue.find_last_of(
s, pos); }
359 size_t find_last_of(
const char*
s,
size_t pos,
size_t n)
const {
return fValue.find_last_of(
s, pos, n); }
360 size_t find_last_of(
char c,
size_t pos = std::string::npos)
const noexcept {
return fValue.find_last_of(c, pos); }
361 const char& front()
const {
return fValue.front(); }
362 size_t length() const noexcept {
return fValue.length(); }
363 size_t max_size() const noexcept {
return fValue.max_size(); }
364 const char& operator[](
size_t pos)
const {
return fValue[pos]; }
365 std::string::const_reverse_iterator rbegin() const noexcept {
return fValue.rbegin(); }
366 std::string::const_reverse_iterator rend() const noexcept {
return fValue.rend(); }
367 void reserve(
size_t n = 0) {
fValue.reserve(n); }
368 size_t rfind(
const std::string& str,
size_t pos = std::string::npos)
const noexcept {
return fValue.rfind(str, pos); }
369 size_t rfind(
const char*
s,
size_t pos = std::string::npos)
const {
return fValue.rfind(
s, pos); }
370 size_t rfind(
const char*
s,
size_t pos,
size_t n)
const {
return fValue.rfind(
s, pos, n); }
371 size_t rfind(
char c,
size_t pos = std::string::npos)
const noexcept {
return fValue.rfind(c, pos); }
372 void shrink_to_fit() {
fValue.shrink_to_fit(); }
373 size_t size() const noexcept {
return fValue.size(); }
374 std::string substr(
size_t pos = 0,
size_t len = std::string::npos)
const {
return fValue.substr(pos, len); }
405 void Reset(
const std::string& val)
417 const std::string&
Value()
const {
return fValue; }
476 bool operator<(
const std::string& rhs)
const
480 bool operator>(
const std::string& rhs)
const
494 explicit operator std::string()
const {
return fValue; }
TPriorityValue(TPriorityValue &&rhs) noexcept
bool operator==(const T &rhs) const
TPriorityValue(T value, EPriority priority=EPriority::kDefault)
bool operator<(const TPriorityValue< T > &rhs)
friend std::ostream & operator<<(std::ostream &, const TPriorityValue< U > &)
bool operator>=(const TPriorityValue< T > &rhs)
void Set(const T &val, EPriority priority)
TPriorityValue(const TPriorityValue &rhs)
~TPriorityValue()=default
bool operator==(const TPriorityValue< T > &rhs)
bool operator>=(const T &rhs) const
EPriority Priority() const
bool operator<(const T &rhs) const
bool operator>(const TPriorityValue< T > &rhs)
bool operator<=(const T &rhs) const
bool operator<=(const TPriorityValue< T > &rhs)
bool operator>(const T &rhs) const
TPriorityValue< T > & operator=(TPriorityValue< T > &&rhs) noexcept
const T * Address() const
TPriorityValue< T > & operator=(const TPriorityValue< T > &rhs)
bool operator!=(const TPriorityValue< T > &rhs)
bool operator!=(const T &rhs) const
void SetPriority(EPriority priority)
std::ostream & operator<<(std::ostream &out, const TPriorityValue< T > &val)