Back to index

See source file

PHNodeOperation.h

 
//----------------------------------------------------------------------------- 
//  $Header: /afs/rhic/phenix/cvsroot/offline/framework/phool/PHNodeOperation.h,v 1.4 2001/02/19 18:55:50 dave Exp $ 
// 
//  The PHOOL's Software 
//  Copyright (C) PHENIX collaboration, 1999 
// 
//  Declaration of class PHNodeOperation 
// 
//  Purpose: abstract strategy base class which operates on PHNodes 
// 
//  Author: Matthias Messer 
//----------------------------------------------------------------------------- 
#ifndef PHNODEOPERATION_H 
#define PHNODEOPERATION_H 
 
#include "PHNode.h" 
 
class PHNodeOperation  
{  
public:  
  PHNodeOperation();  
  virtual ~PHNodeOperation();  
   
  void  
  operator () (PHNode& o)  
  {  
    perform(&o);  
  } 
  void  
  operator () (PHNode* o)  
  {  
    perform(o);  
  } 
   
protected:  
  virtual void perform(PHNode*) = 0; 
};  
 
#endif /* PHNODEOPERATION_H */  

Back to index

See source file