Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since bcc29ca was             33d0af, checked in by Frederik Heber <heber@…>, 13 years ago | 
        
          | 
Ops_Validators: new operators (&&, | , !) |  created a unittest for the new Validator operators
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            683 bytes | 
      
      
| Rev | Line |  | 
|---|
| [33d0af] | 1 | /* | 
|---|
|  | 2 | * Ops_Validator.hpp | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: May 9, 2012 | 
|---|
|  | 5 | *      Author: ankele | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #ifndef OPS_VALIDATOR_HPP_ | 
|---|
|  | 9 | #define OPS_VALIDATOR_HPP_ | 
|---|
|  | 10 |  | 
|---|
|  | 11 |  | 
|---|
|  | 12 |  | 
|---|
|  | 13 |  | 
|---|
|  | 14 | // include config.h | 
|---|
|  | 15 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 16 | #include <config.h> | 
|---|
|  | 17 | #endif | 
|---|
|  | 18 |  | 
|---|
|  | 19 | #include "Validator.hpp" | 
|---|
|  | 20 |  | 
|---|
|  | 21 |  | 
|---|
|  | 22 | template <class T> | 
|---|
|  | 23 | class And_Validator; | 
|---|
|  | 24 | template <class T> | 
|---|
|  | 25 | class Or_Validator; | 
|---|
|  | 26 | template <class T> | 
|---|
|  | 27 | class Not_Validator; | 
|---|
|  | 28 |  | 
|---|
|  | 29 | template <class T> | 
|---|
|  | 30 | And_Validator<T> operator&&(const Validator<T> &a, const Validator<T> &b); | 
|---|
|  | 31 | template <class T> | 
|---|
|  | 32 | Or_Validator<T> operator||(const Validator<T> &a, const Validator<T> &b); | 
|---|
|  | 33 | template <class T> | 
|---|
|  | 34 | Not_Validator<T> operator!(const Validator<T> &a); | 
|---|
|  | 35 |  | 
|---|
|  | 36 |  | 
|---|
|  | 37 | #include "Ops_Validator_impl.hpp" | 
|---|
|  | 38 |  | 
|---|
|  | 39 | #endif /* OPS_VALIDATOR_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.