Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90682878
reference_manager_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
Sun, Nov 3, 20:43
Size
2 KB
Mime Type
text/x-c++
Expires
Tue, Nov 5, 20:43 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22119056
Attached To
rLIBMULTISCALE LibMultiScale
reference_manager_interface.hh
View Options
/**
* @file reference_manager_interface.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @date Mon Sep 08 23:40:22 2014
*
* @brief This is the interface for managers of reference and coherency with
* migrations
*
* @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/>.
*
*/
#ifndef __AKANTU_REFERENCE_MANAGER_INTERFACE_HH__
#define __AKANTU_REFERENCE_MANAGER_INTERFACE_HH__
/* -------------------------------------------------------------------------- */
#include "attached_object.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
/* -------------------------------------------------------------------------- */
class ContainerInterface;
template <typename T> class ContainerArray;
template <typename Ref> class ReferenceManager;
/* -------------------------------------------------------------------------- */
class ReferenceManagerInterface {
public:
ReferenceManagerInterface() : flag_need_check_movements(false){};
virtual ~ReferenceManagerInterface(){};
//! set the Activate/UnActivate state of the reference manager
virtual void setState(bool state) { flag_need_check_movements = state; };
//! request to manage a subset
virtual void addSubSet(ContainerInterface &sub) = 0;
// //! request remove a subset from the manager
virtual void removeSubSet(const std::string &name) = 0;
//! request attaching a given vector v with a given container c
virtual void attachVector(ContainerArray<Real> &v, ContainerInterface &c) = 0;
//! request detaching a given vector v with a given container c
virtual void detachVector(ContainerArray<Real> &v, ContainerInterface &c) = 0;
//! request attaching a generic AttachedObject with a given container c
virtual void attachObject(AttachedObject &obj, ContainerInterface &c) = 0;
//! request detaching a generic AttachedObject with a given container c
virtual void detachObject(AttachedObject &obj, ContainerInterface &c) = 0;
protected:
bool flag_need_check_movements;
};
/* -------------------------------------------------------------------------- */
__END_LIBMULTISCALE__
#endif /* __AKANTU_REFERENCE_MANAGER_INTERFACE_HH__ */
Event Timeline
Log In to Comment