/* * Copyright(c) 2006 to 2021 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_DETAIL_LOANED_SAMPLES_IMPL_HPP_ #define CYCLONEDDS_DDS_SUB_DETAIL_LOANED_SAMPLES_IMPL_HPP_ /** * @file */ /* * OMG PSM class declaration */ // Implementation namespace dds { namespace sub { template class DELEGATE> LoanedSamples::LoanedSamples() : delegate_(new DELEGATE()) { } template class DELEGATE> LoanedSamples::~LoanedSamples() { } template class DELEGATE> LoanedSamples::LoanedSamples(const LoanedSamples& other): delegate_(other.delegate_) { } template class DELEGATE> LoanedSamples::LoanedSamples(LoanedSamples&& other): delegate_(other.delegate_) { } template class DELEGATE> typename LoanedSamples::const_iterator LoanedSamples::begin() const { return delegate()->begin(); } template class DELEGATE> typename LoanedSamples::const_iterator LoanedSamples::end() const { return delegate()->end(); } template class DELEGATE> const typename LoanedSamples::DELEGATE_REF_T& LoanedSamples::delegate() const { return delegate_; } template class DELEGATE> typename LoanedSamples::DELEGATE_REF_T& LoanedSamples::delegate() { return delegate_; } template class DELEGATE> uint32_t LoanedSamples::length() const { return delegate_->length(); } } } // End of implementation #endif /* CYCLONEDDS_DDS_SUB_DETAIL_LOANED_SAMPLES_IMPL_HPP_ */