From a653ebe5bdfad1d44a576d2ab23f7e6ea80ba96f Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 7 Oct 2008 17:24:24 +0000 Subject: Rename size() to encodedSize() for encoded types to allow std collection interfaces for types like FieldTable and Array. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@702551 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/AMQHeaderBody.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/src/qpid/framing/AMQHeaderBody.h') diff --git a/cpp/src/qpid/framing/AMQHeaderBody.h b/cpp/src/qpid/framing/AMQHeaderBody.h index c69a768291..7ddb7d89cf 100644 --- a/cpp/src/qpid/framing/AMQHeaderBody.h +++ b/cpp/src/qpid/framing/AMQHeaderBody.h @@ -41,9 +41,9 @@ class AMQHeaderBody : public AMQBody template struct OptProps { boost::optional props; }; template struct PropSet : public Base, public OptProps { - uint32_t size() const { + uint32_t encodedSize() const { const boost::optional& p=this->OptProps::props; - return (p ? p->size() : 0) + Base::size(); + return (p ? p->encodedSize() : 0) + Base::encodedSize(); } void encode(Buffer& buffer) const { const boost::optional& p=this->OptProps::props; @@ -68,7 +68,7 @@ class AMQHeaderBody : public AMQBody }; struct Empty { - uint32_t size() const { return 0; } + uint32_t encodedSize() const { return 0; } void encode(Buffer&) const {}; bool decode(Buffer&, uint32_t, uint16_t) const { return false; }; void print(std::ostream&) const {} @@ -83,7 +83,7 @@ public: inline uint8_t type() const { return HEADER_BODY; } - uint32_t size() const; + uint32_t encodedSize() const; void encode(Buffer& buffer) const; void decode(Buffer& buffer, uint32_t size); uint64_t getContentLength() const; -- cgit v1.2.1