Agora  1.2.0
Agora project
Range Struct Reference

A range type with an inclusive start bound and an exclusive end bound. More...

#include <utils.h>

Public Member Functions

 Range (size_t start, size_t end)
 
bool Contains (size_t value) const
 Returns true if this range contains the given value. More...
 
std::string ToString () const
 

Public Attributes

const size_t start_
 
const size_t end_
 

Detailed Description

A range type with an inclusive start bound and an exclusive end bound.

Constructor & Destructor Documentation

◆ Range()

Range::Range ( size_t  start,
size_t  end 
)
inline

Create a new Range with the given start and end values. end must be greater than or equal to start.

Here is the call graph for this function:

Member Function Documentation

◆ Contains()

bool Range::Contains ( size_t  value) const
inline

Returns true if this range contains the given value.

Here is the call graph for this function:

◆ ToString()

std::string Range::ToString ( ) const
inline

Member Data Documentation

◆ end_

const size_t Range::end_

◆ start_

const size_t Range::start_

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