From bd98615d278202cda9473e2abb619aee419788a5 Mon Sep 17 00:00:00 2001 From: Ramin Yaghoubzadeh <ryaghoubzadeh@uni-bielefeld.de> Date: Sat, 28 Mar 2015 17:45:27 +0100 Subject: [PATCH] C++: some stricter encapsulation --- ipaacalib/cpp/include/ipaaca/ipaaca-payload.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ipaacalib/cpp/include/ipaaca/ipaaca-payload.h b/ipaacalib/cpp/include/ipaaca/ipaaca-payload.h index 6d8e863..0dba23c 100644 --- a/ipaacalib/cpp/include/ipaaca/ipaaca-payload.h +++ b/ipaacalib/cpp/include/ipaaca/ipaaca-payload.h @@ -329,14 +329,18 @@ IPAACA_HEADER_EXPORT class PayloadEntryProxy//{{{ { friend class Payload; friend class PayloadIterator; + friend class PayloadDocumentEntry; + friend class PayloadEntryProxyListDecorator; + friend class PayloadEntryProxyListIterator; + friend class PayloadEntryProxyMapDecorator; + friend class PayloadEntryProxyMapIterator; friend std::ostream& operator<<(std::ostream& os, const PayloadEntryProxy& proxy); - protected: public: /// Select map-style iteration for this proxy (to select iterator content type). Will throw if not actually map-type. See example in the class description. IPAACA_HEADER_EXPORT PayloadEntryProxyMapDecorator as_map(); /// Select list-style iteration for this proxy (to select iterator content type). Will throw if not actually list-type. See example in the class description. IPAACA_HEADER_EXPORT PayloadEntryProxyListDecorator as_list(); - public: + protected: //IPAACA_MEMBER_VAR_EXPORT rapidjson::Document* _json_parent_node; //IPAACA_MEMBER_VAR_EXPORT rapidjson::Document* _json_node; IPAACA_MEMBER_VAR_EXPORT Payload* _payload; -- GitLab