OKlibrary  0.2.1.6
OKlib::Combinatorics::Hypergraphs::Generators::Arithmetic_progression< Integer > Class Template Reference

An arithmetic progression as a container. More...

#include <VanderWaerden.hpp>

List of all members.

Public Types

typedef Integer value_type
typedef Integer size_type
typedef
Iterator_arithmetic_progression
< Integer > 
iterator
typedef iterator const_iterator

Public Member Functions

 Arithmetic_progression (const Integer start, const Integer length, const Integer slope)
size_type size () const
iterator begin () const
iterator end () const
value_type start () const
value_type slope () const

Friends

bool operator== (const Arithmetic_progression &lhs, const Arithmetic_progression &rhs)

Detailed Description

template<typename Integer>
class OKlib::Combinatorics::Hypergraphs::Generators::Arithmetic_progression< Integer >

An arithmetic progression as a container.

Todo:
Add the concept tag (a special case of a "const collection with begin, end and size; not default-constructible, but copyable, assignable, equality comparable").
Todo:
See class IteratorHandling::Arithmetical_progression in General/IteratorHandling.hpp

Definition at line 81 of file VanderWaerden.hpp.


Member Typedef Documentation

Definition at line 92 of file VanderWaerden.hpp.

Definition at line 91 of file VanderWaerden.hpp.

template<typename Integer >
typedef Integer OKlib::Combinatorics::Hypergraphs::Generators::Arithmetic_progression< Integer >::size_type

Definition at line 89 of file VanderWaerden.hpp.

template<typename Integer >
typedef Integer OKlib::Combinatorics::Hypergraphs::Generators::Arithmetic_progression< Integer >::value_type

Definition at line 88 of file VanderWaerden.hpp.


Constructor & Destructor Documentation

template<typename Integer >
OKlib::Combinatorics::Hypergraphs::Generators::Arithmetic_progression< Integer >::Arithmetic_progression ( const Integer  start,
const Integer  length,
const Integer  slope 
) [inline]

Definition at line 85 of file VanderWaerden.hpp.


Member Function Documentation

template<typename Integer >
value_type OKlib::Combinatorics::Hypergraphs::Generators::Arithmetic_progression< Integer >::slope ( ) const [inline]

Definition at line 99 of file VanderWaerden.hpp.

template<typename Integer >
value_type OKlib::Combinatorics::Hypergraphs::Generators::Arithmetic_progression< Integer >::start ( ) const [inline]

Definition at line 98 of file VanderWaerden.hpp.


Friends And Related Function Documentation

template<typename Integer >
bool operator== ( const Arithmetic_progression< Integer > &  lhs,
const Arithmetic_progression< Integer > &  rhs 
) [friend]

Definition at line 95 of file VanderWaerden.hpp.


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