args-parser 6.3.3
Loading...
Searching...
No Matches
Args::Context Class Referencefinal

Context is a list of words in the command line that user presented with interface for interacting with them. More...

#include <context.hpp>

Public Member Functions

 Context ()
 
 Context (ContextInternal items)
 
Contextoperator= (ContextInternal &&items)
 
ContextInternal::iterator begin ()
 
ContextInternal::iterator end ()
 
bool atEnd ()
 
ContextInternal::iterator next ()
 
void putBack ()
 Put back last taken item.
 
void prepend (const String &what)
 Prepend context with new item.
 

Detailed Description

Context is a list of words in the command line that user presented with interface for interacting with them.

Definition at line 60 of file context.hpp.

Constructor & Destructor Documentation

◆ Context() [1/2]

Args::Context::Context ( )
inline

Definition at line 62 of file context.hpp.

◆ Context() [2/2]

Args::Context::Context ( ContextInternal  items)
inlineexplicit

Definition at line 111 of file context.hpp.

Member Function Documentation

◆ atEnd()

bool Args::Context::atEnd ( )
inline
Returns
Is context at end?

Definition at line 130 of file context.hpp.

◆ begin()

ContextInternal::iterator Args::Context::begin ( )
inline
Returns
Iterator to the first item in the context.

Definition at line 118 of file context.hpp.

◆ end()

ContextInternal::iterator Args::Context::end ( )
inline
Returns
Iterator to the last item in the context.

Definition at line 124 of file context.hpp.

◆ next()

ContextInternal::iterator Args::Context::next ( )
inline
Returns
Iterator to the next item in the context.

Definition at line 136 of file context.hpp.

◆ operator=()

Context & Args::Context::operator= ( ContextInternal &&  items)
inline

Definition at line 69 of file context.hpp.

◆ prepend()

void Args::Context::prepend ( const String what)
inline

Prepend context with new item.

Definition at line 152 of file context.hpp.

◆ putBack()

void Args::Context::putBack ( )
inline

Put back last taken item.

Definition at line 145 of file context.hpp.


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