IVector< nam, false, Opts... > Struct Template Referenceabstract

A vector of a variable number of read-write options. More...

#include "IOption.hpp"

+ Inheritance diagram for IVector< nam, false, Opts... >:

Public Types

using Node = NodeT< Nodes::vector >
 
- Public Types inherited from IContainer< nam, Opts... >
using Name = NameT< nam >
 
using Element = IGroup< nam, Opts... >
 
using Feed = ifeed::Type< Element >
 

Public Member Functions

virtual void resize (size_t size)=0
 Set the number of elements. New elements are initialized with the default element.
 
- Public Member Functions inherited from IContainer< nam, Opts... >
virtual size_t size () const=0
 The number of actual elements.
 
virtual bool empty () const=0
 Returns size() == 0.
 
virtual const Elementoperator[] (size_t idx) const=0
 
virtual Elementoperator[] (size_t idx)=0
 
virtual const Elementall () const=0
 
virtual Elementall ()=0
 
virtual const Feed & feed () const=0
 
virtual Feed & feed ()=0
 
Iterator< IContainerbegin ()
 
Iterator< const IContainerbegin () const
 
Iterator< IContainerend ()
 
Iterator< const IContainerend () const
 
- Public Member Functions inherited from IBase
virtual Names enumerator () const =0
 The option name as enumerator.
 
virtual String name () const =0
 The option name as string.
 
virtual String path () const =0
 The option name as string, preceded by the names of its parents, if any, interspersed with '.'.
 
virtual String shortDescription () const =0
 One-liner that describes this option.
 
virtual String longDescription () const =0
 Longer text that describes this option in more detail.
 
virtual UsageLevel minUsageLevel () const =0
 For a leaf, this is its own usage level. Otherwise, this is the minimum usage level of all descendants: basic < mid < pro.
 
virtual Nodes node () const =0
 The node type of this option.
 

Detailed Description

template<Names nam, class... Opts>
struct opals::opts::IVector< nam, false, Opts... >

A vector of a variable number of read-write options.