SIRIUS 7.5.0
Electronic structure library and applications
Public Types | Public Member Functions | Private Attributes | List of all members
detail::json_ref< BasicJsonType > Class Template Reference

Public Types

using value_type = BasicJsonType
 

Public Member Functions

 json_ref (value_type &&value)
 
 json_ref (const value_type &value)
 
 json_ref (std::initializer_list< json_ref > init)
 
template<class... Args, enable_if_t< std::is_constructible< value_type, Args... >::value, int > = 0>
 json_ref (Args &&... args)
 
 json_ref (json_ref &&) noexcept=default
 
 json_ref (const json_ref &)=delete
 
json_refoperator= (const json_ref &)=delete
 
json_refoperator= (json_ref &&)=delete
 
value_type moved_or_copied () const
 
value_type const & operator* () const
 
value_type const * operator-> () const
 

Private Attributes

value_type owned_value = nullptr
 
value_type const * value_ref = nullptr
 

Detailed Description

template<typename BasicJsonType>
class detail::json_ref< BasicJsonType >

Definition at line 14733 of file nlohmann_json.hpp.

Member Typedef Documentation

◆ value_type

template<typename BasicJsonType >
using detail::json_ref< BasicJsonType >::value_type = BasicJsonType

Definition at line 14736 of file nlohmann_json.hpp.

Constructor & Destructor Documentation

◆ json_ref() [1/4]

template<typename BasicJsonType >
detail::json_ref< BasicJsonType >::json_ref ( value_type &&  value)
inline

Definition at line 14738 of file nlohmann_json.hpp.

◆ json_ref() [2/4]

template<typename BasicJsonType >
detail::json_ref< BasicJsonType >::json_ref ( const value_type &  value)
inline

Definition at line 14742 of file nlohmann_json.hpp.

◆ json_ref() [3/4]

template<typename BasicJsonType >
detail::json_ref< BasicJsonType >::json_ref ( std::initializer_list< json_ref< BasicJsonType > >  init)
inline

Definition at line 14746 of file nlohmann_json.hpp.

◆ json_ref() [4/4]

template<typename BasicJsonType >
template<class... Args, enable_if_t< std::is_constructible< value_type, Args... >::value, int > = 0>
detail::json_ref< BasicJsonType >::json_ref ( Args &&...  args)
inline

Definition at line 14753 of file nlohmann_json.hpp.

Member Function Documentation

◆ moved_or_copied()

template<typename BasicJsonType >
value_type detail::json_ref< BasicJsonType >::moved_or_copied ( ) const
inline

Definition at line 14764 of file nlohmann_json.hpp.

◆ operator*()

template<typename BasicJsonType >
value_type const & detail::json_ref< BasicJsonType >::operator* ( ) const
inline

Definition at line 14773 of file nlohmann_json.hpp.

◆ operator->()

template<typename BasicJsonType >
value_type const * detail::json_ref< BasicJsonType >::operator-> ( ) const
inline

Definition at line 14778 of file nlohmann_json.hpp.

Member Data Documentation

◆ owned_value

template<typename BasicJsonType >
value_type detail::json_ref< BasicJsonType >::owned_value = nullptr
mutableprivate

Definition at line 14784 of file nlohmann_json.hpp.

◆ value_ref

template<typename BasicJsonType >
value_type const* detail::json_ref< BasicJsonType >::value_ref = nullptr
private

Definition at line 14785 of file nlohmann_json.hpp.


The documentation for this class was generated from the following file: