# RTIRegion.cc

Go to the documentation of this file.

    00001 // ----------------------------------------------------------------------------
    00002 // CERTI - HLA RunTime Infrastructure
    00003 // Copyright (C) 2005  ONERA
    00004 //
    00005 // This file is part of CERTI-libCERTI
    00006 //
    00007 // CERTI-libCERTI is free software ; you can redistribute it and/or
    00008 // modify it under the terms of the GNU Lesser General Public License
    00009 // as published by the Free Software Foundation ; either version 2 of
    00010 // the License, or (at your option) any later version.
    00011 //
    00012 // CERTI-libCERTI is distributed in the hope that it will be useful, but
    00013 // WITHOUT ANY WARRANTY ; without even the implied warranty of
    00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    00015 // Lesser General Public License for more details.
    00016 //
    00017 // You should have received a copy of the GNU Lesser General Public
    00018 // License along with this program ; if not, write to the Free Software
    00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
    00020 // USA
    00021 //
    00022 // $Id: RTIRegion.cc,v 3.4 2007/07/06 09:25:18 erk Exp $
    00023 // ----------------------------------------------------------------------------
    00024
    00025
    00026 #include "RTIRegion.hh"
    00027 #include "RoutingSpace.hh"
    00028
    00029 namespace certi {
    00030
    00031 // ----------------------------------------------------------------------------
    00037 RTIRegion::RTIRegion(RegionHandle region_handle,
    00038              const RoutingSpace &routing_space,
    00039              size_t nb_extents)
    00040     : BaseRegion(region_handle), space(routing_space)
    00041 {
    00042     setExtents(std::vector<Extent>(nb_extents, space.createExtent()));
    00043 }
    00044
    00045 // ----------------------------------------------------------------------------
    00046 RTIRegion::~RTIRegion()
    00047 {
    00048 }
    00049
    00050 // ----------------------------------------------------------------------------
    00053 SpaceHandle
    00054 RTIRegion::getSpaceHandle() const
    00055     throw ()
    00056 {
    00057     return space.getHandle();
    00058 }
    00059
    00060 } // namespace certi
    00061
    00062 // $Id: RTIRegion.cc,v 3.4 2007/07/06 09:25:18 erk Exp $