AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ ShallowCopy() [3/3]

virtual void drama::sds::Id::ShallowCopy ( Id source,
const bool  outlives 
)
inlinevirtual

Shallow copy from sds::Id.


Copy another sds::Id item into this object. The existing SDS ID refered to by this object is first tidied up correctly.
After the copy, both the source and this object refer to the same SDS structure. The outlives parameter must be set correctly to determine which one destroys the underlying SDS structure.

Note that if outlives is true, then write access is required to source - hence this method's argument cannot be const. There is an alterative interface with a cost reference argument for the case where outlines might be false.

See also
sds::Id::Copy
Parameters
sourceThe Sds object to copy.
outlivesIf true this object is to outlive the source object.

References drama::CreateRunDramaTask().