Skip to content
Snippets Groups Projects
tnlEllpackIndexMultimapValues.h 2.56 KiB
Newer Older
  • Learn to ignore specific revisions
  • /***************************************************************************
    
                              tnlEllpackIndexMultimapValues.h  -  description
    
                                 -------------------
        begin                : Sep 10, 2015
        copyright            : (C) 2015 by Tomas Oberhuber et al.
        email                : tomas.oberhuber@fjfi.cvut.cz
     ***************************************************************************/
    
    /***************************************************************************
     *                                                                         *
     *   This program is free software; you can redistribute it and/or modify  *
     *   it under the terms of the GNU General Public License as published by  *
     *   the Free Software Foundation; either version 2 of the License, or     *
     *   (at your option) any later version.                                   *
     *                                                                         *
     ***************************************************************************/
    
    
    #ifndef TNLELLPACKINDEXMULTIMAPVALUES_H
    #define	TNLELLPACKINDEXMULTIMAPVALUES_H
    
    #include <core/multimaps/tnlEllpackIndexMultimap.h>
    
    
    template< typename Index,
              typename Device >
    
    class tnlEllpackIndexMultimapValues
    
          typedef Device                                     DeviceType;
          typedef Index                                      IndexType;
    
          typedef tnlEllpackIndexMultimap< IndexType, DeviceType > NetworkType;
    
          tnlEllpackIndexMultimapValues();
    
          IndexType getPortsCount() const;
    
          void setOutput( const IndexType portIndex,
                          const IndexType output );
    
          IndexType getOutput( const IndexType portIndex ) const;
    
          IndexType& operator[]( const IndexType portIndex );
    
          const IndexType& operator[]( const IndexType portIndex ) const;
    
          tnlEllpackIndexMultimapValues( IndexType* ports, 
    
                                  const IndexType input,
                                  const IndexType portsMaxCount );
    
          IndexType step, portsMaxCount;
    
          friend tnlEllpackIndexMultimap< IndexType, DeviceType >;
    
    std::ostream& operator << ( std::ostream& str, const tnlEllpackIndexMultimapValues< Index, Device>& ports );
    
    #include <core/multimaps/tnlEllpackIndexMultimapValues_impl.h>
    
    #endif	/* TNLELLPACKINDEXMULTIMAPVALUES_H */