/home/tetron/hack/vos/libs/vos/vos/meta_cast.hh File Reference
Go to the source code of this file.
Namespaces
- namespace VOS
Functions
- template<class C> VUtil::vRef< C > VOS::meta_cast (Vobject *v)
- A special cast which allows you to retrieve some interface (if available) on the supplied Vobject.
vRef<Vobject> vobj = site.createVobject2<Property, World>(); vRef<Property> property = meta_cast<Property>(vobj); vRef<World> w = meta_cast<World>(property);- Parameters:
-
v the object to be cast
- Returns:
- a vRef pointing to the new interface, or a null vRef if the vObject does not support this interface.
- A special cast which allows you to retrieve some interface (if available) on the supplied Vobject.
- template<class C> VUtil::vRef< C > VOS::meta_cast (Vobject &v)
- A special cast which allows you to retrieve some interface (if available) on the supplied Vobject.
vRef<Vobject> vobj = site.createVobject2<Property, World>(); vRef<Property> property = meta_cast<Property>(vobj); vRef<World> w = meta_cast<World>(property);- Parameters:
-
v the object to be cast
- Returns:
- a vRef pointing to the new interface, or a null vRef if the vObject does not support this interface.
- A special cast which allows you to retrieve some interface (if available) on the supplied Vobject.
- template<class C, class T> VUtil::vRef< C > VOS::meta_cast (VUtil::vRef< T > v)
- A special cast which allows you to retrieve some interface (if available) on the supplied Vobject.
- A special cast which allows you to retrieve some interface (if available) on the supplied Vobject.