Home
last modified time | relevance | path

Searched refs:intrusive_ptr (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/boost/boost/smart_ptr/
Dintrusive_ptr.hpp53 template<class T> class intrusive_ptr class
57 typedef intrusive_ptr this_type;
63 BOOST_CONSTEXPR intrusive_ptr() BOOST_SP_NOEXCEPT : px( 0 ) in intrusive_ptr() function in boost::intrusive_ptr
67 intrusive_ptr( T * p, bool add_ref = true ): px( p ) in intrusive_ptr() function in boost::intrusive_ptr
77intrusive_ptr( intrusive_ptr<U> const & rhs, typename boost::detail::sp_enable_if_convertible<U,T>… in intrusive_ptr() function in boost::intrusive_ptr
81 intrusive_ptr( intrusive_ptr<U> const & rhs ) in intrusive_ptr()
91 intrusive_ptr(intrusive_ptr const & rhs): px( rhs.px ) in intrusive_ptr() function in boost::intrusive_ptr
96 ~intrusive_ptr() in ~intrusive_ptr()
103 template<class U> intrusive_ptr & operator=(intrusive_ptr<U> const & rhs) in operator =()
115 intrusive_ptr(intrusive_ptr && rhs) BOOST_SP_NOEXCEPT : px( rhs.px ) in intrusive_ptr() function in boost::intrusive_ptr
[all …]
/third_party/boost/libs/smart_ptr/doc/smart_ptr/
Dintrusive_ptr.adoc10 [#intrusive_ptr] anchor
11 # intrusive_ptr: Managing Objects with Embedded Counts
18 The `intrusive_ptr` class template stores a pointer to an object with an embedded reference count.
19 Every new `intrusive_ptr` instance increments the reference count by using an unqualified call to t…
20 … `intrusive_ptr_add_ref`, passing it the pointer as an argument. Similarly, when an `intrusive_ptr`
26 may help adding support for `intrusive_ptr` to user types.
28 The class template is parameterized on `T`, the type of the object pointed to. `intrusive_ptr<T>` c…
29 converted to `intrusive_ptr<U>` whenever `T*` can be implicitly converted to `U*`.
31 The main reasons to use `intrusive_ptr` are:
34 * The memory footprint of `intrusive_ptr` is the same as the corresponding raw pointer;
[all …]
/third_party/boost/boost/interprocess/smart_ptr/
Dintrusive_ptr.hpp59 class intrusive_ptr class
72 typedef intrusive_ptr this_type;
76 BOOST_COPYABLE_AND_MOVABLE(intrusive_ptr)
81 intrusive_ptr() BOOST_NOEXCEPT in intrusive_ptr() function in boost::interprocess::intrusive_ptr
88 intrusive_ptr(const pointer &p, bool add_ref = true) BOOST_NOEXCEPT in intrusive_ptr() function in boost::interprocess::intrusive_ptr
96 intrusive_ptr(intrusive_ptr const & rhs) BOOST_NOEXCEPT in intrusive_ptr() function in boost::interprocess::intrusive_ptr
103 intrusive_ptr(BOOST_RV_REF(intrusive_ptr) rhs) BOOST_NOEXCEPT in intrusive_ptr() function in boost::interprocess::intrusive_ptr
111 template<class U> intrusive_ptr(intrusive_ptr<U, VP> const & rhs) BOOST_NOEXCEPT in intrusive_ptr() function in boost::interprocess::intrusive_ptr
118 ~intrusive_ptr() in ~intrusive_ptr()
125 intrusive_ptr & operator=(BOOST_COPY_ASSIGN_REF(intrusive_ptr) rhs) BOOST_NOEXCEPT in operator =()
[all …]
/third_party/boost/libs/smart_ptr/test/
Dintrusive_ptr_test.cpp142 typedef boost::intrusive_ptr<X>::element_type T; in test()
154 boost::intrusive_ptr<X> px; in default_constructor()
161 boost::intrusive_ptr<X> px(0); in pointer_constructor()
166 boost::intrusive_ptr<X> px(0, false); in pointer_constructor()
178 boost::intrusive_ptr<X> px(p); in pointer_constructor()
197 boost::intrusive_ptr<X> px(p, false); in pointer_constructor()
208 boost::intrusive_ptr<X> px; in copy_constructor()
209 boost::intrusive_ptr<X> px2(px); in copy_constructor()
214 boost::intrusive_ptr<Y> py; in copy_constructor()
215 boost::intrusive_ptr<X> px(py); in copy_constructor()
[all …]
Dintrusive_ptr_move_test.cpp135 boost::intrusive_ptr<X> p( new X ); in main()
138 boost::intrusive_ptr<X> p2( std::move( p ) ); in main()
147 boost::intrusive_ptr<Y> p( new Y ); in main()
150 boost::intrusive_ptr<X> p2( std::move( p ) ); in main()
159 boost::intrusive_ptr<X> p( new X ); in main()
162 boost::intrusive_ptr<X> p2; in main()
172 boost::intrusive_ptr<X> p( new X ); in main()
175 boost::intrusive_ptr<X> p2( new X ); in main()
186 boost::intrusive_ptr<Y> p( new Y ); in main()
189 boost::intrusive_ptr<X> p2; in main()
[all …]
Dpointer_to_other_test.cpp60 …assert_same_type< boost::pointer_to_other< boost::intrusive_ptr<X>, Y >::type, boost::intrusive_pt… in main()
61 …assert_same_type< boost::pointer_to_other< boost::intrusive_ptr<X>, void >::type, boost::intrusive… in main()
62 …assert_same_type< boost::pointer_to_other< boost::intrusive_ptr<void>, Y >::type, boost::intrusive… in main()
Dip_convertible_test.cpp40 int f( boost::intrusive_ptr<X> ) in f()
45 int f( boost::intrusive_ptr<Y> ) in f()
52 BOOST_TEST( 1 == f( boost::intrusive_ptr<Z>() ) ); in main()
Dintrusive_ref_counter_test.cpp125 boost::intrusive_ptr< N1::my_class > p = new N1::my_class(); in main()
130 boost::intrusive_ptr< N2::my_class > p = new N2::my_class(); in main()
143 boost::intrusive_ptr< N6::Z > p1 = new N6::Z(); in main()
146 boost::intrusive_ptr< N3::root > p2 = p1; in main()
Dip_hash_test2.cpp59 boost::intrusive_ptr<X> p1, p2( new X ); in main()
61 BOOST_TEST_EQ( std::hash< boost::intrusive_ptr<X> >()( p1 ), std::hash< X* >()( p1.get() ) ); in main()
62 BOOST_TEST_EQ( std::hash< boost::intrusive_ptr<X> >()( p2 ), std::hash< X* >()( p2.get() ) ); in main()
/third_party/boost/libs/interprocess/test/
Dintrusive_ptr_test.cpp97 typedef boost::interprocess::intrusive_ptr<X, VP>::element_type T; in test()
109 boost::interprocess::intrusive_ptr<X, VP> px; in default_constructor()
116 boost::interprocess::intrusive_ptr<X, VP> px(0); in pointer_constructor()
121 boost::interprocess::intrusive_ptr<X, VP> px(0, false); in pointer_constructor()
129 boost::interprocess::intrusive_ptr<X, VP> px(p); in pointer_constructor()
141 boost::interprocess::intrusive_ptr<X, VP> px(p, false); in pointer_constructor()
150 boost::interprocess::intrusive_ptr<X, VP> px; in copy_constructor()
151 boost::interprocess::intrusive_ptr<X, VP> px2(px); in copy_constructor()
156 boost::interprocess::intrusive_ptr<Y, VP> py; in copy_constructor()
157 boost::interprocess::intrusive_ptr<X, VP> px(py); in copy_constructor()
[all …]
/third_party/mesa3d/src/gallium/frontends/clover/util/
Dpointer.hpp116 class intrusive_ptr { class
118 intrusive_ptr(T *q = NULL) : p(q) { in intrusive_ptr() function in clover::intrusive_ptr
123 intrusive_ptr(const intrusive_ptr &ptr) : in intrusive_ptr() function in clover::intrusive_ptr
124 intrusive_ptr(ptr.p) { in intrusive_ptr()
127 intrusive_ptr(intrusive_ptr &&ptr) : in intrusive_ptr() function in clover::intrusive_ptr
132 ~intrusive_ptr() { in ~intrusive_ptr()
137 intrusive_ptr &
138 operator=(intrusive_ptr ptr) { in operator =()
144 operator==(const intrusive_ptr &ref) const { in operator ==()
149 operator!=(const intrusive_ptr &ref) const { in operator !=()
/third_party/boost/boost/xpressive/detail/core/
Doptimize.hpp28 intrusive_ptr<finder<BidiIter> > optimize_regex in optimize_regex()
37 return intrusive_ptr<finder<BidiIter> > in optimize_regex()
44 return intrusive_ptr<finder<BidiIter> > in optimize_regex()
51 return intrusive_ptr<finder<BidiIter> > in optimize_regex()
57 return intrusive_ptr<finder<BidiIter> >(); in optimize_regex()
64 intrusive_ptr<finder<BidiIter> > optimize_regex in optimize_regex()
78 return intrusive_ptr<finder<BidiIter> > in optimize_regex()
93 intrusive_ptr<matchable_ex<BidiIter> const> const &regex in common_compile()
Dadaptor.hpp73 inline intrusive_ptr<Base const> make_adaptor(Xpr const &xpr) in make_adaptor()
75 return intrusive_ptr<Base const>(new xpression_adaptor<Xpr, Base>(xpr)); in make_adaptor()
/third_party/boost/boost/statechart/
Devent_base.hpp56 intrusive_ptr< const event_base > intrusive_from_this() const;
69 virtual intrusive_ptr< const event_base > clone() const = 0;
108 inline intrusive_ptr< const event_base > event_base::intrusive_from_this() const in intrusive_from_this()
112 return intrusive_ptr< const event_base >( this ); in intrusive_from_this()
Devent.hpp64 virtual intrusive_ptr< const event_base > clone() const in clone()
66 return intrusive_ptr< const event_base >( new MostDerived( in clone()
/third_party/mesa3d/src/gallium/frontends/clover/core/
Dprintf.hpp34 create(const intrusive_ptr<command_queue> &q,
48 printf_handler(const intrusive_ptr<command_queue> &q,
52 intrusive_ptr<command_queue> _q;
/third_party/boost/libs/statechart/example/PingPong/
DPlayer.hpp52 boost::intrusive_ptr< T > MakeIntrusive( T * pObject ) in MakeIntrusive()
54 return boost::intrusive_ptr< T >( pObject ); in MakeIntrusive()
61 boost::function1< void, const boost::intrusive_ptr< const BallReturned > & >
/third_party/boost/tools/quickbook/src/
Dsymbols.hpp74 boost::intrusive_ptr<tst_node> left;
75 boost::intrusive_ptr<tst_node> middle;
76 boost::intrusive_ptr<tst_node> right;
100 typedef boost::intrusive_ptr<node_t> node_ptr;
/third_party/boost/boost/log/attributes/
Dattribute.hpp89 intrusive_ptr< impl > m_pImpl;
113 explicit attribute(intrusive_ptr< impl > p) BOOST_NOEXCEPT { m_pImpl.swap(p); } in attribute()
168 void set_impl(intrusive_ptr< impl > p) BOOST_NOEXCEPT { m_pImpl.swap(p); } in set_impl()
Dmutable_constant.hpp110 intrusive_ptr< attr_value > m_Value;
134 intrusive_ptr< attr_value > p = new attr_value(value); in set()
141 intrusive_ptr< attr_value > p = new attr_value(boost::move(value)); in set()
234 intrusive_ptr< attr_value > m_Value;
Dattribute_value.hpp93 virtual intrusive_ptr< impl > detach_from_thread() in detach_from_thread()
111 intrusive_ptr< impl > m_pImpl;
134 explicit attribute_value(intrusive_ptr< impl > p) BOOST_NOEXCEPT { m_pImpl.swap(p); } in attribute_value()
/third_party/boost/boost/phoenix/function/
Dlazy_reuse.hpp130 boost::intrusive_ptr<const M> ref;
134 if( !ref ) ref = boost::intrusive_ptr<const M>( new M(f,x) ); in operator ()()
174 boost::intrusive_ptr<const M> ref;
178 if( !ref ) ref = boost::intrusive_ptr<const M>( new M(f,x,y) ); in operator ()()
225 boost::intrusive_ptr<const M> ref;
229 if( !ref ) ref = boost::intrusive_ptr<const M>( new M(f,x,y,z) ); in operator ()()
278 boost::intrusive_ptr<const M> ref;
282 if( !ref ) ref = boost::intrusive_ptr<const M>( new M(f,w,x,y,z) ); in operator ()()
/third_party/boost/boost/xpressive/detail/dynamic/
Dsequence.hpp41 sequence(intrusive_ptr<dynamic_xpression<Matcher, BidiIter> > const &xpr) in sequence()
53 …sequence(intrusive_ptr<dynamic_xpression<alternate_matcher<alternates_vector<BidiIter>, Traits>, B… in sequence()
157 intrusive_ptr<alt_end_xpr_type> alt_end_xpr_;
/third_party/boost/boost/xpressive/detail/utility/
Dtracking_ptr.hpp432 if(intrusive_ptr<element_type> impl = this->fork_()) in get()
449 typedef intrusive_ptr<element_type> tracking_ptr::* unspecified_bool_type;
478 intrusive_ptr<element_type> fork_() const in fork_()
480 intrusive_ptr<element_type> impl; in fork_()
498 mutable intrusive_ptr<element_type> impl_;
/third_party/boost/libs/fiber/src/algo/
Dwork_stealing.cpp27 std::vector< intrusive_ptr< work_stealing > > work_stealing::schedulers_{};
31 std::vector< intrusive_ptr< work_stealing > > & schedulers) { in init_()
33 std::vector< intrusive_ptr< work_stealing > >{ thread_count, nullptr }.swap( schedulers); in init_()

1234