Interface for lists.
More...
#include <interfaces.hpp>
|
| Type | type () const |
| |
| virtual size_t | size () const =0 |
| |
| virtual void | set (size_t i, std::shared_ptr< Base > v)=0 |
| |
| virtual void | set_name (size_t i, std::string n)=0 |
| |
◆ set()
| virtual void uzuki2::List::set |
( |
size_t | i, |
|
|
std::shared_ptr< Base > | v ) |
|
pure virtual |
Set an element of the list.
- Parameters
-
| i | Index of the list element. |
| v | Value of the list element. |
◆ set_name()
| virtual void uzuki2::List::set_name |
( |
size_t | i, |
|
|
std::string | n ) |
|
pure virtual |
Set the name of an element of the list. This should only be called if this List instance was conclassed with support for names.
- Parameters
-
| i | Index of a list element. |
| n | Name for the list element. |
◆ size()
| virtual size_t uzuki2::List::size |
( |
| ) |
const |
|
pure virtual |
- Returns
- Length of the list.
◆ type()
| Type uzuki2::List::type |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following file: