Function SwapValueByPointer

Summary

#include <include/rapidjson/pointer.h>

(1) template <typename T>
    T::ValueType & SwapValueByPointer(T &root, const GenericPointer< typename T::ValueType > &pointer, typename T::ValueType &value, typename T::AllocatorType &a)

(2) template <typename T, typename CharType, size_t N>
    T::ValueType & SwapValueByPointer(T &root, const CharType(&source)[N], typename T::ValueType &value, typename T::AllocatorType &a)

(3) template <typename DocumentType>
    DocumentType::ValueType & SwapValueByPointer(DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer, typename DocumentType::ValueType &value)

(4) template <typename DocumentType, typename CharType, size_t N>
    DocumentType::ValueType & SwapValueByPointer(DocumentType &document, const CharType(&source)[N], typename DocumentType::ValueType &value)

Function overload

Synopsis

#include <include/rapidjson/pointer.h>

template <typename T>
T::ValueType & SwapValueByPointer(T &root, const GenericPointer< typename T::ValueType > &pointer, typename T::ValueType &value, typename T::AllocatorType &a)

Description

No description yet.

Mentioned in

Source

Lines 1375-1378 in include/rapidjson/pointer.h.

template <typename T>
typename T::ValueType& SwapValueByPointer(T& root, const GenericPointer<typename T::ValueType>& pointer, typename T::ValueType& value, typename T::AllocatorType& a) {
    return pointer.Swap(root, value, a);
}

Synopsis

#include <include/rapidjson/pointer.h>

template <typename T, typename CharType, size_t N>
T::ValueType & SwapValueByPointer(T &root, const CharType(&source)[N], typename T::ValueType &value, typename T::AllocatorType &a)

Description

No description yet.

Mentioned in

Source

Lines 1380-1383 in include/rapidjson/pointer.h.

template <typename T, typename CharType, size_t N>
typename T::ValueType& SwapValueByPointer(T& root, const CharType(&source)[N], typename T::ValueType& value, typename T::AllocatorType& a) {
    return GenericPointer<typename T::ValueType>(source, N - 1).Swap(root, value, a);
}

Synopsis

#include <include/rapidjson/pointer.h>

template <typename DocumentType>
DocumentType::ValueType & SwapValueByPointer(DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer, typename DocumentType::ValueType &value)

Description

No description yet.

Mentioned in

Source

Lines 1385-1388 in include/rapidjson/pointer.h.

template <typename DocumentType>
typename DocumentType::ValueType& SwapValueByPointer(DocumentType& document, const GenericPointer<typename DocumentType::ValueType>& pointer, typename DocumentType::ValueType& value) {
    return pointer.Swap(document, value);
}

Synopsis

#include <include/rapidjson/pointer.h>

template <typename DocumentType, typename CharType, size_t N>
DocumentType::ValueType & SwapValueByPointer(DocumentType &document, const CharType(&source)[N], typename DocumentType::ValueType &value)

Description

No description yet.

Mentioned in

Source

Lines 1390-1393 in include/rapidjson/pointer.h.

template <typename DocumentType, typename CharType, size_t N>
typename DocumentType::ValueType& SwapValueByPointer(DocumentType& document, const CharType(&source)[N], typename DocumentType::ValueType& value) {
    return GenericPointer<typename DocumentType::ValueType>(source, N - 1).Swap(document, value);
}





Add Discussion as Guest

Log in