PHOperation.h
//-----------------------------------------------------------------------------
// The PHOOL's Software
// Copyright (C) PHENIX collaboration, 1999
//
// Declaration of class PHOperation
//
// Purpose: abstract strategy base class
//
// Author: Matthias Messer
//-----------------------------------------------------------------------------
#ifndef PHOPERATION_H
#define PHOPERATION_H
template <class T>
class PHOperation
{
public:
PHOperation();
virtual ~PHOperation();
public:
virtual void perform(T*) = 0;
void
operator () (T& o)
{
perform(&o);
}
void
operator () (T* o)
{
perform(o);
}
};
#endif /* PHOPERATION_H */