faunus
Classes | Public Member Functions | Public Attributes | Friends | List of all members
Faunus::Equidistant2DTable< Tx, Ty, centerbin > Class Template Reference

Classes

class  const_iterator
 
class  iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
 Equidistant2DTable (Tx dx, Tx xmin, Tx xmax=std::numeric_limits< Tx >::infinity())
 Constructor. More...
 
void setResolution (Tx dx, Tx xmin, Tx xmax=std::numeric_limits< Tx >::infinity())
 
double sumy () const
 sum all y-values
 
const std::vector< Ty > & yvec () const
 vector with y-values
 
std::vector< Tx > xvec () const
 
void clear ()
 
size_t size () const
 
bool empty () const
 
Tx dx () const
 
Tx xmin () const
 minimum x-value
 
Tx xmax () const
 maximum stored x-value
 
Ty & operator() (Tx x)
 
std::pair< Tx, Ty & > operator[] (size_t index)
 
std::pair< Tx, const Ty & > operator[] (size_t index) const
 
const Ty & operator() (Tx x) const
 
auto & operator<< (std::istream &in)
 

Public Attributes

std::function< void(std::ostream &, Tx, Ty)> stream_decorator = nullptr
 

Friends

std::ostream & operator<< (std::ostream &o, const Equidistant2DTable< Tx, Ty, centerbin > &tbl)
 

Constructor & Destructor Documentation

◆ Equidistant2DTable()

template<typename Tx = double, typename Ty = Tx, bool centerbin = false>
Faunus::Equidistant2DTable< Tx, Ty, centerbin >::Equidistant2DTable ( Tx  dx,
Tx  xmin,
Tx  xmax = std::numeric_limits<Tx>::infinity() 
)
inline

Constructor.

Parameters
dxx spacing
xminminimum x value
xmaxmaximum x value (for more efficient memory handling, only)

The documentation for this class was generated from the following file: