Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91529858
variable_inline_impl.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 11, 23:01
Size
2 KB
Mime Type
text/x-c++
Expires
Wed, Nov 13, 23:01 (2 d)
Engine
blob
Format
Raw Data
Handle
22278909
Attached To
rIOHELPER iohelper
variable_inline_impl.cc
View Options
/**
* @file variable_inline_impl.cc
*
* @author David Simon Kammer <david.kammer@epfl.ch>
*
* @date creation: Tue Jun 04 2013
* @date last modification: Tue Jun 04 2013
*
* @brief inline implementation of dumper visitor
*
* @section LICENSE
*
* Copyright (©) 2014 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu 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.
*
* Akantu 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 Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "paraview_helper.hh"
#include "dumper_lammps.hh"
#include "dumper_text.hh"
#ifndef __IOHELPER_VARIABLE_INLINE_IMPL_CC__
#define __IOHELPER_VARIABLE_INLINE_IMPL_CC__
/* -------------------------------------------------------------------------- */
__BEGIN_IOHELPER__
template
<
class
Cont
>
inline
void
Variable
<
Cont
>::
accept
(
Visitor
&
v
)
const
{
if
(
DumperText
*
ptr_txt
=
dynamic_cast
<
DumperText
*>
(
&
v
)){
ptr_txt
->
visitVariable
(
*
this
);
}
/*
else if (ParaviewHelper * ptr_ph = dynamic_cast<ParaviewHelper*>(&v)){
ptr_ph->visitVariable(*this);
} else if (iohelper::DumperLammps<iohelper::bond> * ptr_dlb = dynamic_cast<DumperLammps<bond>*>(&v)) {
ptr_dlb->visitVariable(*this);
} else if (DumperLammps<iohelper::atomic> * ptr_dla = dynamic_cast<DumperLammps<atomic>*>(&v)){
ptr_dla->visitVariable(*this);
}
*/
}
/* -------------------------------------------------------------------------- */
__END_IOHELPER__
#endif
/* __IOHELPER_VARIABLE_INLINE_IMPL_CC__ */
Event Timeline
Log In to Comment