home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWTVTESTR_H__
- #define __RWTVTESTR_H__
- pragma push_align_members(64);
-
- /*
- * RWTValTester<T>: Encapsulates a tester function for type T and user data.
- *
- * $Header: E:/vcs/rw/tvtestr.h_v 1.0 11 Mar 1992 14:10:46 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave Software, Inc.
- * P.O. Box 2328
- * Corvallis, OR 97339
- *
- * Copyright (C) 1992. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/tvtestr.h_v $
- *
- * Rev 1.0 11 Mar 1992 14:10:46 KEFFER
- * Initial revision.
- */
-
- #ifndef __RWDEFS_H__
- # include "rw/defs.h"
- #endif
-
- template <class T> struct RWTValTester {
- typedef RWBoolean (*TFun)(T, void*);
- TFun _testFun;
- void* _data;
- RWTValTester(TFun f, void* p) : _testFun(f), _data(p) { }
- };
-
- pragma pop_align_members();
- #endif /* __RWTVTESTR_H__ */
-