File: Physical.h

package info (click to toggle)
madlib 1.3.0-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,912 kB
  • sloc: cpp: 39,850; sh: 10,088; makefile: 476
file content (56 lines) | stat: -rw-r--r-- 1,378 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// -*- C++ -*-
// -------------------------------------------------------------------
// MAdLib - Copyright (C) 2008-2009 Universite catholique de Louvain
//
// See the Copyright.txt and License.txt files for license information. 
// You should have received a copy of these files along with MAdLib. 
// If not, see <http://www.madlib.be/license/>
//
// Please report all bugs and problems to <contrib@madlib.be>
//
// Authors: Jean-Francois Remacle, Gaetan Compere
// -------------------------------------------------------------------

#ifndef _H_PHYSICAL
#define _H_PHYSICAL

#include <set>

// #ifdef _HAVE_GMSH_
// #include "GmshEntities.h"
// #else
// #include "NullEntities.h"
// #endif

namespace MAd {

  // -------------------------------------------------------------------
  class Physical {
    
  private:
    int _tag;
    int _dim;
//     std::set<MAdGEntity *> gents;

  public:
    
    Physical(int d, int t) { _dim = d; _tag = t; }
    ~Physical() {}
    
//     void addGE(MAdGEntity * newg) { gents.insert(newg); }
//     void delGE(MAdGEntity * delg)
//     {
//       std::set<MAdGEntity *>::iterator it = gents.find(delg);
//       if ( it != gents.end() ) gents.erase(it);
//     }

    int tag() const { return _tag; }
    int dim() const { return _dim; }
    
  };

  // -------------------------------------------------------------------
}

#endif