32 #ifndef WORKSPACE_NG_INCLUDED 33 #define WORKSPACE_NG_INCLUDED 85 return ((ws[i].size () != 0)
109 template <
typename OutputStream>
void 124 template <
typename OutputStream,
typename Container>
void 127 for (
typename Container::const_iterator it = container.begin ();
128 it != container.end (); it++ )
INDEX Index
The type to use for all integer numbers and indices.
static Array< WsvRecord > wsv_data
Index nelem() const
Number of elements.
void duplicate(Index i)
Duplicate WSV.
void pop_free(Index i)
Pop the topmost wsv from its stack and free its memory.
bool is_initialized(Index i)
Checks existence of the given WSV.
void PrintWsvNames(OutputStream &outstream, const Container &container)
Print list of WSV names to output stream.
This file contains the definition of Array.
String context
Only for debugging.
virtual ~Workspace()
Destruct the workspace.
static void define_wsv_data()
void * operator[](Index i)
Retrieve pointer to the given WSV.
void PrintWsvName(OutputStream &outstream, Index i)
Print WSV name to output stream.
void * pop(Index i)
Pop the topmost wsv from its stack.
Workspace()
Construct a new workspace.
This can be used to make arrays out of anything.
void push(Index i, void *wsv)
Push a new wsv onto its stack.
static map< String, Index > WsvMap
static Index add_wsv(const WsvRecord &wsv)
void push_uninitialized(Index i, void *wsv)
Push a new wsv onto its stack but mark it as uninitialized.
static void define_wsv_map()
Array< stack< WsvStruct * > > ws
Workspace variable container.
This class contains all static information for one workspace variable.
void del(Index i)
Delete WSV.
Auxiliary header stuff related to workspace variable groups.