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

Cached lazy list. More...

#include <cached_lazy_list.hpp>

Public Member Functions

 CachedLazyList (const LazyList< T > &ll)
 Class constructor. More...
 
size_t size (void) const
 Returns the size of the list. More...
 
const T & operator[] (size_t i) const
 Element access function. More...
 
void reset (void) const
 Marks all terms for recalculation.
 
virtual ~CachedLazyList (void)
 Class destructor.
 

Detailed Description

template<class T>
class CachedLazyList< T >

Cached lazy list.

Definition at line 17 of file cached_lazy_list.hpp.

Constructor & Destructor Documentation

◆ CachedLazyList()

template<class T>
CachedLazyList< T >::CachedLazyList ( const LazyList< T > &  ll)
inlineexplicit

Class constructor.

Parameters
llRegular lazy list

Definition at line 24 of file cached_lazy_list.hpp.

Member Function Documentation

◆ operator[]()

template<class T>
const T& CachedLazyList< T >::operator[] ( size_t  i) const
inline

Element access function.

Parameters
iIndex
Returns
i'th element

Definition at line 39 of file cached_lazy_list.hpp.

◆ size()

template<class T>
size_t CachedLazyList< T >::size ( void  ) const
inline

Returns the size of the list.

Returns
Size of list

Definition at line 30 of file cached_lazy_list.hpp.

Here is the caller graph for this function:

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