Generic class to set up the default parameters.  
 More...
#include <param_utils.h>
 | 
|   | SetDefault () | 
|   | 
| template<typename T >  | 
| void  | parameter (T &val, const Name &name, T default_val) | 
|   | Define parameter without constraint.  More...
  | 
|   | 
| template<typename T >  | 
| void  | parameter (T &val, const Name &name, T default_val, const pc::Con< T > &con1) | 
|   | Define parameter with 1 constraint.  More...
  | 
|   | 
| template<typename T >  | 
| void  | parameter (T &val, const Name &name, T default_val, const pc::Con< T > &con1, const pc::Con< T > &con2) | 
|   | Define parameter with 2 constraints.  More...
  | 
|   | 
| template<typename T >  | 
| void  | parameter (T &val, const Name &name, T default_val, const pc::Con< T > &con1, const pc::Con< T > &con2, const pc::Con< T > &con3) | 
|   | Define parameter with 3 constraints.  More...
  | 
|   | 
Generic class to set up the default parameters. 
 
◆ SetDefault()
      
        
          | spore::SetDefault::SetDefault  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ parameter() [1/4]
template<typename T > 
  
  
      
        
          | void spore::SetDefault::parameter  | 
          ( | 
          T &  | 
          val,  | 
         
        
           | 
           | 
          const Name &  | 
          name,  | 
         
        
           | 
           | 
          T  | 
          default_val  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Define parameter without constraint. 
- Parameters
 - 
  
    | val | Reference to the variable that holds the parameter.  | 
    | name | The name assigned to the parameter.  | 
    | default_val | default value of the parameter.  | 
  
   
 
 
◆ parameter() [2/4]
template<typename T > 
  
  
      
        
          | void spore::SetDefault::parameter  | 
          ( | 
          T &  | 
          val,  | 
         
        
           | 
           | 
          const Name &  | 
          name,  | 
         
        
           | 
           | 
          T  | 
          default_val,  | 
         
        
           | 
           | 
          const pc::Con< T > &  | 
          con1  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Define parameter with 1 constraint. 
- Parameters
 - 
  
    | val | Reference to the variable that holds the parameter.  | 
    | name | The name assigned to the parameter.  | 
    | default_val | default value of the parameter.  | 
    | con1 | constraint to the parameter.  | 
  
   
 
 
◆ parameter() [3/4]
template<typename T > 
  
  
      
        
          | void spore::SetDefault::parameter  | 
          ( | 
          T &  | 
          val,  | 
         
        
           | 
           | 
          const Name &  | 
          name,  | 
         
        
           | 
           | 
          T  | 
          default_val,  | 
         
        
           | 
           | 
          const pc::Con< T > &  | 
          con1,  | 
         
        
           | 
           | 
          const pc::Con< T > &  | 
          con2  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Define parameter with 2 constraints. 
- Parameters
 - 
  
    | val | Reference to the variable that holds the parameter.  | 
    | name | The name assigned to the parameter.  | 
    | default_val | default value of the parameter.  | 
    | con1,con2 | constraints to the parameter.  | 
  
   
 
 
◆ parameter() [4/4]
template<typename T > 
  
  
      
        
          | void spore::SetDefault::parameter  | 
          ( | 
          T &  | 
          val,  | 
         
        
           | 
           | 
          const Name &  | 
          name,  | 
         
        
           | 
           | 
          T  | 
          default_val,  | 
         
        
           | 
           | 
          const pc::Con< T > &  | 
          con1,  | 
         
        
           | 
           | 
          const pc::Con< T > &  | 
          con2,  | 
         
        
           | 
           | 
          const pc::Con< T > &  | 
          con3  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Define parameter with 3 constraints. 
- Parameters
 - 
  
    | val | Reference to the variable that holds the parameter.  | 
    | name | The name assigned to the parameter.  | 
    | default_val | default value of the parameter.  | 
    | con1,con2,con3 | constraints to the parameter.  | 
  
   
 
 
The documentation for this class was generated from the following files: