VLink  2.0.0
A high-performance communication middleware
serializer-inl.h 文件参考
#include <cstring>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include "../base/helpers.h"
#include "../base/logger.h"
#include "../base/name_detector.h"
#include "../base/traits.h"
#include "../serializer.h"
serializer-inl.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  eprosima::fastcdr::FastBuffer
 
class  eprosima::fastcdr::CdrVersion
 
class  eprosima::fastcdr::Cdr
 
struct  google::protobuf::Arena
 
struct  flatbuffers::FlatBufferBuilder
 
struct  flatbuffers::Table
 
struct  flatbuffers::NativeTable
 
struct  flatbuffers::Verifier
 

命名空间

 eprosima
 
 eprosima::fastcdr
 
 google
 
 google::protobuf
 
 flatbuffers
 
 
 

宏定义

#define FASTCDR_VERSION_MAJOR   1
 

函数

constexpr bool vlink::Serializer::is_supported (Type type) noexcept
 Reports whether type identifies a usable codec. 更多...
 
template<typename T >
constexpr Type vlink::Serializer::get_type_of () noexcept
 Resolves the codec Type for T at compile time. 更多...
 
template<Type TypeT, typename T >
std::string vlink::Serializer::get_serialized_type () noexcept
 Returns the serialised type-name string for T with explicit codec tag. 更多...
 
template<typename T >
std::string vlink::Serializer::get_serialized_type () noexcept
 Returns the serialised type-name string for T with explicit codec tag. 更多...
 
template<Type TypeT, typename T >
size_t vlink::Serializer::get_serialized_size (const T &src) noexcept
 Returns a serialised-size hint for src with explicit codec tag. 更多...
 
template<typename T >
size_t vlink::Serializer::get_serialized_size (const T &src) noexcept
 Returns a serialised-size hint for src with explicit codec tag. 更多...
 
template<Type TypeT, typename T >
bool vlink::Serializer::serialize (const T &src, Bytes &des, [[maybe_unused]] TransportType transport, [[maybe_unused]] uint8_t offset)
 
template<typename T >
bool vlink::Serializer::serialize (const T &src, Bytes &des)
 Serialises src into des (codec and transport auto-detected). 更多...
 
template<Type TypeT, typename T >
bool vlink::Serializer::deserialize (const Bytes &src, T &des, [[maybe_unused]] TransportType transport)
 
template<typename T >
bool vlink::Serializer::deserialize (const Bytes &src, T &des)
 Deserialises src into des (codec and transport auto-detected). 更多...
 
template<typename SrcT , typename DesT >
bool vlink::Serializer::convert (const SrcT &src, DesT &des)
 Converts between two types where at least one side is Bytes. 更多...
 
template<typename T >
constexpr auto & vlink::Serializer::deref (const T &t) noexcept
 Dereferences a value, unwrapping std::shared_ptr when present. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_bytes_type () noexcept
 Reports whether T is exactly Bytes. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_dynamic_type () noexcept
 Reports whether T is a VLink dynamic data type. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_cdr_type () noexcept
 Reports whether T is a FastDDS CDR-serialisable type. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_proto_type () noexcept
 Reports whether T is a Protobuf-like message value type. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_proto_ptr_type () noexcept
 Reports whether T is a raw pointer to a Protobuf-like message. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_flat_table_type () noexcept
 Reports whether T is a FlatBuffers NativeTable type. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_flat_builder_type () noexcept
 Reports whether T is a FlatBuffers builder type. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_flat_ptr_type () noexcept
 Reports whether T is a raw pointer to a flatbuffers::Table. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_custom_type () noexcept
 Reports whether T provides a custom operator>>/<< codec. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_string_type () noexcept
 Reports whether T is std::string after unwrapping shared_ptr. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_chars_type () noexcept
 Reports whether std::string is constructible from T (but T is not string). 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_stream_type () noexcept
 Reports whether T supports bidirectional std::stringstream streaming. 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_standard_type () noexcept
 Reports whether T is a trivial standard-layout value (POD). 更多...
 
template<typename T >
constexpr bool vlink::Serializer::is_standard_ptr_type () noexcept
 Reports whether T is a pointer to a trivial standard-layout type. 更多...
 

宏定义说明

◆ FASTCDR_VERSION_MAJOR

#define FASTCDR_VERSION_MAJOR   1