Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BFLNode2ACell Class Reference

#include <BFLNode2ACell.h>

List of all members.

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]


Constructor & Destructor Documentation

BFLNode2ACell::BFLNode2ACell  )  [inline]
 

Definition at line 35 of file BFLNode2ACell.h.

00035 { }

BFLNode2ACell::BFLNode2ACell Int_t  cell,
Int_t  node,
Int_t  nodeslist[kNMaxNodesPerACell]
[inline]
 

Definition at line 36 of file BFLNode2ACell.h.

References fANSYSCellID, fANSYSNodeID, and fCellNodes.

00036                                                                               :
00037       fANSYSCellID(cell),fANSYSNodeID(node) { *fCellNodes=*nodeslist; }
    virtual ~BFLNode2ACell() { }

virtual BFLNode2ACell::~BFLNode2ACell  )  [inline, virtual]
 

Definition at line 38 of file BFLNode2ACell.h.

00038 { }


Member Function Documentation

Int_t BFLNode2ACell::Compare const TObject *  obj  )  const [inline]
 

Definition at line 68 of file BFLNode2ACell.h.

References fANSYSCellID.

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.

Referenced by 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.

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]
 

Definition at line 63 of file BFLNode2ACell.h.

00063 { return kTRUE; }

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]
 

Definition at line 42 of file BFLNode2ACell.h.

References fCellNodes.

00042 {*fCellNodes = *nodes; }

virtual void BFLNode2ACell::SetNodeID Int_t  node  )  [inline, virtual]
 

Definition at line 41 of file BFLNode2ACell.h.

References fANSYSNodeID.

00041 { fANSYSNodeID = node; }  


Member Data Documentation

Int_t BFLNode2ACell::fANSYSCellID [private]
 

Definition at line 79 of file BFLNode2ACell.h.

Referenced by BFLNode2ACell(), Compare(), Print(), and SetCellID().

Int_t BFLNode2ACell::fANSYSNodeID [private]
 

Definition at line 80 of file BFLNode2ACell.h.

Referenced by BFLNode2ACell(), IsEqual(), and SetNodeID().

Int_t BFLNode2ACell::fCellNodes[kNMaxNodesPerACell] [private]
 

Definition at line 81 of file BFLNode2ACell.h.

Referenced by BFLNode2ACell(), GetCellNodes(), Print(), and SetCellNodes().


The documentation for this class was generated from the following file:
Generated on Mon Feb 15 11:08:48 2010 for loon by  doxygen 1.3.9.1