#include <Teuchos_ConstNonconstObjectContainer.hpp>
Public Member Functions | |
| ConstNonconstObjectContainer () | |
| . Constructs to uninitialized | |
| ConstNonconstObjectContainer (const RefCountPtr< ObjType > &obj) | |
. Calls initialize() with a non-const object. | |
| ConstNonconstObjectContainer (const RefCountPtr< const ObjType > &obj) | |
. Calls initialize() with a const object. | |
| void | initialize (const RefCountPtr< ObjType > &obj) |
| . Initialize using a non-const object. Allows both const and non-const access to the contained object. | |
| void | initialize (const RefCountPtr< const ObjType > &obj) |
| . Initialize using a const object. Allows only const access enforced with a runtime check. | |
| void | uninitialize () |
| . Uninitialize. | |
| bool | isConst () const |
| Returns true if const-only access to the object is allowed. | |
| RefCountPtr< ObjType > | getNonconstObj () |
| Get an RCP to the non-const contained object. | |
| RefCountPtr< const ObjType > | getConstObj () const |
| Get an RCP to the const contained object. | |
| RefCountPtr< const ObjType > | operator() () const |
Perform shorthand for getConstObj(). | |
This class is simple enough and developers are encouraged to look at the simple inline definition of this class.
The default copy constructor and assignment operator functions are allowed and result in shallow copied (i.e. just the RCP objects are copied). However, the protection of const will be maintained in the copied/assigned objects as well.
Definition at line 48 of file Teuchos_ConstNonconstObjectContainer.hpp.
|
|||||||||
|
. Constructs to uninitialized
Definition at line 51 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
||||||||||
|
. Calls
Definition at line 54 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
||||||||||
|
. Calls
Definition at line 57 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
||||||||||
|
. Initialize using a non-const object. Allows both const and non-const access to the contained object.
Definition at line 61 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
||||||||||
|
. Initialize using a const object. Allows only const access enforced with a runtime check.
Definition at line 65 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
|||||||||
|
. Uninitialize.
Definition at line 68 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
|||||||||
|
Returns true if const-only access to the object is allowed.
Definition at line 71 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
|||||||||
|
Get an RCP to the non-const contained object. Preconditions:
Postconditions:
Definition at line 86 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
|||||||||
|
Get an RCP to the const contained object.
If Definition at line 100 of file Teuchos_ConstNonconstObjectContainer.hpp. |
|
|||||||||
|
Perform shorthand for
Definition at line 103 of file Teuchos_ConstNonconstObjectContainer.hpp. |
1.3.9.1