|
| 1 | +// StretchyList.h: Rcpp R/C++ interface class library -- stretchy lists |
| 2 | +// |
| 3 | +// Copyright (C) 2013 Romain Francois |
| 4 | +// |
| 5 | +// This file is part of Rcpp. |
| 6 | +// |
| 7 | +// Rcpp is free software: you can redistribute it and/or modify it |
| 8 | +// under the terms of the GNU General Public License as published by |
| 9 | +// the Free Software Foundation, either version 2 of the License, or |
| 10 | +// (at your option) any later version. |
| 11 | +// |
| 12 | +// Rcpp is distributed in the hope that it will be useful, but |
| 13 | +// WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | +// GNU General Public License for more details. |
| 16 | +// |
| 17 | +// You should have received a copy of the GNU General Public License |
| 18 | +// along with Rcpp. If not, see <http://www.gnu.org/licenses/>. |
| 19 | + |
| 20 | +#ifndef Rcpp_StretchyList_h |
| 21 | +#define Rcpp_StretchyList_h |
| 22 | + |
| 23 | +namespace Rcpp{ |
| 24 | + |
| 25 | + RCPP_API_CLASS(StretchyList_Impl), |
| 26 | + public DottedPairProxyPolicy<StretchyList_Impl<StoragePolicy> >, |
| 27 | + public DottedPairImpl<StretchyList_Impl<StoragePolicy> >{ |
| 28 | + public: |
| 29 | + |
| 30 | + RCPP_GENERATE_CTOR_ASSIGN(StretchyList_Impl) |
| 31 | + |
| 32 | + typedef typename DottedPairProxyPolicy<StretchyList_Impl>::DottedPairProxy Proxy ; |
| 33 | + typedef typename DottedPairProxyPolicy<StretchyList_Impl>::const_DottedPairProxy const_Proxy ; |
| 34 | + |
| 35 | + StretchyList_Impl(){} |
| 36 | + StretchyList_Impl(SEXP x){ |
| 37 | + Storage::set__(r_cast<LISTSXP>(x)) ; |
| 38 | + } |
| 39 | + |
| 40 | + void update(SEXP x){} |
| 41 | + |
| 42 | + } ; |
| 43 | + |
| 44 | + typedef StretchyList_Impl<PreserveStorage> StretchyList ; |
| 45 | +} |
| 46 | +#endif |
0 commit comments