CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_bit_stack.h
1
#pragma once
2
3
#include <system/array.h>
4
#include <cstdint>
5
6
namespace
System
{
7
8
namespace
Text
{
9
10
namespace
Json {
11
12
class
ASPOSECPP_SHARED_CLASS
BitStack
:
public
System::Object
,
public
System::Details::BoxableObjectBase
13
{
14
typedef
BitStack
ThisType
;
15
typedef
System::Object
BaseType
;
16
17
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
18
ASPOSECPP_SHARED_RTTI_INFO_DECL();
19
20
public
:
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
42
protected
:
43
44
#ifdef ASPOSE_GET_SHARED_MEMBERS
45
void
GetSharedMembers(System::Object::shared_members_type& result)
const override
;
46
#endif
47
48
private
:
49
50
static
const
int32_t AllocationFreeMaxDepth;
51
static
const
int32_t DefaultInitialArraySize = 2;
52
System::SharedPtr<Array<int32_t>
> _array;
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
System::Object
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition:
object.h:51
System::SmartPtr
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition:
smart_ptr.h:180
System::Text::Json::BitStack
Definition:
json_bit_stack.h:13
System::Text::Json::BitStack::get_CurrentDepth
int32_t get_CurrentDepth()
System::Text::Json::BitStack::ResetFirstBit
void ResetFirstBit()
System::Text::Json::BitStack::SetFirstBit
void SetFirstBit()
System::Text::Json::BitStack::PushFalse
void PushFalse()
System::Text::Json::BitStack::Pop
bool Pop()
System::Text::Json::BitStack::PushTrue
void PushTrue()
System::Text::Json::BitStack::BitStack
BitStack()
System::Text::Json::BitStack::Equals
bool Equals(const BitStack &other) const
Determines if the current and the specified objects are equal.
System::Text::Json::BitStack::Peek
bool Peek()
System::Drawing::Imaging::ColorAdjustType::Text
@ Text
Defines color adjustment information for text.
System
Definition:
db_command.h:9
System::operator==
bool operator==(ArraySegment< T > a, ArraySegment< T > b)
Definition:
array_segment.h:167
include
system
text
json
json_bit_stack.h
Generated by
1.9.4