Alchemy  1.0
A framework to robustly process network messages and structured data
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Functions
message_dynamic_detail.h File Reference

Internal details for the implementation of a dynamic message size query. More...

#include <Pb/dynamic.h>
#include <Pb/meta_foreach.h>
#include <Pb/type_at.h>
#include <Hg/deduce_type_trait.h>

Go to the source code of this file.

Classes

struct  Hg::detail::DynamicSizeWorker< MsgT, false >
 Specialization that does not request dynamic size values for non-dynamic msgs. More...
 
struct  Hg::detail::SizeOfVector< T, A, TypeTraitT >
 Determines the number of bytes required to serialize a vector. More...
 
struct  Hg::detail::SizeOfVector< T, A, nested_trait >
 Determines the number of bytes required to serialize a vector. This version handles a vector with sub-messages. More...
 
struct  Hg::detail::SizeOfVector< T, A, vector_trait >
 Determines the number of bytes required to serialize a vector. This version handles a vector with variable-length types. More...
 

Namespaces

namespace  Hg
 The MIT License(MIT)


 

Functions

template<class T , class A >
size_t Hg::detail::dynamic_size (const Hg::BitFieldVector< T, A > &field)
 Reports the total dynamic size of vector of bit-fields for this item.
 
template<class T , class A >
size_t Hg::detail::dynamic_size (const std::vector< T, A > &field)
 Reports the total size of the dynamic buffers required for this message.
 
template<typename T >
size_t Hg::detail::dynamic_size (const T &field)
 Catch all implementation that returns 0 dynamic size.
 

Detailed Description

Internal details for the implementation of a dynamic message size query.

The MIT License(MIT)

Definition in file message_dynamic_detail.h.