Clear.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_FUNCTORS_CLEAR_H_
36 #define _BLAZE_MATH_FUNCTORS_CLEAR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/math/shims/Clear.h>
44 #include <blaze/system/Inline.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
59 struct Clear
60 {
61  //**********************************************************************************************
64  explicit inline Clear()
65  {}
66  //**********************************************************************************************
67 
68  //**********************************************************************************************
74  template< typename T >
75  BLAZE_ALWAYS_INLINE void operator()( T& a ) const
76  {
77  clear( a );
78  }
79  //**********************************************************************************************
80 };
81 //*************************************************************************************************
82 
83 } // namespace blaze
84 
85 #endif
Generic wrapper for the clear() function.
Definition: Clear.h:59
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:611
Clear()
Default constructor of the Clear functor.
Definition: Clear.h:64
BLAZE_ALWAYS_INLINE void operator()(T &a) const
Returns the result of the clear() function for the given object/value.
Definition: Clear.h:75
System settings for the inline keywords.
Header file for the clear shim.