Public Member Functions | List of all members
LazyList< T > Class Template Referenceabstract

Ordered list whose terms are evaluated lazily. More...

#include <lazy_list.hpp>

Inheritance diagram for LazyList< T >:
Inheritance graph
[legend]

Public Member Functions

virtual size_t size (void) const =0
 Returns the length of the list. More...
 
virtual T operator[] (const size_t i) const =0
 Returns a single member of the list. More...
 
at (const size_t i) const
 bound checked access function More...
 

Detailed Description

template<class T>
class LazyList< T >

Ordered list whose terms are evaluated lazily.

Definition at line 17 of file lazy_list.hpp.

Member Function Documentation

◆ at()

template<class T>
T LazyList< T >::at ( const size_t  i) const
inline

bound checked access function

Parameters
iIndex
Returns
i'th term

Definition at line 36 of file lazy_list.hpp.

◆ operator[]()

template<class T>
virtual T LazyList< T >::operator[] ( const size_t  i) const
pure virtual

Returns a single member of the list.

Parameters
iIndex
Returns
The i'th member of the list

Implemented in ContiguousChunk< T >, Echo< T >, and ExtensiveGenerator.

Here is the caller graph for this function:

◆ size()

template<class T>
virtual size_t LazyList< T >::size ( void  ) const
pure virtual

Returns the length of the list.

Returns
Length of the list

Implemented in ContiguousChunk< T >, Echo< T >, and ExtensiveGenerator.

Here is the caller graph for this function:

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