/* * Copyright(c) 2006 to 2020 ZettaScale Technology and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License * v. 1.0 which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause */ #ifndef CYCLONEDDS_DDS_SUB_SHARED_SAMPLES_IMPL_HPP_ #define CYCLONEDDS_DDS_SUB_SHARED_SAMPLES_IMPL_HPP_ /** * @file */ /* * OMG PSM class declaration */ // Implementation namespace dds { namespace sub { template class DELEGATE> SharedSamples::SharedSamples() : delegate_(new DELEGATE()) { } template class DELEGATE> SharedSamples::SharedSamples(dds::sub::LoanedSamples ls) : delegate_(new DELEGATE(ls)) { } template class DELEGATE> SharedSamples::~SharedSamples() { } template class DELEGATE> SharedSamples::SharedSamples(const SharedSamples& other) { delegate_ = other.delegate_; } template class DELEGATE> typename SharedSamples::const_iterator SharedSamples::begin() const { return delegate()->begin(); } template class DELEGATE> typename SharedSamples::const_iterator SharedSamples::end() const { return delegate()->end(); } template class DELEGATE> const typename SharedSamples::DELEGATE_REF_T& SharedSamples::delegate() const { return delegate_; } template class DELEGATE> typename SharedSamples::DELEGATE_REF_T& SharedSamples::delegate() { return delegate_; } template class DELEGATE> uint32_t SharedSamples::length() const { return delegate_->length(); } } } // End of implementation #endif /* CYCLONEDDS_DDS_SUB_SHARED_SAMPLES_IMPL_HPP_ */