#include <Teuchos_Workspace.hpp>
Public Member Functions | |
| RawWorkspace (WorkspaceStore *workspace_store, size_t num_bytes) | |
Allocate num_bytes bytes of temporary workspace. When this object is created if workspace_store != NULL the workspace_store object will be used to get the raw memory. If workspace_store == NULL || workspace_store->num_bytes_remaining() < num_bytes then this memory will have to be dynamically allocated. | |
| ~RawWorkspace () | |
| Deallocate workspace. | |
| size_t | num_bytes () const |
| Return the number of bytes of raw workspace. | |
| char * | workspace_ptr () |
| Give a raw pointer to the beginning of the workspace. | |
| const char * | workspace_ptr () const |
| | |
Friends | |
| class | WorkspaceStore |
| | |
Definition at line 89 of file Teuchos_Workspace.hpp.
|
||||||||||||
|
Allocate num_bytes bytes of temporary workspace. When this object is created if Preconditons:
Definition at line 109 of file Teuchos_Workspace.cpp. |
|
|
Deallocate workspace.
Definition at line 141 of file Teuchos_Workspace.cpp. |
|
|
Return the number of bytes of raw workspace.
Definition at line 447 of file Teuchos_Workspace.hpp. |
|
|
Give a raw pointer to the beginning of the workspace.
Definition at line 453 of file Teuchos_Workspace.hpp. |
|
|
Definition at line 459 of file Teuchos_Workspace.hpp. |
|
|
Definition at line 92 of file Teuchos_Workspace.hpp. |
1.3.9.1