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

Converts a vector to a lazy list. More...

#include <lazy_list.hpp>

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

Public Member Functions

 Echo (const vector< T > &v)
 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 Echo< T >

Converts a vector to a lazy list.

Definition at line 195 of file lazy_list.hpp.

Constructor & Destructor Documentation

◆ Echo()

template<class T >
Echo< T >::Echo ( const vector< T > &  v)
inlineexplicit

Class constructor.

Parameters
vSource vector

Definition at line 202 of file lazy_list.hpp.

Member Function Documentation

◆ operator[]()

template<class T >
T Echo< 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 210 of file lazy_list.hpp.

◆ size()

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

Returns the length of the list.

Returns
Length of the list

Implements LazyList< T >.

Definition at line 205 of file lazy_list.hpp.


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