The object_ptr holds a pointer to an serializable.
More...
#include <object_ptr.hpp>
Inherits matador::object_holder.
template<class T>
class matador::object_ptr< T >
The object_ptr holds a pointer to an serializable.
- Template Parameters
-
T | The type of the serializable. |
The object_ptr holds a pointer to an object. The object_ptr is a wrapper class for the object class It has a reference count mechanism. The objects inserted into the object_store are returned as a object_ptr and should be used through the object_ptr class.
◆ object_type
Shortcut for serializable type.
◆ self
◆ object_ptr() [1/6]
◆ object_ptr() [2/6]
◆ object_ptr() [3/6]
Move constructor
- Parameters
-
◆ object_ptr() [4/6]
◆ object_ptr() [5/6]
◆ object_ptr() [6/6]
Create an object_ptr from an object_proxy
- Parameters
-
◆ create_identifier()
Creates a new identifier, represented by the identifier of the underlying type.
- Returns
- A new identifier.
Implements matador::identifiable_holder.
◆ get() [1/2]
Return the pointer to the serializable of type T.
Return the pointer to the serializable of type T. If there isn't a valid serializable 0 (null) is returned.
- Returns
- The pointer to the serializable of type T.
◆ get() [2/2]
Return the pointer to the serializable of type T.
Return the pointer to the serializable of type T. If there isn't a valid serializable 0 (null) is returned.
- Returns
- The pointer to the serializable of type T.
◆ modify()
The modify method allows to modify the underlying object. It ensures that this object is marked as modified in the object_store and all registered observers are notified
- Returns
- Pointer to the underlying object
◆ operator*() [1/2]
Return the reference to the serializable of type T.
Return the reference to the serializable of type T. If there isn't a valid serializable 0 (null) is returned.
- Returns
- The reference to the serializable of type T.
◆ operator*() [2/2]
Return the reference to the serializable of type T.
Return the reference to the serializable of type T. If there isn't a valid serializable 0 (null) is returned.
- Returns
- The reference to the serializable of type T.
◆ operator->()
Return the pointer to the serializable of type T.
Return the pointer to the serializable of type T. If there isn't a valid serializable 0 (null) is returned.
- Returns
- The pointer to the serializable of type T.
◆ operator=() [1/4]
Copy assignes an object_ptr from the given has_one object.
- Parameters
-
x | The has_one object to created the object_ptr from |
- Returns
- A reference to the created object_ptr
◆ operator=() [2/4]
Move assignment constructor
- Parameters
-
◆ operator=() [3/4]
◆ operator=() [4/4]
Assign operator.
- Parameters
-
x | The x serializable to assign from. |
◆ type()
The documentation for this class was generated from the following files:
- matador/object/abstract_container.hpp
- matador/object/object_ptr.hpp