OmniSciDB  04ee39c94c
Analyzer::OrderEntry Struct Reference

#include <Analyzer.h>

Public Member Functions

 OrderEntry (int t, bool d, bool nf)
 
 ~OrderEntry ()
 
std::string toString () const
 
void print () const
 

Public Attributes

int tle_no
 
bool is_desc
 
bool nulls_first
 

Detailed Description

Definition at line 1305 of file Analyzer.h.

Constructor & Destructor Documentation

◆ OrderEntry()

Analyzer::OrderEntry::OrderEntry ( int  t,
bool  d,
bool  nf 
)
inline

Definition at line 1306 of file Analyzer.h.

1306 : tle_no(t), is_desc(d), nulls_first(nf){};
void d(const SQLTypes expected_type, const std::string &str)
Definition: ImportTest.cpp:268
int tle_no
Definition: Analyzer.h:1310
bool nulls_first
Definition: Analyzer.h:1312
bool is_desc
Definition: Analyzer.h:1311

◆ ~OrderEntry()

Analyzer::OrderEntry::~OrderEntry ( )
inline

Definition at line 1307 of file Analyzer.h.

1307 {}

Member Function Documentation

◆ print()

void Analyzer::OrderEntry::print ( ) const
inline

Definition at line 1309 of file Analyzer.h.

1309 { std::cout << toString(); }
std::string toString() const
Definition: Analyzer.cpp:2573

◆ toString()

std::string Analyzer::OrderEntry::toString ( ) const

Definition at line 2573 of file Analyzer.cpp.

References to_string().

2573  {
2574  std::string str{std::to_string(tle_no)};
2575  if (is_desc) {
2576  str += " desc";
2577  }
2578  if (nulls_first) {
2579  str += " nulls first";
2580  }
2581  str += " ";
2582  return str;
2583 }
int tle_no
Definition: Analyzer.h:1310
std::string to_string(char const *&&v)
bool nulls_first
Definition: Analyzer.h:1312
bool is_desc
Definition: Analyzer.h:1311
+ Here is the call graph for this function:

Member Data Documentation

◆ is_desc

bool Analyzer::OrderEntry::is_desc

Definition at line 1311 of file Analyzer.h.

◆ nulls_first

bool Analyzer::OrderEntry::nulls_first

Definition at line 1312 of file Analyzer.h.

◆ tle_no

int Analyzer::OrderEntry::tle_no

Definition at line 1310 of file Analyzer.h.


The documentation for this struct was generated from the following files: