src: inline macro DISALLOW_COPY_AND_ASSIGN · nodejs/node@51b8a89 (original) (raw)
`@@ -423,6 +423,8 @@ class IsolateData {
`
423
423
``
424
424
` std::unordered_map<nghttp2_rcbuf*, v8::Eternalv8::String> http2_static_strs;
`
425
425
`inline v8::Isolate* isolate() const;
`
``
426
`+
IsolateData(const IsolateData&) = delete;
`
``
427
`+
IsolateData& operator=(const IsolateData&) = delete;
`
426
428
``
427
429
`private:
`
428
430
`#define VP(PropertyName, StringValue) V(v8::Private, PropertyName)
`
`@@ -445,8 +447,6 @@ class IsolateData {
`
445
447
`const bool uses_node_allocator_;
`
446
448
` MultiIsolatePlatform* platform_;
`
447
449
` std::shared_ptr options_;
`
448
``
-
449
``
`-
DISALLOW_COPY_AND_ASSIGN(IsolateData);
`
450
450
`};
`
451
451
``
452
452
`struct ContextInfo {
`
`@@ -531,6 +531,9 @@ class AsyncRequest : public MemoryRetainer {
`
531
531
``
532
532
`class Environment {
`
533
533
`public:
`
``
534
`+
Environment(const Environment&) = delete;
`
``
535
`+
Environment& operator=(const Environment&) = delete;
`
``
536
+
534
537
`class AsyncHooks {
`
535
538
`public:
`
536
539
`// Reason for both UidFields and Fields are that one is stored as a double*
`
`@@ -568,6 +571,9 @@ class Environment {
`
568
571
`inline bool pop_async_id(double async_id);
`
569
572
`inline void clear_async_id_stack(); // Used in fatal exceptions.
`
570
573
``
``
574
`+
AsyncHooks(const AsyncHooks&) = delete;
`
``
575
`+
AsyncHooks& operator=(const AsyncHooks&) = delete;
`
``
576
+
571
577
`// Used to set the kDefaultTriggerAsyncId in a scope. This is instead of
`
572
578
`// passing the trigger_async_id along with other constructor arguments.
`
573
579
`class DefaultTriggerAsyncIdScope {
`
`@@ -578,11 +584,13 @@ class Environment {
`
578
584
`explicit DefaultTriggerAsyncIdScope(AsyncWrap* async_wrap);
`
579
585
`~DefaultTriggerAsyncIdScope();
`
580
586
``
``
587
`+
DefaultTriggerAsyncIdScope(const DefaultTriggerAsyncIdScope&) = delete;
`
``
588
`+
DefaultTriggerAsyncIdScope& operator=(const DefaultTriggerAsyncIdScope&) =
`
``
589
`+
delete;
`
``
590
+
581
591
`private:
`
582
592
` AsyncHooks* async_hooks_;
`
583
593
`double old_default_trigger_async_id_;
`
584
``
-
585
``
`-
DISALLOW_COPY_AND_ASSIGN(DefaultTriggerAsyncIdScope);
`
586
594
` };
`
587
595
``
588
596
``
`@@ -600,20 +608,18 @@ class Environment {
`
600
608
` AliasedBuffer<double, v8::Float64Array> async_id_fields_;
`
601
609
``
602
610
`void grow_async_ids_stack();
`
603
``
-
604
``
`-
DISALLOW_COPY_AND_ASSIGN(AsyncHooks);
`
605
611
` };
`
606
612
``
607
613
`class AsyncCallbackScope {
`
608
614
`public:
`
609
615
`AsyncCallbackScope() = delete;
`
610
616
`explicit AsyncCallbackScope(Environment* env);
`
611
617
`~AsyncCallbackScope();
`
``
618
`+
AsyncCallbackScope(const AsyncCallbackScope&) = delete;
`
``
619
`+
AsyncCallbackScope& operator=(const AsyncCallbackScope&) = delete;
`
612
620
``
613
621
`private:
`
614
622
` Environment* env_;
`
615
``
-
616
``
`-
DISALLOW_COPY_AND_ASSIGN(AsyncCallbackScope);
`
617
623
` };
`
618
624
``
619
625
`inline size_t makecallback_depth() const;
`
`@@ -631,6 +637,9 @@ class Environment {
`
631
637
`inline void ref_count_inc(uint32_t increment);
`
632
638
`inline void ref_count_dec(uint32_t decrement);
`
633
639
``
``
640
`+
ImmediateInfo(const ImmediateInfo&) = delete;
`
``
641
`+
ImmediateInfo& operator=(const ImmediateInfo&) = delete;
`
``
642
+
634
643
`private:
`
635
644
`friend class Environment; // So we can call the constructor.
`
636
645
`inline explicit ImmediateInfo(v8::Isolate* isolate);
`
`@@ -643,8 +652,6 @@ class Environment {
`
643
652
` };
`
644
653
``
645
654
` AliasedBuffer<uint32_t, v8::Uint32Array> fields_;
`
646
``
-
647
``
`-
DISALLOW_COPY_AND_ASSIGN(ImmediateInfo);
`
648
655
` };
`
649
656
``
650
657
`class TickInfo {
`
`@@ -653,6 +660,9 @@ class Environment {
`
653
660
`inline bool has_tick_scheduled() const;
`
654
661
`inline bool has_rejection_to_warn() const;
`
655
662
``
``
663
`+
TickInfo(const TickInfo&) = delete;
`
``
664
`+
TickInfo& operator=(const TickInfo&) = delete;
`
``
665
+
656
666
`private:
`
657
667
`friend class Environment; // So we can call the constructor.
`
658
668
`inline explicit TickInfo(v8::Isolate* isolate);
`
`@@ -664,8 +674,6 @@ class Environment {
`
664
674
` };
`
665
675
``
666
676
` AliasedBuffer<uint8_t, v8::Uint8Array> fields_;
`
667
``
-
668
``
`-
DISALLOW_COPY_AND_ASSIGN(TickInfo);
`
669
677
` };
`
670
678
``
671
679
`enum Flags {
`
`@@ -1214,8 +1222,6 @@ class Environment {
`
1214
1222
`#define V(PropertyName, TypeName) Persistent PropertyName ## _;
`
1215
1223
`ENVIRONMENT_STRONG_PERSISTENT_PROPERTIES(V)
`
1216
1224
`#undef V
`
1217
``
-
1218
``
`-
DISALLOW_COPY_AND_ASSIGN(Environment);
`
1219
1225
`};
`
1220
1226
``
1221
1227
`} // namespace node
`