Home | History | Annotate | Download | only in common

Lines Matching refs:operator

78 	operator ptr_type () { return _p; }
80 //! Const version of the pointer operator.
81 operator const_ptr_type () const { return _p; }
84 operator ref_type () { return *_p; }
86 //! Const version of the reference operator.
87 operator const_ref_type () const { return *_p; }
90 operator bool () const { return _p != 0; }
93 smart_ptr<T> & operator = (const_ptr_type p)
99 //! Another operator to allow you to treat the object just like a pointer.
100 ptr_type operator ->() { return _p; }
102 //! Another operator to allow you to treat the object just like a pointer.
103 const_ptr_type operator ->() const { return _p; }
105 // //! Pointer dereferencing operator.
106 // ref_type operator * () const { return *_p; }
108 // //! Const version of the pointer dereference operator.
109 // const_ref_type operator * () const { return *_p; }
118 * \brief Simple, standard smart pointer class that uses the array delete operator.
187 operator ptr_type () { return _p; }
189 //! Const version of the pointer operator.
190 operator const_ptr_type () const { return _p; }
193 operator ref_type () { return *_p; }
195 //! Const version of the reference operator.
196 operator const_ref_type () const { return *_p; }
199 operator bool () const { return _p != 0; }
202 smart_array_ptr<T> & operator = (const_ptr_type p)
208 //! Another operator to allow you to treat the object just like a pointer.
209 ptr_type operator ->() { return _p; }
211 //! Another operator to allow you to treat the object just like a pointer.
212 const_ptr_type operator ->() const { return _p; }
214 //! Indexing operator.
215 ref_type operator [] (unsigned index) { return _p[index]; }
217 //! Indexing operator.
218 const_ref_type operator [] (unsigned index) const { return _p[index]; }
220 // //! Pointer dereferencing operator.
221 // ref_type operator * () const { return *_p; }
223 // //! Const version of the pointer dereference operator.
224 // const_ref_type operator * () const { return *_p; }