Soar Kernel  9.3.2 08-06-12
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes
soar_module::gt_predicate< T > Class Template Reference

#include <soar_module.h>

Inherits soar_module::predicate< T >.

Public Member Functions

 gt_predicate (T new_min, bool new_inclusive)
bool operator() (T val)
- Public Member Functions inherited from soar_module::predicate< T >
virtual ~predicate ()

Private Attributes

bool inclusive
my_min

Detailed Description

template<typename T>
class soar_module::gt_predicate< T >

Definition at line 102 of file soar_module.h.

Constructor & Destructor Documentation

template<typename T >
soar_module::gt_predicate< T >::gt_predicate ( new_min,
bool  new_inclusive 
)
inline

Definition at line 109 of file soar_module.h.

: my_min( new_min ), inclusive( new_inclusive ) {}

Member Function Documentation

template<typename T >
bool soar_module::gt_predicate< T >::operator() ( val)
inlinevirtual

Reimplemented from soar_module::predicate< T >.

Definition at line 111 of file soar_module.h.

References soar_module::gt_predicate< T >::inclusive, and soar_module::gt_predicate< T >::my_min.

{
return ( ( inclusive )?( ( val >= my_min ) ):( ( val > my_min ) ) );
}

Field Documentation

template<typename T >
bool soar_module::gt_predicate< T >::inclusive
private

Definition at line 106 of file soar_module.h.

Referenced by soar_module::gt_predicate< T >::operator()().

template<typename T >
T soar_module::gt_predicate< T >::my_min
private

Definition at line 105 of file soar_module.h.

Referenced by soar_module::gt_predicate< T >::operator()().


The documentation for this class was generated from the following file: