#include "cpp_apigen_demo/index_interval.h"
class cpp_apigen_demo::IndexInterval;

Demonstrates a non-template class.

Constructors

explicit IndexInterval(int lowerint upper);

Constructs an interval.

Friend functions

friend std::ostream &operator<<(std::ostream &osIndexInterval x);

Prints a string representation to os.

Methods

int lower() const;

Returns the lower bound.

int upper() const;

Returns the upper bound.

IndexInterval cpp_apigen_demo::Union(IndexInterval a,
                                     
IndexInterval b);

Computes the union of two intervals.


Last update: Nov 16, 2024