3#include <system/object_ext.h>
4#include <system/diagnostics/debug.h>
5#include <system/details/pointer_collection_helpers.h>
6#include <system/details/patterns.h>
7#include <system/default.h>
8#include <system/collections/queue.h>
23 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
24 RTTI_INFO_TEMPLATE_CLASS(
ThisType, ThisTypeBaseTypesInfo);
32 return _state < 2 ? _state : _multiple->get_Count();
45 _single = System::Default<T>();
50 _multiple->Enqueue(
value);
60 value = System::Default<T>();
64 _single = System::Default<T>();
68 if (_multiple->get_Count() > 0)
70 value = _multiple->Dequeue();
71 if (_multiple->get_Count() == 0)
78 value = System::Default<T>();
85 if (_state != other._state)
95 return _single == other._single;
97 return _multiple->data() == other._multiple->data();
109 System::Details::CollectionHelpers::SetWeakPointer(_single);
110 System::Details::CollectionHelpers::SetWeakPointer(0, _multiple);
118 #ifdef ASPOSE_GET_SHARED_MEMBERS
119 void GetSharedMembers(System::Object::shared_members_type& result)
const override
121 Object::GetSharedMembers(result);
123 result.Add(
"System::Text::Json::ValueQueue::_single", this->_single);
124 result.Add(
"System::Text::Json::ValueQueue::_multiple", this->_multiple);
static auto CoalesceAssign(T0 &value, T1 func) -> T0 &
Implementation of '??=' operator translation.
Definition: object_ext.h:748
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:51
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: value_queue.h:19
bool TryDequeue(T &value)
Definition: value_queue.h:55
void Enqueue(T value)
Definition: value_queue.h:35
bool operator==(const ValueQueue< T > &other) const
Definition: value_queue.h:83
ValueQueue()
Definition: value_queue.h:100
int32_t get_Count()
Definition: value_queue.h:30
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: value_queue.h:104
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9