xapian-core
1.4.26
|
Compiler attribute macros. More...
Go to the source code of this file.
Macros | |
#define | XAPIAN_NOEXCEPT |
#define | XAPIAN_CONST_FUNCTION |
A function which does not examine any values except its arguments and has no effects except its return value. More... | |
#define | XAPIAN_PURE_FUNCTION |
Like XAPIAN_CONST_FUNCTION, but such a function can also examine global memory, perhaps via pointer or reference parameters. More... | |
Compiler attribute macros.
Definition in file attributes.h.
#define XAPIAN_CONST_FUNCTION |
A function which does not examine any values except its arguments and has no effects except its return value.
This means the compiler can perform CSE (common subexpression elimination) on calls to such a function with the same arguments, and also completely eliminate calls to this function when the return value isn't used.
Definition at line 62 of file attributes.h.
Referenced by Xapian::miles_to_metres().
#define XAPIAN_NOEXCEPT |
Definition at line 39 of file attributes.h.
Referenced by Xapian::Internal::QueryScaleWeight::get_length(), Xapian::Internal::QueryWildcard::get_pattern(), Xapian::Internal::QueryBranch::QueryBranch(), Xapian::Internal::QueryInvalid::QueryInvalid(), Xapian::Internal::QueryTerm::QueryTerm(), Xapian::Internal::QueryValueGE::QueryValueGE(), Xapian::Internal::QueryValueLE::QueryValueLE(), Xapian::Internal::QueryValueRange::QueryValueRange(), and Xapian::Internal::QueryWildcard::QueryWildcard().
#define XAPIAN_PURE_FUNCTION |
Like XAPIAN_CONST_FUNCTION, but such a function can also examine global memory, perhaps via pointer or reference parameters.
Definition at line 67 of file attributes.h.
Referenced by Xapian::Query::empty(), Xapian::Internal::QueryScaleWeight::get_length(), Xapian::Internal::QueryWildcard::get_pattern(), Xapian::Query::get_unique_terms_end(), Xapian::Query::Internal::Internal(), Xapian::Internal::QueryBranch::QueryBranch(), Xapian::Internal::QueryInvalid::QueryInvalid(), Xapian::Internal::QueryTerm::QueryTerm(), Xapian::Internal::QueryValueGE::QueryValueGE(), Xapian::Internal::QueryValueLE::QueryValueLE(), Xapian::Internal::QueryValueRange::QueryValueRange(), Xapian::Internal::QueryWildcard::QueryWildcard(), and Xapian::Utf8Iterator::Utf8Iterator().