used _-suffix for member variables

This commit is contained in:
Niels 2015-01-04 23:09:30 +01:00
parent 3bef1a5097
commit 540cda6118
2 changed files with 325 additions and 325 deletions

File diff suppressed because it is too large Load diff

View file

@ -158,7 +158,7 @@ class json
private: private:
/// return the type as string /// return the type as string
const std::string _typename() const noexcept; const std::string type_name() const noexcept;
public: public:
/// explicit value conversion /// explicit value conversion
@ -312,14 +312,14 @@ class json
private: private:
/// the type of this object /// the type of this object
value_type _type = value_type::null; value_type type_ = value_type::null;
/// the payload /// the payload
value _value {}; value value_ {};
private: private:
/// mutex to guard payload /// mutex to guard payload
static std::mutex _token; static std::mutex token_;
public: public:
/// an iterator /// an iterator
@ -347,11 +347,11 @@ class json
private: private:
/// a JSON value /// a JSON value
json* _object = nullptr; json* object_ = nullptr;
/// an iterator for JSON arrays /// an iterator for JSON arrays
array_t::iterator* _vi = nullptr; array_t::iterator* vi_ = nullptr;
/// an iterator for JSON objects /// an iterator for JSON objects
object_t::iterator* _oi = nullptr; object_t::iterator* oi_ = nullptr;
}; };
/// a const iterator /// a const iterator
@ -380,11 +380,11 @@ class json
private: private:
/// a JSON value /// a JSON value
const json* _object = nullptr; const json* object_ = nullptr;
/// an iterator for JSON arrays /// an iterator for JSON arrays
array_t::const_iterator* _vi = nullptr; array_t::const_iterator* vi_ = nullptr;
/// an iterator for JSON objects /// an iterator for JSON objects
object_t::const_iterator* _oi = nullptr; object_t::const_iterator* oi_ = nullptr;
}; };
private: private:
@ -427,11 +427,11 @@ class json
private: private:
/// a buffer of the input /// a buffer of the input
std::string _buffer {}; std::string buffer_ {};
/// the current character /// the current character
char _current {}; char current_ {};
/// the position inside the input buffer /// the position inside the input buffer
size_t _pos = 0; size_t pos_ = 0;
}; };
}; };