Newer
Older
/***************************************************************************
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
Tomáš Oberhuber
committed
#include <ostream>
#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;
Tomáš Oberhuber
committed
void print( std::ostream& str ) const;
tnlEllpackIndexMultimapValues( IndexType* ports,
const IndexType input,
const IndexType portsMaxCount );
IndexType step, portsMaxCount;
friend tnlEllpackIndexMultimap< IndexType, DeviceType >;
Tomáš Oberhuber
committed
template< typename Index,
typename Device >
std::ostream& operator << ( std::ostream& str, const tnlEllpackIndexMultimapValues< Index, Device>& ports );
Tomáš Oberhuber
committed
#include <core/multimaps/tnlEllpackIndexMultimapValues_impl.h>
#endif /* TNLELLPACKINDEXMULTIMAPVALUES_H */