Gyoto
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Gyoto::Screen::Range Class Reference

1D coordinated specifier for a range More...

#include <GyotoScreen.h>

Inheritance diagram for Gyoto::Screen::Range:
Gyoto::Screen::Coord1dSet

Public Member Functions

 Range (size_t mi, size_t ma, size_t d)
 Specify min, max and step of this range.
 
void begin ()
 Reset specifier to point to the first value. More...
 
bool valid ()
 True if pointing to something, false if end has been reached. More...
 
size_t size ()
 Number of values in this container. More...
 
Coord1dSetoperator++ ()
 Increment iterator (point to next value) More...
 
size_t operator* () const
 Get size_t value currently pointed to. More...
 
virtual size_t index () const
 Get index of value currently pointed to. More...
 
virtual double angle () const
 Get double value currently pointed to. More...
 

Public Attributes

const CoordType_e kind
 Whether this specifier represents angles or pixels.
 

Protected Attributes

const size_t mi_
 
const size_t ma_
 
const size_t d_
 
const size_t sz_
 
size_t cur_
 

Detailed Description

1D coordinated specifier for a range

Member Function Documentation

◆ angle()

virtual double Gyoto::Screen::Coord1dSet::angle ( ) const
virtualinherited

Get double value currently pointed to.

Reimplemented in Gyoto::Screen::Angles, and Gyoto::Screen::RepeatAngle.

◆ begin()

void Gyoto::Screen::Range::begin ( )
virtual

Reset specifier to point to the first value.

Implements Gyoto::Screen::Coord1dSet.

◆ index()

virtual size_t Gyoto::Screen::Range::index ( ) const
virtual

Get index of value currently pointed to.

Starts at 0 and is implemented each time operator++ is called. Depending on the implementation, this may be a real index or computed on demand.

Implements Gyoto::Screen::Coord1dSet.

◆ operator*()

size_t Gyoto::Screen::Range::operator* ( ) const
virtual

Get size_t value currently pointed to.

Reimplemented from Gyoto::Screen::Coord1dSet.

◆ operator++()

Coord1dSet & Gyoto::Screen::Range::operator++ ( )
virtual

Increment iterator (point to next value)

Implements Gyoto::Screen::Coord1dSet.

◆ size()

size_t Gyoto::Screen::Range::size ( )
virtual

Number of values in this container.

Implements Gyoto::Screen::Coord1dSet.

◆ valid()

bool Gyoto::Screen::Range::valid ( )
virtual

True if pointing to something, false if end has been reached.

Implements Gyoto::Screen::Coord1dSet.


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