/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/external/stlplus/include/stlplus/smart_ptr.hpp Source File
|
Ratpac-two
|
smart_ptr.hpp
70 // destructor decrements the reference count and delete only when the last reference is destroyed
120 // find the number of aliases - used when you need to know whether an object is still referred to from elsewhere
128 // delete the object and make the pointer null - does not make it unique first, so all other pointers to this will be
132 // make the pointer unique and null in one step - does not affect other pointers that were pointing to the same object
136 // useful for expressions like p1.copy(p2) which makes p1 a pointer to a unique copy of the contents of p2
174 otext& print_simple_ptr(otext& str, const simple_ptr<T>& ptr, unsigned indent, std::string null_string);
178 // the dump routine dumps simple_ptr-specific information and then calls dump_pointer on the contents
231 // destructor decrements the reference count and delete only when the last reference is destroyed
252 // used as a prefix to a member access to the contained object e.g. p1->print() calls T::print()
281 // find the number of aliases - used when you need to know whether an object is still referred to from elsewhere
289 // delete the object and make the pointer null - does not make it unique first, so all other pointers to this will be
293 // make the pointer unique and null in one step - does not affect other pointers that were pointing to the same object
297 // useful for expressions like p1.copy(p2) which makes p1 a pointer to a unique copy of the contents of p2
329 std::string simple_ptr_clone_to_string(const simple_ptr_clone<T>& ptr, std::string null_string);
332 otext& print_simple_ptr_clone(otext& str, const simple_ptr_clone<T>& ptr, std::string null_string);
335 otext& print_simple_ptr_clone(otext& str, const simple_ptr_clone<T>& ptr, unsigned indent, std::string null_string);
341 // so therefore the class T should implement the persistent interface defined by the class persistent in persistent.hpp
383 // destructor decrements the reference count and delete only when the last reference is destroyed
404 // used as a prefix to a member access to the contained object e.g. p1->print() calls T::print()
431 // find the number of aliases - used when you need to know whether an object is still referred to from elsewhere
435 // delete the object and make the pointer null - does not make it unique first, so all other pointers to this will be
439 // make the pointer unique and null in one step - does not affect other pointers that were pointing to the same object
465 std::string simple_ptr_nocopy_to_string(const simple_ptr_nocopy<T>& ptr, std::string null_string);
468 otext& print_simple_ptr_nocopy(otext& str, const simple_ptr_nocopy<T>& ptr, std::string null_string);
471 otext& print_simple_ptr_nocopy(otext& str, const simple_ptr_nocopy<T>& ptr, unsigned indent, std::string null_string);
527 // destructor decrements the reference count and delete only when the last reference is destroyed
548 // used as a prefix to a member access to the contained object e.g. p1->print() calls T::print()
577 // find the number of aliases - used when you need to know whether an object is still referred to from elsewhere
585 // delete the object and make the pointer null - does not make it unique first, so all other pointers to this will be
589 // make the pointer unique and null in one step - does not affect other pointers that were pointing to the same object
593 // useful for expressions like p1.copy(p2) which makes p1 a pointer to a unique copy of the contents of p2
630 otext& print_smart_ptr(otext& str, const smart_ptr<T>& ptr, unsigned indent, std::string null_string);
634 // the dump routine dumps smart_ptr-specific information and then calls dump_pointer on the contents
687 // destructor decrements the reference count and delete only when the last reference is destroyed
708 // used as a prefix to a member access to the contained object e.g. p1->print() calls T::print()
737 // find the number of aliases - used when you need to know whether an object is still referred to from elsewhere
745 // delete the object and make the pointer null - does not make it unique first, so all other pointers to this will be
749 // make the pointer unique and null in one step - does not affect other pointers that were pointing to the same object
753 // useful for expressions like p1.copy(p2) which makes p1 a pointer to a unique copy of the contents of p2
787 otext& print_smart_ptr_clone(otext& str, const smart_ptr_clone<T>& ptr, std::string null_string);
790 otext& print_smart_ptr_clone(otext& str, const smart_ptr_clone<T>& ptr, unsigned indent, std::string null_string);
796 // so therefore the class T should implement the persistent interface defined by the class persistent in persistent.hpp
838 // destructor decrements the reference count and delete only when the last reference is destroyed
859 // used as a prefix to a member access to the contained object e.g. p1->print() calls T::print()
886 // find the number of aliases - used when you need to know whether an object is still referred to from elsewhere
890 // delete the object and make the pointer null - does not make it unique first, so all other pointers to this will be
894 // make the pointer unique and null in one step - does not affect other pointers that were pointing to the same object
919 std::string smart_ptr_nocopy_to_string(const smart_ptr_nocopy<T>& ptr, std::string null_string);
922 otext& print_smart_ptr_nocopy(otext& str, const smart_ptr_nocopy<T>& ptr, std::string null_string);
925 otext& print_smart_ptr_nocopy(otext& str, const smart_ptr_nocopy<T>& ptr, unsigned indent, std::string null_string);
Definition: persistent.hpp:64
Definition: textio.hpp:37
Definition: persistent.hpp:126
Definition: smart_ptr.hpp:196
Definition: smart_ptr.hpp:356
Definition: smart_ptr.hpp:35
Definition: smart_ptr.hpp:652
Definition: smart_ptr.hpp:487
Definition: smart_ptr.hpp:811
Definition: smart_ptr.hpp:492
Generated by