#include <Teuchos_RCPNode.hpp>
Public Member Functions | |
| RCPNodeHandle (ENull null_arg=null) | |
| | |
| RCPNodeHandle (RCPNode *node, ERCPStrength strength_in=RCP_STRONG) | |
| | |
| RCPNodeHandle (const RCPNodeHandle &node_ref) | |
| | |
| RCPNodeHandle & | operator= (const RCPNodeHandle &node_ref) |
| (Strong guarantee). | |
| ~RCPNodeHandle () | |
| | |
| RCPNodeHandle | create_weak () const |
| | |
| RCPNodeHandle | create_strong () const |
| | |
| RCPNode * | node_ptr () const |
| | |
| bool | is_node_null () const |
| | |
| bool | is_valid_ptr () const |
| | |
| bool | same_node (const RCPNodeHandle &node2) const |
| | |
| int | strong_count () const |
| | |
| int | weak_count () const |
| | |
| int | total_count () const |
| | |
| int | count () const |
| Backward compatibility. | |
| ERCPStrength | strength () const |
| | |
| void | has_ownership (bool has_ownership_in) |
| | |
| bool | has_ownership () const |
| | |
| void | set_extra_data (const any &extra_data, const std::string &name, EPrePostDestruction destroy_when, bool force_unique) |
| | |
| any & | get_extra_data (const std::string &type_name, const std::string &name) |
| | |
| const any & | get_extra_data (const std::string &type_name, const std::string &name) const |
| | |
| any * | get_optional_extra_data (const std::string &type_name, const std::string &name) |
| | |
| const any * | get_optional_extra_data (const std::string &type_name, const std::string &name) const |
| | |
| void | debug_assert_not_null () const |
| | |
| template<class RCPType> | |
| void | assert_valid_ptr (const RCPType &rcp_obj) const |
| | |
| template<class RCPType> | |
| void | debug_assert_valid_ptr (const RCPType &rcp_obj) const |
| | |
Related Functions | |
| (Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &out, const RCPNodeHandle &node) |
| Ouput stream operator for RCPNodeHandle. | |
Again, this is *not* a user-level class. Instead, this class is used by all of the user-level reference-counting classes.
NOTE: I (Ross Bartlett) am not generally a big fan of handle classes and greatly prefer smart pointers. However, this is one case where a handle class makes sense. First, I want special behavior in some functions when the wrapped RCPNode pointer is null. Secound, I can't use one of the smart-pointer classes because this class is used to implement all of those smart-pointer classes!
Definition at line 484 of file Teuchos_RCPNode.hpp.
| Teuchos::RCPNodeHandle::RCPNodeHandle | ( | ENull | null_arg = null |
) | [inline] |
| Teuchos::RCPNodeHandle::RCPNodeHandle | ( | RCPNode * | node, | |
| ERCPStrength | strength_in = RCP_STRONG | |||
| ) | [inline] |
| Teuchos::RCPNodeHandle::RCPNodeHandle | ( | const RCPNodeHandle & | node_ref | ) | [inline] |
| Teuchos::RCPNodeHandle::~RCPNodeHandle | ( | ) | [inline] |
| RCPNodeHandle& Teuchos::RCPNodeHandle::operator= | ( | const RCPNodeHandle & | node_ref | ) | [inline] |
| RCPNodeHandle Teuchos::RCPNodeHandle::create_weak | ( | ) | const [inline] |
| RCPNodeHandle Teuchos::RCPNodeHandle::create_strong | ( | ) | const [inline] |
| RCPNode* Teuchos::RCPNodeHandle::node_ptr | ( | ) | const [inline] |
| bool Teuchos::RCPNodeHandle::is_node_null | ( | ) | const [inline] |
| bool Teuchos::RCPNodeHandle::is_valid_ptr | ( | ) | const [inline] |
| bool Teuchos::RCPNodeHandle::same_node | ( | const RCPNodeHandle & | node2 | ) | const [inline] |
| int Teuchos::RCPNodeHandle::strong_count | ( | ) | const [inline] |
| int Teuchos::RCPNodeHandle::weak_count | ( | ) | const [inline] |
| int Teuchos::RCPNodeHandle::total_count | ( | ) | const [inline] |
| int Teuchos::RCPNodeHandle::count | ( | ) | const [inline] |
| ERCPStrength Teuchos::RCPNodeHandle::strength | ( | ) | const [inline] |
| void Teuchos::RCPNodeHandle::has_ownership | ( | bool | has_ownership_in | ) | [inline] |
| bool Teuchos::RCPNodeHandle::has_ownership | ( | ) | const [inline] |
| void Teuchos::RCPNodeHandle::set_extra_data | ( | const any & | extra_data, | |
| const std::string & | name, | |||
| EPrePostDestruction | destroy_when, | |||
| bool | force_unique | |||
| ) | [inline] |
| any& Teuchos::RCPNodeHandle::get_extra_data | ( | const std::string & | type_name, | |
| const std::string & | name | |||
| ) | [inline] |
| const any& Teuchos::RCPNodeHandle::get_extra_data | ( | const std::string & | type_name, | |
| const std::string & | name | |||
| ) | const [inline] |
| any* Teuchos::RCPNodeHandle::get_optional_extra_data | ( | const std::string & | type_name, | |
| const std::string & | name | |||
| ) | [inline] |
| const any* Teuchos::RCPNodeHandle::get_optional_extra_data | ( | const std::string & | type_name, | |
| const std::string & | name | |||
| ) | const [inline] |
| void Teuchos::RCPNodeHandle::debug_assert_not_null | ( | ) | const [inline] |
| void Teuchos::RCPNodeHandle::assert_valid_ptr | ( | const RCPType & | rcp_obj | ) | const [inline] |
| void Teuchos::RCPNodeHandle::debug_assert_valid_ptr | ( | const RCPType & | rcp_obj | ) | const [inline] |
| std::ostream & operator<< | ( | std::ostream & | out, | |
| const RCPNodeHandle & | node | |||
| ) | [related] |
1.4.7