/src/CMake/Utilities/cmcppdap/include/dap/serialization.h
Line | Count | Source |
1 | | // Copyright 2019 Google LLC |
2 | | // |
3 | | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | | // you may not use this file except in compliance with the License. |
5 | | // You may obtain a copy of the License at |
6 | | // |
7 | | // https://www.apache.org/licenses/LICENSE-2.0 |
8 | | // |
9 | | // Unless required by applicable law or agreed to in writing, software |
10 | | // distributed under the License is distributed on an "AS IS" BASIS, |
11 | | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | | // See the License for the specific language governing permissions and |
13 | | // limitations under the License. |
14 | | |
15 | | #ifndef dap_serialization_h |
16 | | #define dap_serialization_h |
17 | | |
18 | | #include "typeof.h" |
19 | | #include "types.h" |
20 | | |
21 | | #include <cstddef> // ptrdiff_t |
22 | | #include <type_traits> |
23 | | |
24 | | namespace dap { |
25 | | |
26 | | // Field describes a single field of a struct. |
27 | | struct Field { |
28 | | std::string name; // name of the field |
29 | | ptrdiff_t offset; // offset of the field to the base of the struct |
30 | | const TypeInfo* type; // type of the field |
31 | | }; |
32 | | |
33 | | //////////////////////////////////////////////////////////////////////////////// |
34 | | // Deserializer |
35 | | //////////////////////////////////////////////////////////////////////////////// |
36 | | |
37 | | // Deserializer is the interface used to decode data from structured storage. |
38 | | // Methods that return a bool use this to indicate success. |
39 | | class Deserializer { |
40 | | public: |
41 | 0 | virtual ~Deserializer() = default; |
42 | | |
43 | | // deserialization methods for simple data types. |
44 | | // If the stored object is not of the correct type, then these function will |
45 | | // return false. |
46 | | virtual bool deserialize(boolean*) const = 0; |
47 | | virtual bool deserialize(integer*) const = 0; |
48 | | virtual bool deserialize(number*) const = 0; |
49 | | virtual bool deserialize(string*) const = 0; |
50 | | virtual bool deserialize(object*) const = 0; |
51 | | virtual bool deserialize(any*) const = 0; |
52 | | |
53 | | // count() returns the number of elements in the array object referenced by |
54 | | // this Deserializer. |
55 | | virtual size_t count() const = 0; |
56 | | |
57 | | // array() calls the provided std::function for deserializing each array |
58 | | // element in the array object referenced by this Deserializer. |
59 | | virtual bool array(const std::function<bool(Deserializer*)>&) const = 0; |
60 | | |
61 | | // field() calls the provided std::function for deserializing the field with |
62 | | // the given name from the struct object referenced by this Deserializer. |
63 | | virtual bool field(const std::string& name, |
64 | | const std::function<bool(Deserializer*)>&) const = 0; |
65 | | |
66 | | // deserialize() delegates to TypeOf<T>::type()->deserialize(). |
67 | | template <typename T, |
68 | | typename = std::enable_if<TypeOf<T>::has_custom_serialization>> |
69 | | inline bool deserialize(T*) const; |
70 | | |
71 | | // deserialize() decodes an array. |
72 | | template <typename T> |
73 | | inline bool deserialize(dap::array<T>*) const; |
74 | | |
75 | | // deserialize() decodes an optional. |
76 | | template <typename T> |
77 | | inline bool deserialize(dap::optional<T>*) const; |
78 | | |
79 | | // deserialize() decodes an variant. |
80 | | template <typename T0, typename... Types> |
81 | | inline bool deserialize(dap::variant<T0, Types...>*) const; |
82 | | |
83 | | // deserialize() decodes the struct field f with the given name. |
84 | | template <typename T> |
85 | | inline bool field(const std::string& name, T* f) const; |
86 | | }; |
87 | | |
88 | | template <typename T, typename> |
89 | 0 | bool Deserializer::deserialize(T* ptr) const { |
90 | 0 | return TypeOf<T>::type()->deserialize(this, ptr); |
91 | 0 | } Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::BreakpointEvent, std::__1::enable_if<true, void> >(dap::BreakpointEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::CapabilitiesEvent, std::__1::enable_if<true, void> >(dap::CapabilitiesEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ContinuedEvent, std::__1::enable_if<true, void> >(dap::ContinuedEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExitedEvent, std::__1::enable_if<true, void> >(dap::ExitedEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::InitializedEvent, std::__1::enable_if<true, void> >(dap::InitializedEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::InvalidatedEvent, std::__1::enable_if<true, void> >(dap::InvalidatedEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::LoadedSourceEvent, std::__1::enable_if<true, void> >(dap::LoadedSourceEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::MemoryEvent, std::__1::enable_if<true, void> >(dap::MemoryEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ModuleEvent, std::__1::enable_if<true, void> >(dap::ModuleEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::OutputEvent, std::__1::enable_if<true, void> >(dap::OutputEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ProcessEvent, std::__1::enable_if<true, void> >(dap::ProcessEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ProgressEndEvent, std::__1::enable_if<true, void> >(dap::ProgressEndEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ProgressStartEvent, std::__1::enable_if<true, void> >(dap::ProgressStartEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ProgressUpdateEvent, std::__1::enable_if<true, void> >(dap::ProgressUpdateEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StoppedEvent, std::__1::enable_if<true, void> >(dap::StoppedEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::TerminatedEvent, std::__1::enable_if<true, void> >(dap::TerminatedEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ThreadEvent, std::__1::enable_if<true, void> >(dap::ThreadEvent*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Source, std::__1::enable_if<true, void> >(dap::Source*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::AttachRequest, std::__1::enable_if<true, void> >(dap::AttachRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::BreakpointLocationsRequest, std::__1::enable_if<true, void> >(dap::BreakpointLocationsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::CancelRequest, std::__1::enable_if<true, void> >(dap::CancelRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::CompletionsRequest, std::__1::enable_if<true, void> >(dap::CompletionsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ConfigurationDoneRequest, std::__1::enable_if<true, void> >(dap::ConfigurationDoneRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ContinueRequest, std::__1::enable_if<true, void> >(dap::ContinueRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DataBreakpointInfoRequest, std::__1::enable_if<true, void> >(dap::DataBreakpointInfoRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DisassembleRequest, std::__1::enable_if<true, void> >(dap::DisassembleRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DisconnectRequest, std::__1::enable_if<true, void> >(dap::DisconnectRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::EvaluateRequest, std::__1::enable_if<true, void> >(dap::EvaluateRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionInfoRequest, std::__1::enable_if<true, void> >(dap::ExceptionInfoRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::GotoRequest, std::__1::enable_if<true, void> >(dap::GotoRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::GotoTargetsRequest, std::__1::enable_if<true, void> >(dap::GotoTargetsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::InitializeRequest, std::__1::enable_if<true, void> >(dap::InitializeRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::LaunchRequest, std::__1::enable_if<true, void> >(dap::LaunchRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::LoadedSourcesRequest, std::__1::enable_if<true, void> >(dap::LoadedSourcesRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ModulesRequest, std::__1::enable_if<true, void> >(dap::ModulesRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::NextRequest, std::__1::enable_if<true, void> >(dap::NextRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::PauseRequest, std::__1::enable_if<true, void> >(dap::PauseRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ReadMemoryRequest, std::__1::enable_if<true, void> >(dap::ReadMemoryRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::RestartFrameRequest, std::__1::enable_if<true, void> >(dap::RestartFrameRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::RestartRequest, std::__1::enable_if<true, void> >(dap::RestartRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ReverseContinueRequest, std::__1::enable_if<true, void> >(dap::ReverseContinueRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::RunInTerminalRequest, std::__1::enable_if<true, void> >(dap::RunInTerminalRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ScopesRequest, std::__1::enable_if<true, void> >(dap::ScopesRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetBreakpointsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetDataBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetDataBreakpointsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetExceptionBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetExceptionBreakpointsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetExpressionRequest, std::__1::enable_if<true, void> >(dap::SetExpressionRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetFunctionBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetFunctionBreakpointsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetInstructionBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetInstructionBreakpointsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetVariableRequest, std::__1::enable_if<true, void> >(dap::SetVariableRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SourceRequest, std::__1::enable_if<true, void> >(dap::SourceRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StackTraceRequest, std::__1::enable_if<true, void> >(dap::StackTraceRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StartDebuggingRequest, std::__1::enable_if<true, void> >(dap::StartDebuggingRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepBackRequest, std::__1::enable_if<true, void> >(dap::StepBackRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepInRequest, std::__1::enable_if<true, void> >(dap::StepInRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepInTargetsRequest, std::__1::enable_if<true, void> >(dap::StepInTargetsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepOutRequest, std::__1::enable_if<true, void> >(dap::StepOutRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::TerminateRequest, std::__1::enable_if<true, void> >(dap::TerminateRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::TerminateThreadsRequest, std::__1::enable_if<true, void> >(dap::TerminateThreadsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ThreadsRequest, std::__1::enable_if<true, void> >(dap::ThreadsRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::VariablesRequest, std::__1::enable_if<true, void> >(dap::VariablesRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::WriteMemoryRequest, std::__1::enable_if<true, void> >(dap::WriteMemoryRequest*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ValueFormat, std::__1::enable_if<true, void> >(dap::ValueFormat*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SourceBreakpoint, std::__1::enable_if<true, void> >(dap::SourceBreakpoint*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DataBreakpoint, std::__1::enable_if<true, void> >(dap::DataBreakpoint*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionOptions, std::__1::enable_if<true, void> >(dap::ExceptionOptions*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionFilterOptions, std::__1::enable_if<true, void> >(dap::ExceptionFilterOptions*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::FunctionBreakpoint, std::__1::enable_if<true, void> >(dap::FunctionBreakpoint*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::InstructionBreakpoint, std::__1::enable_if<true, void> >(dap::InstructionBreakpoint*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StackFrameFormat, std::__1::enable_if<true, void> >(dap::StackFrameFormat*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::AttachResponse, std::__1::enable_if<true, void> >(dap::AttachResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::BreakpointLocationsResponse, std::__1::enable_if<true, void> >(dap::BreakpointLocationsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::CancelResponse, std::__1::enable_if<true, void> >(dap::CancelResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::CompletionsResponse, std::__1::enable_if<true, void> >(dap::CompletionsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ConfigurationDoneResponse, std::__1::enable_if<true, void> >(dap::ConfigurationDoneResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ContinueResponse, std::__1::enable_if<true, void> >(dap::ContinueResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DataBreakpointInfoResponse, std::__1::enable_if<true, void> >(dap::DataBreakpointInfoResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DisassembleResponse, std::__1::enable_if<true, void> >(dap::DisassembleResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DisconnectResponse, std::__1::enable_if<true, void> >(dap::DisconnectResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ErrorResponse, std::__1::enable_if<true, void> >(dap::ErrorResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::EvaluateResponse, std::__1::enable_if<true, void> >(dap::EvaluateResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionInfoResponse, std::__1::enable_if<true, void> >(dap::ExceptionInfoResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::GotoResponse, std::__1::enable_if<true, void> >(dap::GotoResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::GotoTargetsResponse, std::__1::enable_if<true, void> >(dap::GotoTargetsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::InitializeResponse, std::__1::enable_if<true, void> >(dap::InitializeResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::LaunchResponse, std::__1::enable_if<true, void> >(dap::LaunchResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::LoadedSourcesResponse, std::__1::enable_if<true, void> >(dap::LoadedSourcesResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ModulesResponse, std::__1::enable_if<true, void> >(dap::ModulesResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::NextResponse, std::__1::enable_if<true, void> >(dap::NextResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::PauseResponse, std::__1::enable_if<true, void> >(dap::PauseResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ReadMemoryResponse, std::__1::enable_if<true, void> >(dap::ReadMemoryResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::RestartFrameResponse, std::__1::enable_if<true, void> >(dap::RestartFrameResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::RestartResponse, std::__1::enable_if<true, void> >(dap::RestartResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ReverseContinueResponse, std::__1::enable_if<true, void> >(dap::ReverseContinueResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::RunInTerminalResponse, std::__1::enable_if<true, void> >(dap::RunInTerminalResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ScopesResponse, std::__1::enable_if<true, void> >(dap::ScopesResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetBreakpointsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetDataBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetDataBreakpointsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetExceptionBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetExceptionBreakpointsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetExpressionResponse, std::__1::enable_if<true, void> >(dap::SetExpressionResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetFunctionBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetFunctionBreakpointsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetInstructionBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetInstructionBreakpointsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SetVariableResponse, std::__1::enable_if<true, void> >(dap::SetVariableResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SourceResponse, std::__1::enable_if<true, void> >(dap::SourceResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StackTraceResponse, std::__1::enable_if<true, void> >(dap::StackTraceResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StartDebuggingResponse, std::__1::enable_if<true, void> >(dap::StartDebuggingResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepBackResponse, std::__1::enable_if<true, void> >(dap::StepBackResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepInResponse, std::__1::enable_if<true, void> >(dap::StepInResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepInTargetsResponse, std::__1::enable_if<true, void> >(dap::StepInTargetsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepOutResponse, std::__1::enable_if<true, void> >(dap::StepOutResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::TerminateResponse, std::__1::enable_if<true, void> >(dap::TerminateResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::TerminateThreadsResponse, std::__1::enable_if<true, void> >(dap::TerminateThreadsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ThreadsResponse, std::__1::enable_if<true, void> >(dap::ThreadsResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::VariablesResponse, std::__1::enable_if<true, void> >(dap::VariablesResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::WriteMemoryResponse, std::__1::enable_if<true, void> >(dap::WriteMemoryResponse*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::BreakpointLocation, std::__1::enable_if<true, void> >(dap::BreakpointLocation*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::CompletionItem, std::__1::enable_if<true, void> >(dap::CompletionItem*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DisassembledInstruction, std::__1::enable_if<true, void> >(dap::DisassembledInstruction*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Message, std::__1::enable_if<true, void> >(dap::Message*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::VariablePresentationHint, std::__1::enable_if<true, void> >(dap::VariablePresentationHint*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionDetails, std::__1::enable_if<true, void> >(dap::ExceptionDetails*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::GotoTarget, std::__1::enable_if<true, void> >(dap::GotoTarget*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ColumnDescriptor, std::__1::enable_if<true, void> >(dap::ColumnDescriptor*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::BreakpointMode, std::__1::enable_if<true, void> >(dap::BreakpointMode*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionBreakpointsFilter, std::__1::enable_if<true, void> >(dap::ExceptionBreakpointsFilter*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Module, std::__1::enable_if<true, void> >(dap::Module*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Scope, std::__1::enable_if<true, void> >(dap::Scope*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Breakpoint, std::__1::enable_if<true, void> >(dap::Breakpoint*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StackFrame, std::__1::enable_if<true, void> >(dap::StackFrame*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepInTarget, std::__1::enable_if<true, void> >(dap::StepInTarget*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Thread, std::__1::enable_if<true, void> >(dap::Thread*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Variable, std::__1::enable_if<true, void> >(dap::Variable*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Checksum, std::__1::enable_if<true, void> >(dap::Checksum*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Capabilities, std::__1::enable_if<true, void> >(dap::Capabilities*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionPathSegment, std::__1::enable_if<true, void> >(dap::ExceptionPathSegment*) const |
92 | | |
93 | | template <typename T> |
94 | 0 | bool Deserializer::deserialize(dap::array<T>* vec) const { |
95 | 0 | auto n = count(); |
96 | 0 | vec->resize(n); |
97 | 0 | size_t i = 0; |
98 | 0 | if (!array([&](Deserializer* d) { return d->deserialize(&(*vec)[i++]); })) {Unexecuted instantiation: dap::Deserializer::deserialize<dap::any>(std::__1::vector<dap::any, std::__1::allocator<dap::any> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::integer>(std::__1::vector<dap::integer, std::__1::allocator<dap::integer> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::SourceBreakpoint>(std::__1::vector<dap::SourceBreakpoint, std::__1::allocator<dap::SourceBreakpoint> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::DataBreakpoint>(std::__1::vector<dap::DataBreakpoint, std::__1::allocator<dap::DataBreakpoint> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::ExceptionOptions>(std::__1::vector<dap::ExceptionOptions, std::__1::allocator<dap::ExceptionOptions> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::ExceptionFilterOptions>(std::__1::vector<dap::ExceptionFilterOptions, std::__1::allocator<dap::ExceptionFilterOptions> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::FunctionBreakpoint>(std::__1::vector<dap::FunctionBreakpoint, std::__1::allocator<dap::FunctionBreakpoint> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::InstructionBreakpoint>(std::__1::vector<dap::InstructionBreakpoint, std::__1::allocator<dap::InstructionBreakpoint> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::BreakpointLocation>(std::__1::vector<dap::BreakpointLocation, std::__1::allocator<dap::BreakpointLocation> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::CompletionItem>(std::__1::vector<dap::CompletionItem, std::__1::allocator<dap::CompletionItem> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::DisassembledInstruction>(std::__1::vector<dap::DisassembledInstruction, std::__1::allocator<dap::DisassembledInstruction> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::GotoTarget>(std::__1::vector<dap::GotoTarget, std::__1::allocator<dap::GotoTarget> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::ColumnDescriptor>(std::__1::vector<dap::ColumnDescriptor, std::__1::allocator<dap::ColumnDescriptor> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::BreakpointMode>(std::__1::vector<dap::BreakpointMode, std::__1::allocator<dap::BreakpointMode> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::ExceptionBreakpointsFilter>(std::__1::vector<dap::ExceptionBreakpointsFilter, std::__1::allocator<dap::ExceptionBreakpointsFilter> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::Source>(std::__1::vector<dap::Source, std::__1::allocator<dap::Source> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::Module>(std::__1::vector<dap::Module, std::__1::allocator<dap::Module> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::Scope>(std::__1::vector<dap::Scope, std::__1::allocator<dap::Scope> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::Breakpoint>(std::__1::vector<dap::Breakpoint, std::__1::allocator<dap::Breakpoint> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::StackFrame>(std::__1::vector<dap::StackFrame, std::__1::allocator<dap::StackFrame> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::StepInTarget>(std::__1::vector<dap::StepInTarget, std::__1::allocator<dap::StepInTarget> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::Thread>(std::__1::vector<dap::Thread, std::__1::allocator<dap::Thread> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::Variable>(std::__1::vector<dap::Variable, std::__1::allocator<dap::Variable> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::Checksum>(std::__1::vector<dap::Checksum, std::__1::allocator<dap::Checksum> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::ExceptionDetails>(std::__1::vector<dap::ExceptionDetails, std::__1::allocator<dap::ExceptionDetails> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) constUnexecuted instantiation: dap::Deserializer::deserialize<dap::ExceptionPathSegment>(std::__1::vector<dap::ExceptionPathSegment, std::__1::allocator<dap::ExceptionPathSegment> >*) const::{lambda(dap::Deserializer*)#1}::operator()(dap::Deserializer*) const |
99 | 0 | return false; |
100 | 0 | } |
101 | 0 | return true; |
102 | 0 | } Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::any>(std::__1::vector<dap::any, std::__1::allocator<dap::any> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::integer>(std::__1::vector<dap::integer, std::__1::allocator<dap::integer> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::SourceBreakpoint>(std::__1::vector<dap::SourceBreakpoint, std::__1::allocator<dap::SourceBreakpoint> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DataBreakpoint>(std::__1::vector<dap::DataBreakpoint, std::__1::allocator<dap::DataBreakpoint> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionOptions>(std::__1::vector<dap::ExceptionOptions, std::__1::allocator<dap::ExceptionOptions> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionFilterOptions>(std::__1::vector<dap::ExceptionFilterOptions, std::__1::allocator<dap::ExceptionFilterOptions> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::FunctionBreakpoint>(std::__1::vector<dap::FunctionBreakpoint, std::__1::allocator<dap::FunctionBreakpoint> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::InstructionBreakpoint>(std::__1::vector<dap::InstructionBreakpoint, std::__1::allocator<dap::InstructionBreakpoint> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::BreakpointLocation>(std::__1::vector<dap::BreakpointLocation, std::__1::allocator<dap::BreakpointLocation> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::CompletionItem>(std::__1::vector<dap::CompletionItem, std::__1::allocator<dap::CompletionItem> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::DisassembledInstruction>(std::__1::vector<dap::DisassembledInstruction, std::__1::allocator<dap::DisassembledInstruction> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::GotoTarget>(std::__1::vector<dap::GotoTarget, std::__1::allocator<dap::GotoTarget> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ColumnDescriptor>(std::__1::vector<dap::ColumnDescriptor, std::__1::allocator<dap::ColumnDescriptor> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::BreakpointMode>(std::__1::vector<dap::BreakpointMode, std::__1::allocator<dap::BreakpointMode> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionBreakpointsFilter>(std::__1::vector<dap::ExceptionBreakpointsFilter, std::__1::allocator<dap::ExceptionBreakpointsFilter> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Source>(std::__1::vector<dap::Source, std::__1::allocator<dap::Source> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Module>(std::__1::vector<dap::Module, std::__1::allocator<dap::Module> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Scope>(std::__1::vector<dap::Scope, std::__1::allocator<dap::Scope> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Breakpoint>(std::__1::vector<dap::Breakpoint, std::__1::allocator<dap::Breakpoint> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StackFrame>(std::__1::vector<dap::StackFrame, std::__1::allocator<dap::StackFrame> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StepInTarget>(std::__1::vector<dap::StepInTarget, std::__1::allocator<dap::StepInTarget> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Thread>(std::__1::vector<dap::Thread, std::__1::allocator<dap::Thread> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Variable>(std::__1::vector<dap::Variable, std::__1::allocator<dap::Variable> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Checksum>(std::__1::vector<dap::Checksum, std::__1::allocator<dap::Checksum> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionDetails>(std::__1::vector<dap::ExceptionDetails, std::__1::allocator<dap::ExceptionDetails> >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionPathSegment>(std::__1::vector<dap::ExceptionPathSegment, std::__1::allocator<dap::ExceptionPathSegment> >*) const |
103 | | |
104 | | template <typename T> |
105 | 0 | bool Deserializer::deserialize(dap::optional<T>* opt) const { |
106 | 0 | T v; |
107 | 0 | if (deserialize(&v)) { |
108 | 0 | *opt = v; |
109 | 0 | } |
110 | 0 | return true; |
111 | 0 | } Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::boolean>(dap::optional<dap::boolean>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >(dap::optional<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::integer>(dap::optional<dap::integer>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(dap::optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::variant<std::__1::vector<dap::any, std::__1::allocator<dap::any> >, dap::boolean, dap::integer, decltype(nullptr), dap::number, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >(dap::optional<dap::variant<std::__1::vector<dap::any, std::__1::allocator<dap::any> >, dap::boolean, dap::integer, decltype(nullptr), dap::number, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Source>(dap::optional<dap::Source>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::number>(dap::optional<dap::number>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::integer, std::__1::allocator<dap::integer> > >(dap::optional<std::__1::vector<dap::integer, std::__1::allocator<dap::integer> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ValueFormat>(dap::optional<dap::ValueFormat>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > > >(dap::optional<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::SourceBreakpoint, std::__1::allocator<dap::SourceBreakpoint> > >(dap::optional<std::__1::vector<dap::SourceBreakpoint, std::__1::allocator<dap::SourceBreakpoint> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::ExceptionOptions, std::__1::allocator<dap::ExceptionOptions> > >(dap::optional<std::__1::vector<dap::ExceptionOptions, std::__1::allocator<dap::ExceptionOptions> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::ExceptionFilterOptions, std::__1::allocator<dap::ExceptionFilterOptions> > >(dap::optional<std::__1::vector<dap::ExceptionFilterOptions, std::__1::allocator<dap::ExceptionFilterOptions> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::StackFrameFormat>(dap::optional<dap::StackFrameFormat>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::Message>(dap::optional<dap::Message>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::VariablePresentationHint>(dap::optional<dap::VariablePresentationHint>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::ExceptionDetails>(dap::optional<dap::ExceptionDetails>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::ColumnDescriptor, std::__1::allocator<dap::ColumnDescriptor> > >(dap::optional<std::__1::vector<dap::ColumnDescriptor, std::__1::allocator<dap::ColumnDescriptor> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::BreakpointMode, std::__1::allocator<dap::BreakpointMode> > >(dap::optional<std::__1::vector<dap::BreakpointMode, std::__1::allocator<dap::BreakpointMode> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::ExceptionBreakpointsFilter, std::__1::allocator<dap::ExceptionBreakpointsFilter> > >(dap::optional<std::__1::vector<dap::ExceptionBreakpointsFilter, std::__1::allocator<dap::ExceptionBreakpointsFilter> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::Breakpoint, std::__1::allocator<dap::Breakpoint> > >(dap::optional<std::__1::vector<dap::Breakpoint, std::__1::allocator<dap::Breakpoint> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::Checksum, std::__1::allocator<dap::Checksum> > >(dap::optional<std::__1::vector<dap::Checksum, std::__1::allocator<dap::Checksum> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::Source, std::__1::allocator<dap::Source> > >(dap::optional<std::__1::vector<dap::Source, std::__1::allocator<dap::Source> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::ExceptionDetails, std::__1::allocator<dap::ExceptionDetails> > >(dap::optional<std::__1::vector<dap::ExceptionDetails, std::__1::allocator<dap::ExceptionDetails> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::ExceptionPathSegment, std::__1::allocator<dap::ExceptionPathSegment> > >(dap::optional<std::__1::vector<dap::ExceptionPathSegment, std::__1::allocator<dap::ExceptionPathSegment> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::variant<dap::integer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >(dap::optional<dap::variant<dap::integer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >*) const |
112 | | |
113 | | template <typename T0, typename... Types> |
114 | 0 | bool Deserializer::deserialize(dap::variant<T0, Types...>* var) const { |
115 | 0 | return deserialize(&var->value); |
116 | 0 | } Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::vector<dap::any, std::__1::allocator<dap::any> >, dap::boolean, dap::integer, decltype(nullptr), dap::number, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(dap::variant<std::__1::vector<dap::any, std::__1::allocator<dap::any> >, dap::boolean, dap::integer, decltype(nullptr), dap::number, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, decltype(nullptr)>(dap::variant<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, decltype(nullptr)>*) const Unexecuted instantiation: bool dap::Deserializer::deserialize<dap::integer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(dap::variant<dap::integer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >*) const |
117 | | |
118 | | template <typename T> |
119 | 0 | bool Deserializer::field(const std::string& name, T* v) const { |
120 | 0 | return this->field(name, |
121 | 0 | [&](const Deserializer* d) { return d->deserialize(v); });Unexecuted instantiation: dap::Deserializer::field<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) const::{lambda(dap::Deserializer const*)#1}::operator()(dap::Deserializer const*) constUnexecuted instantiation: dap::Deserializer::field<dap::integer>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, dap::integer*) const::{lambda(dap::Deserializer const*)#1}::operator()(dap::Deserializer const*) constUnexecuted instantiation: dap::Deserializer::field<dap::boolean>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, dap::boolean*) const::{lambda(dap::Deserializer const*)#1}::operator()(dap::Deserializer const*) const |
122 | 0 | } Unexecuted instantiation: bool dap::Deserializer::field<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) const Unexecuted instantiation: bool dap::Deserializer::field<dap::integer>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, dap::integer*) const Unexecuted instantiation: bool dap::Deserializer::field<dap::boolean>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, dap::boolean*) const |
123 | | |
124 | | //////////////////////////////////////////////////////////////////////////////// |
125 | | // Serializer |
126 | | //////////////////////////////////////////////////////////////////////////////// |
127 | | class FieldSerializer; |
128 | | |
129 | | // Serializer is the interface used to encode data to structured storage. |
130 | | // A Serializer is associated with a single storage object, whos type and value |
131 | | // is assigned by a call to serialize(). |
132 | | // If serialize() is called multiple times on the same Serializer instance, |
133 | | // the last type and value is stored. |
134 | | // Methods that return a bool use this to indicate success. |
135 | | class Serializer { |
136 | | public: |
137 | 0 | virtual ~Serializer() = default; |
138 | | |
139 | | // serialization methods for simple data types. |
140 | | virtual bool serialize(boolean) = 0; |
141 | | virtual bool serialize(integer) = 0; |
142 | | virtual bool serialize(number) = 0; |
143 | | virtual bool serialize(const string&) = 0; |
144 | | virtual bool serialize(const dap::object&) = 0; |
145 | | virtual bool serialize(const any&) = 0; |
146 | | |
147 | | // array() encodes count array elements to the array object referenced by this |
148 | | // Serializer. The std::function will be called count times, each time with a |
149 | | // Serializer that should be used to encode the n'th array element's data. |
150 | | virtual bool array(size_t count, const std::function<bool(Serializer*)>&) = 0; |
151 | | |
152 | | // object() begins encoding the object referenced by this Serializer. |
153 | | // The std::function will be called with a FieldSerializer to serialize the |
154 | | // object's fields. |
155 | | virtual bool object(const std::function<bool(dap::FieldSerializer*)>&) = 0; |
156 | | |
157 | | // remove() deletes the object referenced by this Serializer. |
158 | | // remove() can be used to serialize optionals with no value assigned. |
159 | | virtual void remove() = 0; |
160 | | |
161 | | // serialize() delegates to TypeOf<T>::type()->serialize(). |
162 | | template <typename T, |
163 | | typename = std::enable_if<TypeOf<T>::has_custom_serialization>> |
164 | | inline bool serialize(const T&); |
165 | | |
166 | | // serialize() encodes the given array. |
167 | | template <typename T> |
168 | | inline bool serialize(const dap::array<T>&); |
169 | | |
170 | | // serialize() encodes the given optional. |
171 | | template <typename T> |
172 | | inline bool serialize(const dap::optional<T>& v); |
173 | | |
174 | | // serialize() encodes the given variant. |
175 | | template <typename T0, typename... Types> |
176 | | inline bool serialize(const dap::variant<T0, Types...>&); |
177 | | |
178 | | // deserialize() encodes the given string. |
179 | | inline bool serialize(const char* v); |
180 | | protected: |
181 | | static inline const TypeInfo* get_any_type(const any&); |
182 | | static inline const void* get_any_val(const any&); |
183 | | }; |
184 | | |
185 | 0 | inline const TypeInfo* Serializer::get_any_type(const any& a){ |
186 | 0 | return a.type; |
187 | 0 | } |
188 | 0 | const void* Serializer::get_any_val(const any& a) { |
189 | 0 | return a.value; |
190 | 0 | } |
191 | | |
192 | | template <typename T, typename> |
193 | 0 | bool Serializer::serialize(const T& object) { |
194 | 0 | return TypeOf<T>::type()->serialize(this, &object); |
195 | 0 | } Unexecuted instantiation: bool dap::Serializer::serialize<dap::BreakpointEvent, std::__1::enable_if<true, void> >(dap::BreakpointEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::CapabilitiesEvent, std::__1::enable_if<true, void> >(dap::CapabilitiesEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ContinuedEvent, std::__1::enable_if<true, void> >(dap::ContinuedEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExitedEvent, std::__1::enable_if<true, void> >(dap::ExitedEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::InitializedEvent, std::__1::enable_if<true, void> >(dap::InitializedEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::InvalidatedEvent, std::__1::enable_if<true, void> >(dap::InvalidatedEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::LoadedSourceEvent, std::__1::enable_if<true, void> >(dap::LoadedSourceEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::MemoryEvent, std::__1::enable_if<true, void> >(dap::MemoryEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ModuleEvent, std::__1::enable_if<true, void> >(dap::ModuleEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::OutputEvent, std::__1::enable_if<true, void> >(dap::OutputEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ProcessEvent, std::__1::enable_if<true, void> >(dap::ProcessEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ProgressEndEvent, std::__1::enable_if<true, void> >(dap::ProgressEndEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ProgressStartEvent, std::__1::enable_if<true, void> >(dap::ProgressStartEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ProgressUpdateEvent, std::__1::enable_if<true, void> >(dap::ProgressUpdateEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StoppedEvent, std::__1::enable_if<true, void> >(dap::StoppedEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::TerminatedEvent, std::__1::enable_if<true, void> >(dap::TerminatedEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ThreadEvent, std::__1::enable_if<true, void> >(dap::ThreadEvent const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Source, std::__1::enable_if<true, void> >(dap::Source const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::AttachRequest, std::__1::enable_if<true, void> >(dap::AttachRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::BreakpointLocationsRequest, std::__1::enable_if<true, void> >(dap::BreakpointLocationsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::CancelRequest, std::__1::enable_if<true, void> >(dap::CancelRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::CompletionsRequest, std::__1::enable_if<true, void> >(dap::CompletionsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ConfigurationDoneRequest, std::__1::enable_if<true, void> >(dap::ConfigurationDoneRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ContinueRequest, std::__1::enable_if<true, void> >(dap::ContinueRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DataBreakpointInfoRequest, std::__1::enable_if<true, void> >(dap::DataBreakpointInfoRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DisassembleRequest, std::__1::enable_if<true, void> >(dap::DisassembleRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DisconnectRequest, std::__1::enable_if<true, void> >(dap::DisconnectRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::EvaluateRequest, std::__1::enable_if<true, void> >(dap::EvaluateRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionInfoRequest, std::__1::enable_if<true, void> >(dap::ExceptionInfoRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::GotoRequest, std::__1::enable_if<true, void> >(dap::GotoRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::GotoTargetsRequest, std::__1::enable_if<true, void> >(dap::GotoTargetsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::InitializeRequest, std::__1::enable_if<true, void> >(dap::InitializeRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::LaunchRequest, std::__1::enable_if<true, void> >(dap::LaunchRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::LoadedSourcesRequest, std::__1::enable_if<true, void> >(dap::LoadedSourcesRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ModulesRequest, std::__1::enable_if<true, void> >(dap::ModulesRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::NextRequest, std::__1::enable_if<true, void> >(dap::NextRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::PauseRequest, std::__1::enable_if<true, void> >(dap::PauseRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ReadMemoryRequest, std::__1::enable_if<true, void> >(dap::ReadMemoryRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::RestartFrameRequest, std::__1::enable_if<true, void> >(dap::RestartFrameRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::RestartRequest, std::__1::enable_if<true, void> >(dap::RestartRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ReverseContinueRequest, std::__1::enable_if<true, void> >(dap::ReverseContinueRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::RunInTerminalRequest, std::__1::enable_if<true, void> >(dap::RunInTerminalRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ScopesRequest, std::__1::enable_if<true, void> >(dap::ScopesRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetBreakpointsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetDataBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetDataBreakpointsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetExceptionBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetExceptionBreakpointsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetExpressionRequest, std::__1::enable_if<true, void> >(dap::SetExpressionRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetFunctionBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetFunctionBreakpointsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetInstructionBreakpointsRequest, std::__1::enable_if<true, void> >(dap::SetInstructionBreakpointsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetVariableRequest, std::__1::enable_if<true, void> >(dap::SetVariableRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SourceRequest, std::__1::enable_if<true, void> >(dap::SourceRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StackTraceRequest, std::__1::enable_if<true, void> >(dap::StackTraceRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StartDebuggingRequest, std::__1::enable_if<true, void> >(dap::StartDebuggingRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepBackRequest, std::__1::enable_if<true, void> >(dap::StepBackRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepInRequest, std::__1::enable_if<true, void> >(dap::StepInRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepInTargetsRequest, std::__1::enable_if<true, void> >(dap::StepInTargetsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepOutRequest, std::__1::enable_if<true, void> >(dap::StepOutRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::TerminateRequest, std::__1::enable_if<true, void> >(dap::TerminateRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::TerminateThreadsRequest, std::__1::enable_if<true, void> >(dap::TerminateThreadsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ThreadsRequest, std::__1::enable_if<true, void> >(dap::ThreadsRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::VariablesRequest, std::__1::enable_if<true, void> >(dap::VariablesRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::WriteMemoryRequest, std::__1::enable_if<true, void> >(dap::WriteMemoryRequest const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ValueFormat, std::__1::enable_if<true, void> >(dap::ValueFormat const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SourceBreakpoint, std::__1::enable_if<true, void> >(dap::SourceBreakpoint const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DataBreakpoint, std::__1::enable_if<true, void> >(dap::DataBreakpoint const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionOptions, std::__1::enable_if<true, void> >(dap::ExceptionOptions const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionFilterOptions, std::__1::enable_if<true, void> >(dap::ExceptionFilterOptions const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::FunctionBreakpoint, std::__1::enable_if<true, void> >(dap::FunctionBreakpoint const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::InstructionBreakpoint, std::__1::enable_if<true, void> >(dap::InstructionBreakpoint const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StackFrameFormat, std::__1::enable_if<true, void> >(dap::StackFrameFormat const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::AttachResponse, std::__1::enable_if<true, void> >(dap::AttachResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::BreakpointLocationsResponse, std::__1::enable_if<true, void> >(dap::BreakpointLocationsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::CancelResponse, std::__1::enable_if<true, void> >(dap::CancelResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::CompletionsResponse, std::__1::enable_if<true, void> >(dap::CompletionsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ConfigurationDoneResponse, std::__1::enable_if<true, void> >(dap::ConfigurationDoneResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ContinueResponse, std::__1::enable_if<true, void> >(dap::ContinueResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DataBreakpointInfoResponse, std::__1::enable_if<true, void> >(dap::DataBreakpointInfoResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DisassembleResponse, std::__1::enable_if<true, void> >(dap::DisassembleResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DisconnectResponse, std::__1::enable_if<true, void> >(dap::DisconnectResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ErrorResponse, std::__1::enable_if<true, void> >(dap::ErrorResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::EvaluateResponse, std::__1::enable_if<true, void> >(dap::EvaluateResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionInfoResponse, std::__1::enable_if<true, void> >(dap::ExceptionInfoResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::GotoResponse, std::__1::enable_if<true, void> >(dap::GotoResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::GotoTargetsResponse, std::__1::enable_if<true, void> >(dap::GotoTargetsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::InitializeResponse, std::__1::enable_if<true, void> >(dap::InitializeResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::LaunchResponse, std::__1::enable_if<true, void> >(dap::LaunchResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::LoadedSourcesResponse, std::__1::enable_if<true, void> >(dap::LoadedSourcesResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ModulesResponse, std::__1::enable_if<true, void> >(dap::ModulesResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::NextResponse, std::__1::enable_if<true, void> >(dap::NextResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::PauseResponse, std::__1::enable_if<true, void> >(dap::PauseResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ReadMemoryResponse, std::__1::enable_if<true, void> >(dap::ReadMemoryResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::RestartFrameResponse, std::__1::enable_if<true, void> >(dap::RestartFrameResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::RestartResponse, std::__1::enable_if<true, void> >(dap::RestartResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ReverseContinueResponse, std::__1::enable_if<true, void> >(dap::ReverseContinueResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::RunInTerminalResponse, std::__1::enable_if<true, void> >(dap::RunInTerminalResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ScopesResponse, std::__1::enable_if<true, void> >(dap::ScopesResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetBreakpointsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetDataBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetDataBreakpointsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetExceptionBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetExceptionBreakpointsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetExpressionResponse, std::__1::enable_if<true, void> >(dap::SetExpressionResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetFunctionBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetFunctionBreakpointsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetInstructionBreakpointsResponse, std::__1::enable_if<true, void> >(dap::SetInstructionBreakpointsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SetVariableResponse, std::__1::enable_if<true, void> >(dap::SetVariableResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SourceResponse, std::__1::enable_if<true, void> >(dap::SourceResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StackTraceResponse, std::__1::enable_if<true, void> >(dap::StackTraceResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StartDebuggingResponse, std::__1::enable_if<true, void> >(dap::StartDebuggingResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepBackResponse, std::__1::enable_if<true, void> >(dap::StepBackResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepInResponse, std::__1::enable_if<true, void> >(dap::StepInResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepInTargetsResponse, std::__1::enable_if<true, void> >(dap::StepInTargetsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepOutResponse, std::__1::enable_if<true, void> >(dap::StepOutResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::TerminateResponse, std::__1::enable_if<true, void> >(dap::TerminateResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::TerminateThreadsResponse, std::__1::enable_if<true, void> >(dap::TerminateThreadsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ThreadsResponse, std::__1::enable_if<true, void> >(dap::ThreadsResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::VariablesResponse, std::__1::enable_if<true, void> >(dap::VariablesResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::WriteMemoryResponse, std::__1::enable_if<true, void> >(dap::WriteMemoryResponse const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::BreakpointLocation, std::__1::enable_if<true, void> >(dap::BreakpointLocation const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::CompletionItem, std::__1::enable_if<true, void> >(dap::CompletionItem const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DisassembledInstruction, std::__1::enable_if<true, void> >(dap::DisassembledInstruction const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Message, std::__1::enable_if<true, void> >(dap::Message const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::VariablePresentationHint, std::__1::enable_if<true, void> >(dap::VariablePresentationHint const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionDetails, std::__1::enable_if<true, void> >(dap::ExceptionDetails const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::GotoTarget, std::__1::enable_if<true, void> >(dap::GotoTarget const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ColumnDescriptor, std::__1::enable_if<true, void> >(dap::ColumnDescriptor const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::BreakpointMode, std::__1::enable_if<true, void> >(dap::BreakpointMode const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionBreakpointsFilter, std::__1::enable_if<true, void> >(dap::ExceptionBreakpointsFilter const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Module, std::__1::enable_if<true, void> >(dap::Module const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Scope, std::__1::enable_if<true, void> >(dap::Scope const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Breakpoint, std::__1::enable_if<true, void> >(dap::Breakpoint const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StackFrame, std::__1::enable_if<true, void> >(dap::StackFrame const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepInTarget, std::__1::enable_if<true, void> >(dap::StepInTarget const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Thread, std::__1::enable_if<true, void> >(dap::Thread const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Variable, std::__1::enable_if<true, void> >(dap::Variable const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Checksum, std::__1::enable_if<true, void> >(dap::Checksum const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Capabilities, std::__1::enable_if<true, void> >(dap::Capabilities const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionPathSegment, std::__1::enable_if<true, void> >(dap::ExceptionPathSegment const&) |
196 | | |
197 | | template <typename T> |
198 | 0 | bool Serializer::serialize(const dap::array<T>& vec) { |
199 | 0 | auto it = vec.begin(); |
200 | 0 | return array(vec.size(), [&](Serializer* s) { return s->serialize(*it++); });Unexecuted instantiation: dap::Serializer::serialize<dap::any>(std::__1::vector<dap::any, std::__1::allocator<dap::any> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::integer>(std::__1::vector<dap::integer, std::__1::allocator<dap::integer> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::SourceBreakpoint>(std::__1::vector<dap::SourceBreakpoint, std::__1::allocator<dap::SourceBreakpoint> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::DataBreakpoint>(std::__1::vector<dap::DataBreakpoint, std::__1::allocator<dap::DataBreakpoint> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::ExceptionOptions>(std::__1::vector<dap::ExceptionOptions, std::__1::allocator<dap::ExceptionOptions> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::ExceptionFilterOptions>(std::__1::vector<dap::ExceptionFilterOptions, std::__1::allocator<dap::ExceptionFilterOptions> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::FunctionBreakpoint>(std::__1::vector<dap::FunctionBreakpoint, std::__1::allocator<dap::FunctionBreakpoint> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::InstructionBreakpoint>(std::__1::vector<dap::InstructionBreakpoint, std::__1::allocator<dap::InstructionBreakpoint> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::BreakpointLocation>(std::__1::vector<dap::BreakpointLocation, std::__1::allocator<dap::BreakpointLocation> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::CompletionItem>(std::__1::vector<dap::CompletionItem, std::__1::allocator<dap::CompletionItem> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::DisassembledInstruction>(std::__1::vector<dap::DisassembledInstruction, std::__1::allocator<dap::DisassembledInstruction> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::GotoTarget>(std::__1::vector<dap::GotoTarget, std::__1::allocator<dap::GotoTarget> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::ColumnDescriptor>(std::__1::vector<dap::ColumnDescriptor, std::__1::allocator<dap::ColumnDescriptor> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::BreakpointMode>(std::__1::vector<dap::BreakpointMode, std::__1::allocator<dap::BreakpointMode> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::ExceptionBreakpointsFilter>(std::__1::vector<dap::ExceptionBreakpointsFilter, std::__1::allocator<dap::ExceptionBreakpointsFilter> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::Source>(std::__1::vector<dap::Source, std::__1::allocator<dap::Source> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::Module>(std::__1::vector<dap::Module, std::__1::allocator<dap::Module> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::Scope>(std::__1::vector<dap::Scope, std::__1::allocator<dap::Scope> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::Breakpoint>(std::__1::vector<dap::Breakpoint, std::__1::allocator<dap::Breakpoint> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::StackFrame>(std::__1::vector<dap::StackFrame, std::__1::allocator<dap::StackFrame> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::StepInTarget>(std::__1::vector<dap::StepInTarget, std::__1::allocator<dap::StepInTarget> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::Thread>(std::__1::vector<dap::Thread, std::__1::allocator<dap::Thread> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::Variable>(std::__1::vector<dap::Variable, std::__1::allocator<dap::Variable> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::Checksum>(std::__1::vector<dap::Checksum, std::__1::allocator<dap::Checksum> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::ExceptionDetails>(std::__1::vector<dap::ExceptionDetails, std::__1::allocator<dap::ExceptionDetails> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::Serializer::serialize<dap::ExceptionPathSegment>(std::__1::vector<dap::ExceptionPathSegment, std::__1::allocator<dap::ExceptionPathSegment> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) const |
201 | 0 | } Unexecuted instantiation: bool dap::Serializer::serialize<dap::any>(std::__1::vector<dap::any, std::__1::allocator<dap::any> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::integer>(std::__1::vector<dap::integer, std::__1::allocator<dap::integer> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::SourceBreakpoint>(std::__1::vector<dap::SourceBreakpoint, std::__1::allocator<dap::SourceBreakpoint> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DataBreakpoint>(std::__1::vector<dap::DataBreakpoint, std::__1::allocator<dap::DataBreakpoint> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionOptions>(std::__1::vector<dap::ExceptionOptions, std::__1::allocator<dap::ExceptionOptions> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionFilterOptions>(std::__1::vector<dap::ExceptionFilterOptions, std::__1::allocator<dap::ExceptionFilterOptions> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::FunctionBreakpoint>(std::__1::vector<dap::FunctionBreakpoint, std::__1::allocator<dap::FunctionBreakpoint> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::InstructionBreakpoint>(std::__1::vector<dap::InstructionBreakpoint, std::__1::allocator<dap::InstructionBreakpoint> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::BreakpointLocation>(std::__1::vector<dap::BreakpointLocation, std::__1::allocator<dap::BreakpointLocation> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::CompletionItem>(std::__1::vector<dap::CompletionItem, std::__1::allocator<dap::CompletionItem> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::DisassembledInstruction>(std::__1::vector<dap::DisassembledInstruction, std::__1::allocator<dap::DisassembledInstruction> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::GotoTarget>(std::__1::vector<dap::GotoTarget, std::__1::allocator<dap::GotoTarget> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ColumnDescriptor>(std::__1::vector<dap::ColumnDescriptor, std::__1::allocator<dap::ColumnDescriptor> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::BreakpointMode>(std::__1::vector<dap::BreakpointMode, std::__1::allocator<dap::BreakpointMode> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionBreakpointsFilter>(std::__1::vector<dap::ExceptionBreakpointsFilter, std::__1::allocator<dap::ExceptionBreakpointsFilter> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Source>(std::__1::vector<dap::Source, std::__1::allocator<dap::Source> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Module>(std::__1::vector<dap::Module, std::__1::allocator<dap::Module> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Scope>(std::__1::vector<dap::Scope, std::__1::allocator<dap::Scope> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Breakpoint>(std::__1::vector<dap::Breakpoint, std::__1::allocator<dap::Breakpoint> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StackFrame>(std::__1::vector<dap::StackFrame, std::__1::allocator<dap::StackFrame> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StepInTarget>(std::__1::vector<dap::StepInTarget, std::__1::allocator<dap::StepInTarget> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Thread>(std::__1::vector<dap::Thread, std::__1::allocator<dap::Thread> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Variable>(std::__1::vector<dap::Variable, std::__1::allocator<dap::Variable> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Checksum>(std::__1::vector<dap::Checksum, std::__1::allocator<dap::Checksum> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionDetails>(std::__1::vector<dap::ExceptionDetails, std::__1::allocator<dap::ExceptionDetails> > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionPathSegment>(std::__1::vector<dap::ExceptionPathSegment, std::__1::allocator<dap::ExceptionPathSegment> > const&) |
202 | | |
203 | | template <typename T> |
204 | 0 | bool Serializer::serialize(const dap::optional<T>& opt) { |
205 | 0 | if (!opt.has_value()) { |
206 | 0 | remove(); |
207 | 0 | return true; |
208 | 0 | } |
209 | 0 | return serialize(opt.value()); |
210 | 0 | } Unexecuted instantiation: bool dap::Serializer::serialize<dap::boolean>(dap::optional<dap::boolean> const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >(dap::optional<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::integer>(dap::optional<dap::integer> const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(dap::optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::variant<std::__1::vector<dap::any, std::__1::allocator<dap::any> >, dap::boolean, dap::integer, decltype(nullptr), dap::number, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >(dap::optional<dap::variant<std::__1::vector<dap::any, std::__1::allocator<dap::any> >, dap::boolean, dap::integer, decltype(nullptr), dap::number, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Source>(dap::optional<dap::Source> const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::number>(dap::optional<dap::number> const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::integer, std::__1::allocator<dap::integer> > >(dap::optional<std::__1::vector<dap::integer, std::__1::allocator<dap::integer> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ValueFormat>(dap::optional<dap::ValueFormat> const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > > >(dap::optional<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::SourceBreakpoint, std::__1::allocator<dap::SourceBreakpoint> > >(dap::optional<std::__1::vector<dap::SourceBreakpoint, std::__1::allocator<dap::SourceBreakpoint> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::ExceptionOptions, std::__1::allocator<dap::ExceptionOptions> > >(dap::optional<std::__1::vector<dap::ExceptionOptions, std::__1::allocator<dap::ExceptionOptions> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::ExceptionFilterOptions, std::__1::allocator<dap::ExceptionFilterOptions> > >(dap::optional<std::__1::vector<dap::ExceptionFilterOptions, std::__1::allocator<dap::ExceptionFilterOptions> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::StackFrameFormat>(dap::optional<dap::StackFrameFormat> const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::Message>(dap::optional<dap::Message> const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::VariablePresentationHint>(dap::optional<dap::VariablePresentationHint> const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::ExceptionDetails>(dap::optional<dap::ExceptionDetails> const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::ColumnDescriptor, std::__1::allocator<dap::ColumnDescriptor> > >(dap::optional<std::__1::vector<dap::ColumnDescriptor, std::__1::allocator<dap::ColumnDescriptor> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::BreakpointMode, std::__1::allocator<dap::BreakpointMode> > >(dap::optional<std::__1::vector<dap::BreakpointMode, std::__1::allocator<dap::BreakpointMode> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::ExceptionBreakpointsFilter, std::__1::allocator<dap::ExceptionBreakpointsFilter> > >(dap::optional<std::__1::vector<dap::ExceptionBreakpointsFilter, std::__1::allocator<dap::ExceptionBreakpointsFilter> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::Breakpoint, std::__1::allocator<dap::Breakpoint> > >(dap::optional<std::__1::vector<dap::Breakpoint, std::__1::allocator<dap::Breakpoint> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::Checksum, std::__1::allocator<dap::Checksum> > >(dap::optional<std::__1::vector<dap::Checksum, std::__1::allocator<dap::Checksum> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::Source, std::__1::allocator<dap::Source> > >(dap::optional<std::__1::vector<dap::Source, std::__1::allocator<dap::Source> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::ExceptionDetails, std::__1::allocator<dap::ExceptionDetails> > >(dap::optional<std::__1::vector<dap::ExceptionDetails, std::__1::allocator<dap::ExceptionDetails> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::ExceptionPathSegment, std::__1::allocator<dap::ExceptionPathSegment> > >(dap::optional<std::__1::vector<dap::ExceptionPathSegment, std::__1::allocator<dap::ExceptionPathSegment> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::variant<dap::integer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >(dap::optional<dap::variant<dap::integer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) |
211 | | |
212 | | template <typename T0, typename... Types> |
213 | 0 | bool Serializer::serialize(const dap::variant<T0, Types...>& var) { |
214 | 0 | return serialize(var.value); |
215 | 0 | } Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::vector<dap::any, std::__1::allocator<dap::any> >, dap::boolean, dap::integer, decltype(nullptr), dap::number, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(dap::variant<std::__1::vector<dap::any, std::__1::allocator<dap::any> >, dap::boolean, dap::integer, decltype(nullptr), dap::number, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, dap::any, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, dap::any> > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) Unexecuted instantiation: bool dap::Serializer::serialize<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, decltype(nullptr)>(dap::variant<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, decltype(nullptr)> const&) Unexecuted instantiation: bool dap::Serializer::serialize<dap::integer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(dap::variant<dap::integer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) |
216 | | |
217 | 0 | bool Serializer::serialize(const char* v) { |
218 | 0 | return serialize(std::string(v)); |
219 | 0 | } |
220 | | |
221 | | //////////////////////////////////////////////////////////////////////////////// |
222 | | // FieldSerializer |
223 | | //////////////////////////////////////////////////////////////////////////////// |
224 | | |
225 | | // FieldSerializer is the interface used to serialize fields of an object. |
226 | | class FieldSerializer { |
227 | | public: |
228 | | using SerializeFunc = std::function<bool(Serializer*)>; |
229 | | template <typename T> |
230 | | using IsSerializeFunc = std::is_convertible<T, SerializeFunc>; |
231 | | |
232 | 0 | virtual ~FieldSerializer() = default; |
233 | | |
234 | | // field() encodes a field to the struct object referenced by this Serializer. |
235 | | // The SerializeFunc will be called with a Serializer used to encode the |
236 | | // field's data. |
237 | | virtual bool field(const std::string& name, const SerializeFunc&) = 0; |
238 | | |
239 | | // field() encodes the field with the given name and value. |
240 | | template < |
241 | | typename T, |
242 | | typename = typename std::enable_if<!IsSerializeFunc<T>::value>::type> |
243 | | inline bool field(const std::string& name, const T& v); |
244 | | }; |
245 | | |
246 | | template <typename T, typename> |
247 | 0 | bool FieldSerializer::field(const std::string& name, const T& v) { |
248 | 0 | return this->field(name, [&](Serializer* s) { return s->serialize(v); });Unexecuted instantiation: dap::FieldSerializer::field<dap::integer, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, dap::integer const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::FieldSerializer::field<char [9], void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const (&) [9])::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::FieldSerializer::field<dap::boolean, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, dap::boolean const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::FieldSerializer::field<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::FieldSerializer::field<char [8], void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const (&) [8])::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) constUnexecuted instantiation: dap::FieldSerializer::field<char [6], void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const (&) [6])::{lambda(dap::Serializer*)#1}::operator()(dap::Serializer*) const |
249 | 0 | } Unexecuted instantiation: bool dap::FieldSerializer::field<dap::integer, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, dap::integer const&) Unexecuted instantiation: bool dap::FieldSerializer::field<char [9], void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const (&) [9]) Unexecuted instantiation: bool dap::FieldSerializer::field<dap::boolean, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, dap::boolean const&) Unexecuted instantiation: bool dap::FieldSerializer::field<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: bool dap::FieldSerializer::field<char [8], void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const (&) [8]) Unexecuted instantiation: bool dap::FieldSerializer::field<char [6], void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const (&) [6]) |
250 | | |
251 | | } // namespace dap |
252 | | |
253 | | #endif // dap_serialization_h |