HydraExpress™ C++ 2020 |
HydraExpress™ C++ API Reference Guide |
Product Documentation: HydraExpress C++ Documentation Home |
A subtype of NamedObjectImp used to wrap an object instance in a NamedObject handle. More...
#include <rwsf/core/NamedObject.h>
Public Member Functions | |
TypedNamedObjectImp () | |
TypedNamedObjectImp (const T &objImpl) | |
T | getValue () const |
TypeNamedObjectImp is a subtype of NamedObjectImp and can be used to wrap an object instance in a NamedObject handle. The object wrapped by this NamedObject body type is passed by value, so performance considerations should be taken into account.
Since this is a templatized function. the type of object wrapped serves as the template parameter to this class and its functions. There are two ways to create a PointerNamedObjectImp:
In both cases, the stored object is local to the TypedNamedObjectImp instance, so no action is necessary regarding the object's lifetime.
rwsf::TypedNamedObjectImp< T >::TypedNamedObjectImp | ( | ) |
Creates a TypedNamedObjectImp body with a newly created object of type T
. The type T
must have a default constructor defined.
rwsf::TypedNamedObjectImp< T >::TypedNamedObjectImp | ( | const T & | objImpl | ) |
Creates a TypedNamedObjectImp body, wrapping the given object objImpl. The objImpl is copied during construction.
T rwsf::TypedNamedObjectImp< T >::getValue | ( | ) | const |
Returns a copy of the stored object.
Copyright © 2020 Rogue Wave Software, Inc. All Rights Reserved. |