ViennaGrid - The Vienna Grid Library  2.1.0
viennagrid/topology/line.hpp
Go to the documentation of this file.
00001 #ifndef VIENNAGRID_TOPOLOGY_LINE_HPP
00002 #define VIENNAGRID_TOPOLOGY_LINE_HPP
00003 
00004 /* =======================================================================
00005    Copyright (c) 2011-2014, Institute for Microelectronics,
00006                             Institute for Analysis and Scientific Computing,
00007                             TU Wien.
00008 
00009                             -----------------
00010                      ViennaGrid - The Vienna Grid Library
00011                             -----------------
00012 
00013    License:      MIT (X11), see file LICENSE in the base directory
00014 ======================================================================= */
00015 
00016 #include "viennagrid/forwards.hpp"
00017 #include "viennagrid/topology/vertex.hpp"
00018 
00023 namespace viennagrid
00024 {
00025 
00026   //for compatibility: allow hypercube<1> to be used as line_tag as well:
00028   template <>
00029   struct hypercube_tag<1>
00030   {
00031     static const int dim = 1;
00032     static std::string name() { return "Line"; }
00033   };
00034 
00035 
00036   namespace detail
00037   {
00038 
00039     //Line:
00041     template<typename BoundaryElementType>
00042     struct boundary_element_generator<simplex_tag<1>, simplex_tag<0>, BoundaryElementType>
00043     {
00044       template<typename element_type, typename inserter_type>
00045       static void create_boundary_elements(element_type &, inserter_type &) {}
00046     };
00047 
00048   }
00049 
00050 }
00051 
00052 #endif
00053