Page MenuHomec4science

accept_filter_include.hh
No OneTemporary

File Metadata

Created
Sun, Jun 30, 16:48

accept_filter_include.hh

/**
* @file accept_filter_include.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @date Wed Apr 03 23:50:25 2013
*
* @brief This is a convenient file for the visitor mechanism
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* LibMultiScale is free software: you can redistribute it and/or modify it
* under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* LibMultiScale is distributed in the hope that it will be useful, but
* WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with LibMultiScale. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "lib_filter.hh"
/* -------------------------------------------------------------------------- */
__MY_TEMPLATE_DECL__
inline void __MY_CLASS__::accept(FilterInterface &v) {
if (1 == 2) {
}
#define BOOST_TYPE_CAST_FILTER(r, data, x) \
TYPE_CAST_FILTER(BOOST_PP_TUPLE_ELEM(2, 0, x))
#define TYPE_CAST_FILTER(filter_type) \
else if (filter_type<ContainerSubset> *_ptr = \
dynamic_cast<filter_type<ContainerSubset> *>(&v)) { \
__ROUTINE__ \
}
BOOST_PP_SEQ_FOR_EACH(BOOST_TYPE_CAST_FILTER, obj, LIST_FILTER)
#undef TYPE_CAST_FILTER
#undef BOOST_TYPE_CAST_FILTER
else {
LM_FATAL("unrecognized filter");
};
}

Event Timeline