Teuchos_RefCountPtrDecl.hpp File Reference

Reference-counted pointer class and non-member templated function definitions. More...

#include "Teuchos_any.hpp"

Include dependency graph for Teuchos_RefCountPtrDecl.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Teuchos
namespace  Teuchos::PrivateUtilityPack

Classes

class  Teuchos::DeallocDelete< T >
 Policy class for deallocator that uses delete to delete a pointer which is used by RefCountPtr. More...
class  Teuchos::RefCountPtr< T >
 Templated class for reference counted smart pointers. More...

Defines

#define REFCOUNTPTR_INLINE

Enumerations

enum  ENull { null }
 Used to initialize a RefCountPtr object to NULL using an implicit conversion! More...

Functions

template<class T>
RefCountPtr< T > rcp (T *p, bool owns_mem=true)
 Create a RefCountPtr object properly typed.
template<class T, class Dealloc_T>
RefCountPtr< T > rcp (T *p, Dealloc_T dealloc, bool owns_mem)
 Initialize from a raw pointer with a deallocation policy.
template<class T2, class T1>
RefCountPtr< T2 > rcp_implicit_cast (const RefCountPtr< T1 > &p1)
 Implicit cast of underlying RefCountPtr type from T1* to T2*.
template<class T2, class T1>
RefCountPtr< T2 > rcp_static_cast (const RefCountPtr< T1 > &p1)
 Static cast of underlying RefCountPtr type from T1* to T2*.
template<class T2, class T1>
RefCountPtr< T2 > rcp_const_cast (const RefCountPtr< T1 > &p1)
 Constant cast of underlying RefCountPtr type from T1* to T2*.
template<class T2, class T1>
RefCountPtr< T2 > rcp_dynamic_cast (const RefCountPtr< T1 > &p1)
 Dynamic cast of underlying RefCountPtr type from T1* to T2*.
template<class T1, class T2>
void set_extra_data (const T1 &extra_data, const std::string &name, RefCountPtr< T2 > *p, bool force_unique=true)
 Set extra data associated with a RefCountPtr object.
template<class T1, class T2>
T1 & get_extra_data (RefCountPtr< T2 > &p, const std::string &name)
 Get a non-const reference to extra data associated with a RefCountPtr object.
template<class T1, class T2>
const T1 & get_extra_data (const RefCountPtr< T2 > &p, const std::string &name)
 Get a const reference to extra data associated with a RefCountPtr object.
template<class Dealloc_T, class T>
Dealloc_T & get_dealloc (RefCountPtr< T > &p)
 Return a non-const reference to the underlying deallocator object.
template<class Dealloc_T, class T>
const Dealloc_T & get_dealloc (const RefCountPtr< T > &p)
 Return a const reference to the underlying deallocator object.


Detailed Description

Reference-counted pointer class and non-member templated function definitions.

Definition in file Teuchos_RefCountPtrDecl.hpp.


Define Documentation

#define REFCOUNTPTR_INLINE
 

Definition at line 42 of file Teuchos_RefCountPtrDecl.hpp.


Generated on Thu Sep 18 12:42:51 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1