Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79572599
field_interface.hh
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
Tue, Aug 27, 04:12
Size
2 KB
Mime Type
text/x-c++
Expires
Thu, Aug 29, 04:12 (2 d)
Engine
blob
Format
Raw Data
Handle
20112190
Attached To
rAKA akantu
field_interface.hh
View Options
/**
* @file field_interface.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @date creation: Wed Dec 14 2011
* @date last modification: Tue Feb 05 2013
*
* @brief header for the field interface
*
*
* Copyright (©) 2010-2012, 2014 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* IOHelper 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.
*
* IOHelper 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 IOHelper. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef IOHELPER_CONTAINER_INTERFACE_HH_
#define IOHELPER_CONTAINER_INTERFACE_HH_
/* -------------------------------------------------------------------------- */
#include "visitor.hh"
/* -------------------------------------------------------------------------- */
namespace iohelper {
class FieldInterface {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
FieldInterface() = default;
virtual ~FieldInterface() = default;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
virtual void accept(Visitor & v) = 0;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
//! return true if the data is a constant size per element
virtual bool isHomogeneous()=0;
//! return the size per element (valid only if isHomogeneous is true)
virtual UInt getDim()=0;
//! return the description name of the container
virtual std::string getName()=0;
//! return the number of stored items (elements, nodes, etc...)
virtual UInt size()=0;
virtual DataType getDataType()=0;
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
};
/* -------------------------------------------------------------------------- */
}
#endif /* IOHELPER_CONTAINER_INTERFACE_HH_ */
Event Timeline
Log In to Comment