OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StringDictionaryProxy.cpp File Reference
+ Include dependency graph for StringDictionaryProxy.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{StringDictionaryProxy.cpp}
 

Functions

int32_t truncate_to_generation (const int32_t id, const size_t generation)
 
bool anonymous_namespace{StringDictionaryProxy.cpp}::is_like (const std::string &str, const std::string &pattern, const bool icase, const bool is_simple, const char escape)
 
bool anonymous_namespace{StringDictionaryProxy.cpp}::do_compare (const std::string &str, const std::string &pattern, const std::string &comp_operator)
 
bool anonymous_namespace{StringDictionaryProxy.cpp}::is_regexp_like (const std::string &str, const std::string &pattern, const char escape)
 

Function Documentation

int32_t truncate_to_generation ( const int32_t  id,
const size_t  generation 
)

Definition at line 32 of file StringDictionaryProxy.cpp.

References CHECK_GE, and StringDictionary::INVALID_STR_ID.

Referenced by StringDictionaryProxy::getIdOfString(), and StringDictionaryProxy::getOrAddTransient().

32  {
34  return id;
35  }
36  CHECK_GE(id, 0);
37  return static_cast<size_t>(id) >= generation ? StringDictionary::INVALID_STR_ID : id;
38 }
#define CHECK_GE(x, y)
Definition: Logger.h:216
static constexpr int32_t INVALID_STR_ID

+ Here is the caller graph for this function: