#include <ParmParse.H>
Inheritance diagram for PP_CpClassPtr< T >:
Public Member Functions | |
PP_CpClassPtr () | |
: The default constructor. The wrapped pointer is null. | |
PP_CpClassPtr (T *rhs) | |
: Construct a PP_CpPtr<T> setting the wrapped pointer to rhs. | |
PP_CpClassPtr (const PP_CpClassPtr< T > &rhs) | |
PP_CpClassPtr< T > & | operator= (T *rhs) |
PP_CpClassPtr< T > & | operator= (const PP_CpClassPtr< T > &rhs) |
T * | operator-> () const |
: Applies operator-> to the wrapped pointer. |
The template class PP_CpClassPtr<T> is derived from PP_CpPtr<T>. It provides a simple wrapper around a pointer to type T (a T*) that "does the right thing" when copied from one PP_CpPtr<T> to another. The type T MUST be a user-defined type, not an intrinsic type. Given this restriction, we can supply an operator->().
This is a convenience class for ParmParse and will not be in any way supported by anyone at ANAG.
|
: The default constructor. The wrapped pointer is null.
|
|
: Construct a PP_CpPtr<T> setting the wrapped pointer to rhs.
|
|
: The copy constructor. If the pointer wrapped by rhs is null, the wrapped pointer is null here as well. Otherwise, the contained pointer here is set to a new'd copy of that wrapped by rhs, with the two pointed-to values being identical. This assumes that type T has a well-defined and accessible copy constructor. T must also be a concrete type, not a abstract type. |
|
: Applies operator-> to the wrapped pointer.
|
|
: The copy assignment operator. If the pointer wrapped by rhs is null, the wrapped pointer is null here as well. Otherwise, the contained pointer here is set to a new'd copy of that wrapped by rhs, with the two pointed-to values being identical. This assumes that type T has a well-defined and accessible copy constructor. T must also be a concrete type, not a abstract type. |
|
: Sets the wrapped pointer to rhs. Deletes the previously wrapped pointer. Reimplemented from PP_CpPtr< T >. |