|
The Vish Visualization Shell 0.3
Vish
|
A polymorphic value of a function call argument or function return value. More...
#include <ocean/plankton/VScript.hpp>
Classes | |
| struct | iterator |
| struct | Map |
Public Member Functions | |
| RefPtr< VScriptTypedValue > | get (const type_info &what) const |
| Get the type representation for a given type. | |
| RefPtr< VScriptTypedValue > | get (const type_info &what, const type_info &default_type) const |
| Get a typed representation with a default, if the preferred type is not available. | |
| bool | hasType (const type_info &what) |
| Check if the specified type is present here. | |
| void | insert (const type_info &what, const RefPtr< VScriptTypedValue > &V) |
| Insert a typed parameter value. | |
| bool | isUnique () const |
| Check whether there is exactly one type implementation. | |
| int | polymorphism () const |
| Return the number of types stored here. | |
| VScriptValue () | |
| Default constructor. | |
| VScriptValue (const type_info &what, const RefPtr< VScriptTypedValue > &V) | |
| Construct a VScriptValue from a type and value. | |
| VScriptValue (const type_info &what, const string &v) | |
| Shortcut for constructing a VScriptValue directly from an encoded string (using constructor of VScriptTypedValue(string) ). | |
| ~VScriptValue () | |
| Destructor. | |
Public Member Functions inherited from MemCore::ReferenceBase< VScriptValue > | |
| auto | getObjectCountID () const noexcept |
| Get a unique ID for this object in the given domain. | |
| bool | isIdentical (const WeakPtr< VScriptValue, VScriptValue > &PossibleSelf) const noexcept |
| Check if this object is identical to the one used by the given pointer. | |
| void | mkAutoDestructive () |
| Marks this object as being automatically destructed, e.g. | |
| refcount_t | refcount () const noexcept |
| The strong reference count. | |
| ReferenceBase (VScriptValue *that) noexcept | |
| Constructor, initializes reference counter to zero. | |
| const auto & | self () const |
| Return weak pointer to the object self. | |
| refcount_t | wrefcount () const noexcept |
| The weak reference count. | |
Additional Inherited Members | |
Public Types inherited from MemCore::ReferenceBase< VScriptValue > | |
| using | reference_domain_t = VScriptValue |
| The type of the base class. | |
| using | SelfPtr_t = WeakPtr< VScriptValue, VScriptValue > |
| Type for a pointer to this object itself. | |
Protected Member Functions inherited from MemCore::ReferenceBase< VScriptValue > | |
| virtual void | extremeUnction () |
| A virtual function that will be called just before the object is destroyed. | |
| ReferenceBase & | operator= (const ReferenceBase &R) |
| Protected assignment operator (should not be called). | |
| void | suicide () |
| Delete this. | |
| virtual | ~ReferenceBase () |
| Virtual destructor. | |
A polymorphic value of a function call argument or function return value.
A VScriptValue is a collection of possible value representations (strings) for a set of types.
VScriptValue objects are what is contained within a VScriptParameters object, which is passed to a function call object.