OmniSciDB  91042dcc5b
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RenderQueryOptions Class Reference

#include <RenderQueryOptions.h>

Public Types

enum  FlagBits { kLegacyHitTestLogic = 1u << 0, kInjectRowId = 1u << 1, kRequiresPhysicalTables = 1u << 2 }
 

Public Member Functions

bool shouldAlterRA () const
 
bool useLegacyHitTestLogic () const
 
bool injectRowId () const
 
bool requiresPhysicalTables () const
 
void setFlags (FlagBits flags_to_set)
 
void clearFlags (FlagBits flags_to_clear)
 
void clearAllFlags ()
 
bool operator== (const RenderQueryOptions &other) const
 
bool operator!= (const RenderQueryOptions &other) const
 

Private Attributes

uint32_t flags_ = 0u
 

Detailed Description

Definition at line 19 of file RenderQueryOptions.h.

Member Enumeration Documentation

Enumerator
kLegacyHitTestLogic 
kInjectRowId 
kRequiresPhysicalTables 

Definition at line 21 of file RenderQueryOptions.h.

21  {
22  // enableHitTesting field not available in Vega
23  // attempt to support it automatically
24  // requires physical tables and will enable kInjectRowId for non-insitu renders
25  kLegacyHitTestLogic = 1u << 0,
26  // automatically inject rowid for projection queries.
27  // For example, this should be true when hit-testing is enabled.
28  kInjectRowId = 1u << 1,
29  // physical tables are required in the results
30  // For example, this should be true when hit-testing is enabled.
31  kRequiresPhysicalTables = 1u << 2,
32  };

Member Function Documentation

void RenderQueryOptions::clearAllFlags ( )
inline

Definition at line 44 of file RenderQueryOptions.h.

References flags_.

44 { flags_ = 0u; }
void RenderQueryOptions::clearFlags ( FlagBits  flags_to_clear)
inline

Definition at line 43 of file RenderQueryOptions.h.

References flags_.

43 { flags_ &= (~flags_to_clear); }
bool RenderQueryOptions::injectRowId ( ) const
inline

Definition at line 37 of file RenderQueryOptions.h.

References flags_.

37 { return flags_ & FlagBits::kInjectRowId; }
bool RenderQueryOptions::operator!= ( const RenderQueryOptions other) const
inline

Definition at line 49 of file RenderQueryOptions.h.

References operator==().

49 { return !operator==(other); }
bool operator==(const RenderQueryOptions &other) const

+ Here is the call graph for this function:

bool RenderQueryOptions::operator== ( const RenderQueryOptions other) const
inline

Definition at line 46 of file RenderQueryOptions.h.

References flags_.

Referenced by operator!=().

46  {
47  return flags_ == other.flags_;
48  }

+ Here is the caller graph for this function:

bool RenderQueryOptions::requiresPhysicalTables ( ) const
inline

Definition at line 38 of file RenderQueryOptions.h.

References flags_.

38  {
39  return flags_ & FlagBits::kRequiresPhysicalTables;
40  }
void RenderQueryOptions::setFlags ( FlagBits  flags_to_set)
inline

Definition at line 42 of file RenderQueryOptions.h.

References flags_.

42 { flags_ |= flags_to_set; }
bool RenderQueryOptions::shouldAlterRA ( ) const
inline

Definition at line 34 of file RenderQueryOptions.h.

References flags_.

34 { return flags_ & FlagBits::kInjectRowId; }
bool RenderQueryOptions::useLegacyHitTestLogic ( ) const
inline

Definition at line 36 of file RenderQueryOptions.h.

References flags_.

36 { return flags_ & FlagBits::kLegacyHitTestLogic; }

Member Data Documentation

uint32_t RenderQueryOptions::flags_ = 0u
private

The documentation for this class was generated from the following file: