CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_bit_stack.h
1#pragma once
2
3#include <system/array.h>
4#include <cstdint>
5
6namespace System {
7
8namespace Text {
9
10namespace Json {
11
12class ASPOSECPP_SHARED_CLASS BitStack : public System::Object, public System::Details::BoxableObjectBase
13{
14 typedef BitStack ThisType;
16
17 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
18 ASPOSECPP_SHARED_RTTI_INFO_DECL();
19
20public:
21
22 ASPOSECPP_SHARED_API int32_t get_CurrentDepth();
23
24 ASPOSECPP_SHARED_API void PushTrue();
25 ASPOSECPP_SHARED_API void PushFalse();
26 ASPOSECPP_SHARED_API bool Pop();
27 ASPOSECPP_SHARED_API bool Peek();
28 ASPOSECPP_SHARED_API void SetFirstBit();
29 ASPOSECPP_SHARED_API void ResetFirstBit();
30
31 ASPOSECPP_SHARED_API BitStack();
32
36 ASPOSECPP_SHARED_API bool Equals(const BitStack& other) const;
40 ASPOSECPP_SHARED_API bool operator ==(const BitStack& other) const;
41
42protected:
43
44 #ifdef ASPOSE_GET_SHARED_MEMBERS
45 void GetSharedMembers(System::Object::shared_members_type& result) const override;
46 #endif
47
48private:
49
50 static const int32_t AllocationFreeMaxDepth;
51 static const int32_t DefaultInitialArraySize = 2;
53 uint64_t _allocationFreeContainer;
54 int32_t _currentDepth;
55
56 void PushToArray(bool value);
57 bool PeekInArray();
58 void DoubleArray(int32_t minSize);
59 static int32_t Div32Rem(int32_t number, int32_t& remainder);
60
61};
62
63} // namespace Json
64} // namespace Text
65} // namespace System
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: json_bit_stack.h:13
bool Equals(const BitStack &other) const
Determines if the current and the specified objects are equal.
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9
bool operator==(ArraySegment< T > a, ArraySegment< T > b)
Definition: array_segment.h:167