#include "Teuchos_ConfigDefs.hpp"#include "Teuchos_RCP.hpp"#include "Teuchos_Describable.hpp"#include "Teuchos_Handleable.hpp"

Go to the source code of this file.
Classes | |
| class | Teuchos::ConstHandle< PointerType > |
| Templated handle class with strong const protection. More... | |
| class | Teuchos::Handle< PointerType > |
| Generic templated handle class. More... | |
Namespaces | |
| namespace | Teuchos |
| The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines. | |
Defines | |
| #define | TEUCHOS_HANDLE_CTORS(handle, contents) |
| This helper macro defines boilerplate constructors for classes deriving from Handle. | |
| #define | TEUCHOS_CONST_HANDLE_CTORS(handle, contents) |
| . This helper macro defines boilerplate constructors for classes deriving from ConstHandle. | |
| #define TEUCHOS_CONST_HANDLE_CTORS | ( | handle, | |||
| contents | ) |
Value:
handle( Teuchos::ENull _null = Teuchos::null ) : Teuchos::ConstHandle<contents >() {;} \ handle(const Teuchos::ConstHandleable<contents >* rawPtr) : Teuchos::ConstHandle<contents >(rawPtr) {;} \ handle(const Teuchos::RCP<const contents >& smartPtr) : Teuchos::ConstHandle<contents >(smartPtr){;}
If class MyHandle is a const handle to a type MyType, simply put
TEUCHOS_CONST_HANDLE_CTORS(MyHandle, MyType);
Definition at line 182 of file Teuchos_Handle.hpp.
| #define TEUCHOS_HANDLE_CTORS | ( | handle, | |||
| contents | ) |
Value:
handle() : Teuchos::Handle<contents >() {;} \
handle(Teuchos::Handleable<contents >* rawPtr) : Teuchos::Handle<contents >(rawPtr) {;} \
handle(const Teuchos::RCP<contents >& smartPtr) : Teuchos::Handle<contents >(smartPtr){;}
If class MyHandle is a handle to a type MyType, simply put
TEUCHOS_HANDLE_CTORS(MyHandle, MyType);
Definition at line 166 of file Teuchos_Handle.hpp.
1.5.9