tclap  1.4.0
Public Member Functions | List of all members
TCLAP::ArgContainer Class Referenceabstract

Interface that allows adding an Arg to a "container". More...

#include <ArgContainer.h>

Inheritance diagram for TCLAP::ArgContainer:
Inheritance graph
[legend]

Public Member Functions

virtual ~ArgContainer ()
 
virtual ArgContaineradd (Arg &a)=0
 Adds an argument. More...
 
virtual ArgContaineradd (Arg *a)=0
 Adds an argument. More...
 

Detailed Description

Interface that allows adding an Arg to a "container".

A container does not have to be a container in the C++ standard library sense, just something that wants to hold on to references to Arg's. The container does not own the added Arg's and it is the user's responsibility to ensure the life time (scope) of the Arg's outlives any operations on the container.

Definition at line 39 of file ArgContainer.h.

Constructor & Destructor Documentation

◆ ~ArgContainer()

virtual TCLAP::ArgContainer::~ArgContainer ( )
inlinevirtual

Definition at line 41 of file ArgContainer.h.

References add().

Here is the call graph for this function:

Member Function Documentation

◆ add() [1/2]

virtual ArgContainer& TCLAP::ArgContainer::add ( Arg a)
pure virtual

◆ add() [2/2]

virtual ArgContainer& TCLAP::ArgContainer::add ( Arg a)
pure virtual

Adds an argument.

Ownership is not transfered.

Parameters
a- Argument to be added.

Implemented in TCLAP::CmdLine, TCLAP::ExclusiveArgGroup, TCLAP::CmdLineInterface, TCLAP::StandaloneArgs, and TCLAP::ArgGroup.


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