Public Member Functions | List of all members
ContiguousChunk< T > Class Template Reference

Creates a contiguous chunk of a lazy list. More...

#include <lazy_list.hpp>

Inheritance diagram for ContiguousChunk< T >:
Inheritance graph
[legend]
Collaboration diagram for ContiguousChunk< T >:
Collaboration graph
[legend]

Public Member Functions

 ContiguousChunk (const LazyList< T > &i2m, size_t low, size_t high)
 Class constructor. More...
 
size_t size (void) const
 Returns the length of the list. More...
 
operator[] (size_t i) const
 Returns a single member of the list. More...
 
- Public Member Functions inherited from LazyList< T >
at (const size_t i) const
 bound checked access function More...
 

Detailed Description

template<class T>
class ContiguousChunk< T >

Creates a contiguous chunk of a lazy list.

Definition at line 220 of file lazy_list.hpp.

Constructor & Destructor Documentation

◆ ContiguousChunk()

template<class T >
ContiguousChunk< T >::ContiguousChunk ( const LazyList< T > &  i2m,
size_t  low,
size_t  high 
)
inline

Class constructor.

Parameters
i2mSource list
lowLower boundary of chunk
highHigher boundary of chunk

Definition at line 229 of file lazy_list.hpp.

Member Function Documentation

◆ operator[]()

template<class T >
T ContiguousChunk< T >::operator[] ( size_t  i) const
inlinevirtual

Returns a single member of the list.

Parameters
iIndex
Returns
The i'th member of the list

Implements LazyList< T >.

Definition at line 242 of file lazy_list.hpp.

◆ size()

template<class T >
size_t ContiguousChunk< T >::size ( void  ) const
inlinevirtual

Returns the length of the list.

Returns
Length of the list

Implements LazyList< T >.

Definition at line 237 of file lazy_list.hpp.


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