#ifndef DUNE_RT0TRIANGLELOCALCOEFFICIENTS_HH
#define DUNE_RT0TRIANGLELOCALCOEFFICIENTS_HH

#include <cstddef>
#include <iostream>
#include <vector>

#include <dune/localfunctions/common/localkey.hh>

namespace Dune 
{

  /**@ingroup LocalLayoutImplementation
	 \brief Layout map for RT0 elements

	 \nosubgrouping
     \implements Dune::LocalCoefficientsVirtualImp
  */
  class RT02DLocalCoefficients 
  {
  public:
	//! \brief Standard constructor
	RT02DLocalCoefficients () : li(3)
	{
	  for (std::size_t i=0; i<3; i++)
		li[i] = LocalKey(i,1,0);
	}

	//! number of coefficients
	std::size_t size () const
	{
	  return 3;
	}

	//! get i'th index
	const LocalKey& localKey (std::size_t i) const
	{
	  return li[i];
	} 

  private:
	std::vector<LocalKey> li;
  };

}

#endif
