Scopira
20080306
|
#include <object.h>
Public Types | |
typedef T | data_type |
Public Member Functions | |
count_ptr (void) | |
count_ptr (T *o) | |
count_ptr (const count_ptr< T > &o) | |
template<class Y > | |
count_ptr (const count_ptr< Y > &o) | |
~count_ptr () | |
void | set (T *o) |
count_ptr & | operator= (T *o) |
count_ptr & | operator= (const count_ptr< T > &o) |
bool | operator== (const count_ptr< T > &rhs) const |
bool | operator== (const T *rhs) const |
bool | operator!= (const count_ptr< T > &rhs) const |
bool | operator!= (const T *rhs) const |
bool | operator< (const count_ptr< T > &rhs) const |
scopira::tool::oflow_i & | print (scopira::tool::oflow_i &o) const |
T * | get (void) const |
T & | ref (void) const |
T * | operator-> (void) const |
T & | operator* (void) const |
bool | is_null (void) const |
Protected Attributes | |
T * | dm_ptr |
A reference counting auto pointer of scopira::tool::object and its decendants. This class has the following key characteristics:
You can use this class like so:
Here is a more complex example:
|
inline |
Constructor, null initializing
|
inline |
Initializing constructor
|
inline |
Copy constructor
|
inline |
Copy constructor
|
inline |
Destructor
|
inline |
Gets the current object as a regular pointer.
Referenced by scopira::tool::treenode::get_object(), scopira::core::model_i::get_tagged_model(), scopira::tool::property::get_value_as_object(), and scopira::tool::oobjflow_i::write_object_type().
|
inline |
Is the pointer null?
Referenced by scopira::core::model_i::get_tagged_model().
|
inline |
Comparison (not equals) operator - compares the internal pointer values.
|
inline |
Comparison (not equals) operator - compares the internal pointer value to the given pointer.
|
inline |
Convinient * deferencer.
|
inline |
Convinient -> accesor to the object
|
inline |
Comparison (less than) operator - compares the internal pointer values.
|
inline |
Basic assignment.
|
inline |
Basic assignment.
|
inline |
Comparison (equals) operator - compares the internal pointer values.
|
inline |
Comparison (equals) operator - compares the internal pointer value to the given pointer.
|
inline |
Pretty ascii printer, redirects to internal class.
|
inline |
Gets the current object, as a reference
|
inline |
Sets the current pointer. Any old pointer will ofcourse be unreferenced.