#include <PromptUtils.h>
|
| | SortObjectByVar (const unsigned v, MsgStream &m, bool inverse=false) |
| template<class T> |
| bool | operator() (const T &lhs, const T &rhs) |
Definition at line 116 of file PromptUtils.h.
◆ SortObjectByVar() [1/2]
| Prompt::SortObjectByVar::SortObjectByVar |
( |
const unsigned | v, |
|
|
MsgStream & | m, |
|
|
bool | inverse = false ) |
|
inlineexplicit |
◆ SortObjectByVar() [2/2]
| Prompt::SortObjectByVar::SortObjectByVar |
( |
| ) |
|
|
private |
◆ operator()()
template<class T>
| bool Prompt::SortObjectByVar::operator() |
( |
const T & | lhs, |
|
|
const T & | rhs ) |
|
inline |
Definition at line 120 of file PromptUtils.h.
121 {
122 double val_rhs = 0.0;
123 double val_lhs = 0.0;
124
125 if(!lhs.getVar(
m_var, val_lhs) || !rhs.getVar(
m_var, val_rhs)) {
126 m_msg << MSG::WARNING <<
"SortObjectByVar - missing var" << std::endl;
127 }
128
130 return val_lhs > val_rhs;
131 }
132
133 return val_lhs < val_rhs;
134 }
◆ m_inv
| bool Prompt::SortObjectByVar::m_inv |
|
private |
◆ m_msg
| MsgStream& Prompt::SortObjectByVar::m_msg |
|
private |
◆ m_var
| unsigned Prompt::SortObjectByVar::m_var |
|
private |
The documentation for this struct was generated from the following file: