nw::ut::ResDynamicCast Function

Syntax

template <class TDown, class TBase>
TDown ResDynamicCast(
     TBase res
);

Template Arguments

Name Description
TDown Resource type to cast to.
TBase Resource type to cast from.

Arguments

Name Description
in res Resource to cast from.

Return Values

Casts the resource accessor as a TDown type and returns the result.

Description

Dynamically casts one resource-type object to another resource type. There is no support whatsoever for casting to a class having an entirely different inheritance hierarchy.


CONFIDENTIAL