File indexing completed on 2025-04-19 09:09:47
0001 #ifndef AMEGIC_Main_Topology_H
0002 #define AMEGIC_Main_Topology_H
0003
0004 #include "AMEGIC++/Main/Point.H"
0005
0006 namespace AMEGIC {
0007
0008 struct Single_Topology {
0009
0010 int number;
0011
0012 int depth;
0013
0014 Point** p;
0015
0016 void Print(std::ostream &);
0017 void Print(Point*,std::ostream &,size_t &);
0018 };
0019
0020
0021 class Topology {
0022
0023 int ntop;
0024
0025 Single_Topology* top;
0026
0027 void Build_All(int);
0028
0029 void Build_Single(int,Single_Topology*);
0030 public:
0031
0032 Topology();
0033
0034 Topology(int);
0035
0036 ~Topology();
0037
0038 inline int NTop() const {return ntop;}
0039
0040 inline Single_Topology* Get(int N) {return &top[N];}
0041
0042 Point* Copy(Point*,Point*,int&);
0043
0044 void Print(int,std::ostream &);
0045 void Print(std::ostream &);
0046 };
0047
0048 std::ostream & operator<<(std::ostream &s,Single_Topology &stop);
0049 std::ostream & operator<<(std::ostream &s,Topology &top);
0050 }
0051 #endif
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062