VISH  0.2
Classes | Public Member Functions | Public Attributes
Wizt::VContext Struct Reference

A Context is always local and unique for each call. More...

#include </home/werner/origo/vish/ocean/plankton/VContext.hpp>

List of all members.

Classes

Public Member Functions

Public Attributes


Detailed Description

A Context is always local and unique for each call.

However, it may refer to a ValuePool which is persistent through many VContext objects, or which may also be shared among various VContext objects.

Note:
The Context is a mutex that can be used in a multithreaded environment. This is most conveniently used via the (exception-safe) synchronized statement:
       double value = 0;
        synchronized( Context )
        {
                mySlot << Context >> value;
        }
Examples:

exocoetida.cpp.


Constructor & Destructor Documentation

Wizt::VContext::VContext ( const RefPtr< ValuePoolProvider > &  myValuePoolProvider) [inline]

Context constructor, taking optional parameter ValuePoolProvider to setup the GhostValues in this context.

The current value of the ValuePool will be used. Note that a strong pointer to the ValuePool is stored here, such that the ValuePool is kept alive at least as long as the VContext is alive.


Member Function Documentation

Wizt::VContext::operator const RefPtr< ValuePool > & ( ) const [inline]

A VContext may be implicitely converted into a reference pointer to a ValuePool.

This simplifies various calls.


The documentation for this struct was generated from the following files: