ParMooN
 All Classes Functions Variables Friends Pages
SquareStructure.h
1 // =======================================================================
2 // @(#)SquareStructure.h 1.6 09/14/99
3 //
4 // Class: TSquareStructure
5 //
6 // Purpose: build and store a structure for a square matrix
7 //
8 // Author: Gunar Matthies
9 //
10 // History: 06.08.1998 start implementation
11 //
12 // =======================================================================
13 
14 #ifndef __SQUARESTRUCTURE__
15 #define __SQUARESTRUCTURE__
16 
17 #include <Structure.h>
18 
20 {
21  protected:
24 
29  int ColOrder;
30 
32  void IntSort(int *BeginPtr, int *AfterEndPtr);
33 
34  public:
37 
40 
42  TSquareStructure(int n, int N_entries, int *col_ptr,
43  int *row_ptr);
44 
46  explicit TSquareStructure(int n);
47 
49  int GetActiveBound() const
50  { return ActiveBound; }
51 
53  int GetColOrder() const
54  { return ColOrder;}
55 
57  void Sort();
58 
59  void SetColOrder(int n)
60  {ColOrder = n;}
61 
64  void SortDiagFirst();
65 
67  friend bool operator==(const TSquareStructure &lhs,
68  const TSquareStructure &rhs);
69  friend bool operator!=(const TSquareStructure &lhs,
70  const TSquareStructure &rhs);
71 };
72 
73 #endif
int ColOrder
Definition: SquareStructure.h:29
Definition: SquareStructure.h:19
int ActiveBound
Definition: SquareStructure.h:23
void Sort()
Definition: SquareStructure.C:65
~TSquareStructure()
Definition: SquareStructure.C:39
TSquareStructure()
Definition: SquareStructure.C:22
void SortDiagFirst()
Definition: SquareStructure.C:86
Definition: Structure.h:19
void IntSort(int *BeginPtr, int *AfterEndPtr)
Definition: SquareStructure.C:44
int GetColOrder() const
Definition: SquareStructure.h:53
int GetActiveBound() const
Definition: SquareStructure.h:49
friend bool operator==(const TSquareStructure &lhs, const TSquareStructure &rhs)
Comparision Operators.
Definition: SquareStructure.C:130