mirror of https://gitee.com/bigwinds/arangodb
noexcept
This commit is contained in:
parent
d572655d84
commit
bf71cdecdb
|
@ -119,7 +119,7 @@ namespace triagens {
|
|||
/// @brief return the value type
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline AqlValueType type () const throw() {
|
||||
inline AqlValueType type () const noexcept {
|
||||
return _type;
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ namespace triagens {
|
|||
/// called for a value
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline bool requiresDestruction () const throw() {
|
||||
inline bool requiresDestruction () const noexcept {
|
||||
return (_type != EMPTY && _type != SHAPED);
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ namespace triagens {
|
|||
/// @brief a quick method to decide whether a value is empty
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline bool isEmpty () const throw() {
|
||||
inline bool isEmpty () const noexcept {
|
||||
return _type == EMPTY;
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ namespace triagens {
|
|||
/// @brief whether or not the AqlValue is a shape
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline bool isShaped () const throw() {
|
||||
inline bool isShaped () const noexcept {
|
||||
return _type == SHAPED;
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ namespace triagens {
|
|||
/// @brief whether or not the AqlValue is a JSON
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline bool isJson () const throw() {
|
||||
inline bool isJson () const noexcept {
|
||||
return _type == JSON;
|
||||
}
|
||||
|
||||
|
@ -160,7 +160,7 @@ namespace triagens {
|
|||
/// @brief whether or not the AqlValue is a RANGE
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline bool isRange () const throw() {
|
||||
inline bool isRange () const noexcept {
|
||||
return _type == RANGE;
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,7 @@ namespace triagens {
|
|||
/// is used when the AqlValue is stolen and stored in another object
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline void erase () throw() {
|
||||
inline void erase () noexcept {
|
||||
_type = EMPTY;
|
||||
_json = nullptr;
|
||||
}
|
||||
|
|
|
@ -603,7 +603,7 @@ namespace triagens {
|
|||
/// @brief return the number of members
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline size_t numMembers () const throw() {
|
||||
inline size_t numMembers () const noexcept {
|
||||
return members.size();
|
||||
}
|
||||
|
||||
|
@ -666,7 +666,7 @@ namespace triagens {
|
|||
/// @brief return a member of the node
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline AstNode* getMemberUnchecked (size_t i) const throw() {
|
||||
inline AstNode* getMemberUnchecked (size_t i) const noexcept {
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
TRI_ASSERT(i < members.size());
|
||||
#endif
|
||||
|
|
|
@ -1044,7 +1044,7 @@ namespace triagens {
|
|||
/// @brief resize the array
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int resize (size_t size) throw() {
|
||||
int resize (size_t size) noexcept {
|
||||
size /= _buckets.size();
|
||||
for (auto& b : _buckets) {
|
||||
if (2 * (2 * size + 1) < 3 * b._nrUsed) {
|
||||
|
|
|
@ -307,7 +307,7 @@ namespace triagens {
|
|||
#endif
|
||||
#endif
|
||||
}
|
||||
char const* what () const throw() {
|
||||
char const* what () const noexcept {
|
||||
return _msg.c_str();
|
||||
}
|
||||
};
|
||||
|
@ -729,7 +729,7 @@ namespace triagens {
|
|||
/// @brief destructor
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
~Json () throw() {
|
||||
~Json () noexcept {
|
||||
if (_json != nullptr && _autofree == AUTOFREE) {
|
||||
TRI_FreeJson(TRI_MemoryZone(_zone), _json);
|
||||
}
|
||||
|
@ -744,7 +744,7 @@ namespace triagens {
|
|||
/// of the pointer
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
TRI_json_t* json () const throw() {
|
||||
TRI_json_t* json () const noexcept {
|
||||
return _json;
|
||||
}
|
||||
|
||||
|
@ -754,7 +754,7 @@ namespace triagens {
|
|||
/// constructor and in the cast operator to TRI_json_t*.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
TRI_json_t* steal () throw() {
|
||||
TRI_json_t* steal () noexcept {
|
||||
TRI_json_t* res = _json;
|
||||
if (_autofree == AUTOFREE) {
|
||||
_json = nullptr;
|
||||
|
@ -1036,7 +1036,7 @@ namespace triagens {
|
|||
/// @brief checks whether *this is a Json that is equal to null.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool isNull () const throw() {
|
||||
bool isNull () const noexcept {
|
||||
return _json != nullptr && _json->_type == TRI_JSON_NULL;
|
||||
}
|
||||
|
||||
|
@ -1044,7 +1044,7 @@ namespace triagens {
|
|||
/// @brief checks whether *this is a boolean Json.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool isBoolean () const throw() {
|
||||
bool isBoolean () const noexcept {
|
||||
return TRI_IsBooleanJson(_json);
|
||||
}
|
||||
|
||||
|
@ -1052,7 +1052,7 @@ namespace triagens {
|
|||
/// @brief checks whether *this is a number Json.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool isNumber () const throw() {
|
||||
bool isNumber () const noexcept {
|
||||
return TRI_IsNumberJson(_json);
|
||||
}
|
||||
|
||||
|
@ -1060,7 +1060,7 @@ namespace triagens {
|
|||
/// @brief checks whether *this is a string Json.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool isString () const throw() {
|
||||
bool isString () const noexcept {
|
||||
return TRI_IsStringJson(_json);
|
||||
}
|
||||
|
||||
|
@ -1068,7 +1068,7 @@ namespace triagens {
|
|||
/// @brief checks whether *this is an object Json.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool isObject () const throw() {
|
||||
bool isObject () const noexcept {
|
||||
return TRI_IsObjectJson(_json);
|
||||
}
|
||||
|
||||
|
@ -1076,7 +1076,7 @@ namespace triagens {
|
|||
/// @brief checks whether *this is an array Json.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool isArray () const throw() {
|
||||
bool isArray () const noexcept {
|
||||
return TRI_IsArrayJson(_json);
|
||||
}
|
||||
|
||||
|
@ -1106,7 +1106,7 @@ namespace triagens {
|
|||
/// @brief checks whether *this is an empty Json (not even null).
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool isEmpty () const throw() {
|
||||
bool isEmpty () const noexcept {
|
||||
return _json == nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue