IVector< name_, readOnly_, Opts_ > Struct Template Reference

A vector of dynamic size of read-only options. More...

#include "IOption.hpp"

+ Inheritance diagram for IVector< name_, readOnly_, Opts_ >:

Public Types

typedef NameT< name_ > Name
- Public Types inherited from IContainer< name_, readOnly_, Opts_ >
typedef std::conditional
< IsCons< Opts_ >::value,
IGroup< name_, readOnly_,
Opts_ >, ILeaf< name_,
readOnly_, Opts_ > >::type 
Element

Additional Inherited Members

- Public Member Functions inherited from IContainer< name_, readOnly_, Opts_ >
virtual std::size_t size () const =0
 The number of actual elements.
virtual const Element & all () const =0
 Access the default element.
virtual const Element & operator[] (std::size_t idx) const =0
 Access an actual element.

Detailed Description

template<Names::Type name_, bool readOnly_, class Opts_>
struct opals::opts::IVector< name_, readOnly_, Opts_ >

A vector of dynamic size of read-only options.

Template Parameters
name_The name of the vector and its elements.
readOnly_If true, then this vector and its elements may not be changed.
Opts_If a scalar, then the element type is ILeaf, with that scalar as value type. Otherwise, it is IGroup, with the respective sequence of group members.