DefaultProxy.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_PROXY_DEFAULTPROXY_H_
36 #define _BLAZE_MATH_PROXY_DEFAULTPROXY_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/system/Inline.h>
44 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
62 template< typename PT // Type of the proxy
63  , typename RT > // Type of the represented element
65 {
66  public:
67  //**Conversion operators************************************************************************
71  BLAZE_ALWAYS_INLINE const PT& operator~() const;
73  //**********************************************************************************************
74 };
75 //*************************************************************************************************
76 
77 
78 
79 
80 //=================================================================================================
81 //
82 // CONVERSION OPERATORS
83 //
84 //=================================================================================================
85 
86 //*************************************************************************************************
93 template< typename PT // Type of the proxy
94  , typename CT > // Type of the complex number
96 {
97  return *static_cast<PT*>( this );
98 }
99 //*************************************************************************************************
100 
101 
102 //*************************************************************************************************
109 template< typename PT // Type of the proxy
110  , typename CT > // Type of the complex number
112 {
113  return *static_cast<const PT*>( this );
114 }
115 //*************************************************************************************************
116 
117 } // namespace blaze
118 
119 #endif
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Default proxy backend for built-in and alternate user-specific class types.The DefaultProxy class ser...
Definition: DefaultProxy.h:64
BLAZE_ALWAYS_INLINE PT & operator~()
Conversion operator for non-constant proxies.
Definition: DefaultProxy.h:95
System settings for the inline keywords.