Teuchos::WorkspaceStoreInitializeable Class Reference
[Set of utilities for allocating temporary workspace.]

WorkspaceStore class that can be used to actually reinitialize memory. More...

#include <Teuchos_Workspace.hpp>

Inheritance diagram for Teuchos::WorkspaceStoreInitializeable:

[legend]
Collaboration diagram for Teuchos::WorkspaceStoreInitializeable:
[legend]
List of all members.

Public Member Functions

 WorkspaceStoreInitializeable (size_t num_bytes=0)
 Default constructs to no memory set and will dynamically allocate all memory requested.
void initialize (size_t num_bytes)
 Set the size block of memory to be given as workspace.

Detailed Description

WorkspaceStore class that can be used to actually reinitialize memory.

The client can create concrete instances of this type and initalize the memory used. The client should call initialize(num_bytes) to set the number of bytes to allocate where num_bytes should be large enough to satisfy all but the largests of memory request needs.

Definition at line 319 of file Teuchos_Workspace.hpp.


Constructor & Destructor Documentation

Teuchos::WorkspaceStoreInitializeable::WorkspaceStoreInitializeable size_t  num_bytes = 0  )  [inline]
 

Default constructs to no memory set and will dynamically allocate all memory requested.

Definition at line 452 of file Teuchos_Workspace.hpp.


Member Function Documentation

void Teuchos::WorkspaceStoreInitializeable::initialize size_t  num_bytes  )  [inline]
 

Set the size block of memory to be given as workspace.

If there are any instantiated RawWorkspace objects then this function willl throw an exception. It must be called before any RawWorkspace objects are created.

Definition at line 457 of file Teuchos_Workspace.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:41:21 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1