home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / W2 < prev    next >
Encoding:
Text File  |  1992-06-07  |  1.0 KB  |  40 lines

  1. #ifndef __RWTVTESTR_H__
  2. #define __RWTVTESTR_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWTValTester<T>: Encapsulates a tester function for type T and user data.
  7.  *
  8.  * $Header:   E:/vcs/rw/tvtestr.h_v   1.0   11 Mar 1992 14:10:46   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave Software, Inc.
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  *
  16.  * Copyright (C) 1992. This software is subject to copyright 
  17.  * protection under the laws of the United States and other countries.
  18.  *
  19.  ***************************************************************************
  20.  *
  21.  * $Log:   E:/vcs/rw/tvtestr.h_v  $
  22.  * 
  23.  *    Rev 1.0   11 Mar 1992 14:10:46   KEFFER
  24.  * Initial revision.
  25.  */
  26.  
  27. #ifndef __RWDEFS_H__
  28. #  include "rw/defs.h"
  29. #endif
  30.  
  31. template <class T> struct RWTValTester {
  32.   typedef RWBoolean (*TFun)(T, void*);
  33.   TFun        _testFun;
  34.   void*        _data;
  35.   RWTValTester(TFun f, void* p) : _testFun(f), _data(p) { }
  36. };
  37.   
  38. pragma pop_align_members();
  39. #endif    /* __RWTVTESTR_H__ */
  40.