OpCube_proto.hpp

Go to the documentation of this file.
00001 // Copyright (C) 2010 NICTA and the authors listed below
00002 // http://nicta.com.au
00003 // 
00004 // Authors:
00005 // - Conrad Sanderson (conradsand at ieee dot org)
00006 // 
00007 // This file is part of the Armadillo C++ library.
00008 // It is provided without any warranty of fitness
00009 // for any purpose. You can redistribute this file
00010 // and/or modify it under the terms of the GNU
00011 // Lesser General Public License (LGPL) as published
00012 // by the Free Software Foundation, either version 3
00013 // of the License or (at your option) any later version.
00014 // (see http://www.opensource.org/licenses for more info)
00015 
00016 
00017 //! \addtogroup OpCube
00018 //! @{
00019 
00020 
00021 //! Analog of the Op class, intended for cubes
00022 
00023 template<typename T1, typename op_type>
00024 class OpCube : public BaseCube<typename T1::elem_type, OpCube<T1, op_type> >
00025   {
00026   public:
00027   
00028   typedef typename T1::elem_type                   elem_type;
00029   typedef typename get_pod_type<elem_type>::result pod_type;
00030   
00031   
00032   inline explicit OpCube(const BaseCube<typename T1::elem_type, T1>& in_m);
00033   inline          OpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const elem_type in_aux);
00034   inline          OpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const u32 in_aux_u32_a, const u32 in_aux_u32_b);
00035   inline          OpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const u32 in_aux_u32_a, const u32 in_aux_u32_b, const u32 in_aux_u32_c);
00036   inline          OpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const elem_type in_aux, const u32 in_aux_u32_a, const u32 in_aux_u32_b, const u32 in_aux_u32_c);
00037   inline          OpCube(const u32 in_aux_u32_a, const u32 in_aux_u32_b, const u32 in_aux_u32_c);
00038   inline         ~OpCube();
00039   
00040   const T1&       m;          //!< storage of reference to the operand (e.g. a cube)
00041   const elem_type aux;        //!< storage of auxiliary data, user defined format
00042   const u32       aux_u32_a;  //!< storage of auxiliary data, u32 format
00043   const u32       aux_u32_b;  //!< storage of auxiliary data, u32 format
00044   const u32       aux_u32_c;  //!< storage of auxiliary data, u32 format
00045   
00046   };
00047 
00048 
00049 
00050 //! @}