RTI Connext .Net APIs  Version 5.2.0
 All Classes Namespaces Functions Variables Enumerations Properties Groups Pages
DDS::ICopyable< T > Interface Template Reference

<<extension>> <<interface>> Interface for all the user-defined data type classes that support copy. More...

#include <managed_sequence.h>

Inheritance diagram for DDS::ICopyable< T >:
DDS::Bytes DDS::DynamicData DDS::KeyedBytes DDS::KeyedString DDS::ParticipantBuiltinTopicData DDS::PublicationBuiltinTopicData DDS::SubscriptionBuiltinTopicData DDS::TopicBuiltinTopicData Foo Foo

Detailed Description

template<typename T>
interface DDS::ICopyable< T >

<<extension>> <<interface>> Interface for all the user-defined data type classes that support copy.

A class implements the DDS::ICopyable interface to indicate that it allows its entire state to be replaced with the state of another object. This state copy is a deep copy, such that subsequent changes to any part of one object will not be observed in the other.

Therefore, in general, object references in this object cannot simply be reassigned to those in the source object. (Strings are an exception to this rule, because they are immutable.)

Examples:
HelloWorld.cpp.

RTI Connext .Net APIs Version 5.2.0 Copyright © Sun Jun 21 2015 Real-Time Innovations, Inc