#include <BFLNode2ACell.h>
Public Member Functions | |
| BFLNode2ACell () | |
| BFLNode2ACell (Int_t cell, Int_t node, Int_t nodeslist[kNMaxNodesPerACell]) | |
| virtual | ~BFLNode2ACell () |
| virtual void | SetCellID (Int_t cell) |
| virtual void | SetNodeID (Int_t node) |
| virtual void | SetCellNodes (Int_t nodes[kNMaxNodesPerACell]) |
| virtual Int_t | GetCellID (void) |
| virtual Int_t | GetNodeID (void) |
| virtual void | GetCellNodes (Int_t nodes[kNMaxNodesPerACell]) |
| virtual void | Print (Option_t *) const |
| virtual Bool_t | IsSortable () const |
| virtual Bool_t | IsEqual (const TObject *obj) const |
| Int_t | Compare (const TObject *obj) const |
Private Attributes | |
| Int_t | fANSYSCellID |
| Int_t | fANSYSNodeID |
| Int_t | fCellNodes [kNMaxNodesPerACell] |
Definition at line 31 of file BFLNode2ACell.h.
| BFLNode2ACell::BFLNode2ACell | ( | ) | [inline] |
| BFLNode2ACell::BFLNode2ACell | ( | Int_t | cell, | |
| Int_t | node, | |||
| Int_t | nodeslist[kNMaxNodesPerACell] | |||
| ) | [inline] |
Definition at line 36 of file BFLNode2ACell.h.
References fCellNodes.
00036 : 00037 fANSYSCellID(cell),fANSYSNodeID(node) { *fCellNodes=*nodeslist; } virtual ~BFLNode2ACell() { }
| virtual BFLNode2ACell::~BFLNode2ACell | ( | ) | [inline, virtual] |
| Int_t BFLNode2ACell::Compare | ( | const TObject * | obj | ) | const [inline] |
Definition at line 68 of file BFLNode2ACell.h.
References fANSYSCellID, and GetCellID().
00068 { 00069 if ( fANSYSCellID == ((BFLNode2ACell*)obj)->GetCellID() ) 00070 return 0; 00071 else if (fANSYSCellID < ((BFLNode2ACell*)obj)->GetCellID() ) 00072 return -1; 00073 else 00074 return 1; 00075 }
| virtual Int_t BFLNode2ACell::GetCellID | ( | void | ) | [inline, virtual] |
Definition at line 44 of file BFLNode2ACell.h.
References fANSYSCellID.
Referenced by Compare(), and BFLAnsysLookup::FindCell().
00044 { return fANSYSCellID; }
| virtual void BFLNode2ACell::GetCellNodes | ( | Int_t | nodes[kNMaxNodesPerACell] | ) | [inline, virtual] |
Definition at line 46 of file BFLNode2ACell.h.
References fCellNodes.
Referenced by BFLInterpolation::IsInsideANSYSCell().
00046 { 00047 Int_t i = 0; 00048 while(i<kNMaxNodesPerACell) { 00049 nodes[i] = fCellNodes[i]; 00050 i++; 00051 } 00052 }
| virtual Int_t BFLNode2ACell::GetNodeID | ( | void | ) | [inline, virtual] |
Definition at line 45 of file BFLNode2ACell.h.
References fANSYSNodeID.
Referenced by BFLAnsysLookup::FindNode().
00045 { return fANSYSNodeID; }
| virtual Bool_t BFLNode2ACell::IsEqual | ( | const TObject * | obj | ) | const [inline, virtual] |
Definition at line 65 of file BFLNode2ACell.h.
References fANSYSNodeID.
00065 { // soft by nodes 00066 return fANSYSNodeID == ((BFLNode2ACell*)obj)->GetNodeID(); 00067 }
| virtual Bool_t BFLNode2ACell::IsSortable | ( | ) | const [inline, virtual] |
| virtual void BFLNode2ACell::Print | ( | Option_t * | ) | const [inline, virtual] |
Definition at line 54 of file BFLNode2ACell.h.
References fANSYSCellID, fCellNodes, and kNMaxNodesPerACell.
00054 { 00055 cout << "Cell-> " << fANSYSCellID << endl; 00056 Int_t i = 0; 00057 cout << "List of nodes in this cell " << endl; 00058 while(i < kNMaxNodesPerACell && fCellNodes[i] != -1) { 00059 cout << fCellNodes[i] << endl; 00060 i++; 00061 } 00062 }
| virtual void BFLNode2ACell::SetCellID | ( | Int_t | cell | ) | [inline, virtual] |
Definition at line 40 of file BFLNode2ACell.h.
References fANSYSCellID.
00040 { fANSYSCellID = cell; }
| virtual void BFLNode2ACell::SetCellNodes | ( | Int_t | nodes[kNMaxNodesPerACell] | ) | [inline, virtual] |
| virtual void BFLNode2ACell::SetNodeID | ( | Int_t | node | ) | [inline, virtual] |
Definition at line 41 of file BFLNode2ACell.h.
References fANSYSNodeID.
00041 { fANSYSNodeID = node; }
Int_t BFLNode2ACell::fANSYSCellID [private] |
Definition at line 79 of file BFLNode2ACell.h.
Referenced by Compare(), GetCellID(), Print(), and SetCellID().
Int_t BFLNode2ACell::fANSYSNodeID [private] |
Definition at line 80 of file BFLNode2ACell.h.
Referenced by GetNodeID(), IsEqual(), and SetNodeID().
Int_t BFLNode2ACell::fCellNodes[kNMaxNodesPerACell] [private] |
Definition at line 81 of file BFLNode2ACell.h.
Referenced by BFLNode2ACell(), GetCellNodes(), Print(), and SetCellNodes().
1.4.7