Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Public Member Functions
TCLAP::Constraint< T > Class Template Referenceabstract

Detailed Description

template<class T>
class TCLAP::Constraint< T >

The interface that defines the interaction between the Arg and Constraint.

Definition at line 46 of file Constraint.h.

#include <mrpt/otherlibs/tclap/Constraint.h>

Inheritance diagram for TCLAP::Constraint< T >:
Inheritance graph

Public Member Functions

virtual std::string description () const =0
 Returns a description of the Constraint.
 
virtual std::string shortID () const =0
 Returns the short ID for the Constraint.
 
virtual bool check (const T &value) const =0
 The method used to verify that the value parsed from the command line meets the constraint.
 
virtual ~Constraint ()
 Destructor.
 

Constructor & Destructor Documentation

◆ ~Constraint()

template<class T >
virtual TCLAP::Constraint< T >::~Constraint ( )
inlinevirtual

Destructor.

Silences warnings about Constraint being a base class with virtual functions but without a virtual destructor.

Definition at line 72 of file Constraint.h.

Member Function Documentation

◆ check()

template<class T >
virtual bool TCLAP::Constraint< T >::check ( const T &  value) const
pure virtual

The method used to verify that the value parsed from the command line meets the constraint.

Parameters
value- The value that will be checked.

Implemented in TCLAP::ValuesConstraint< T >.

◆ description()

template<class T >
virtual std::string TCLAP::Constraint< T >::description ( ) const
pure virtual

Returns a description of the Constraint.

Implemented in TCLAP::ValuesConstraint< T >.

◆ shortID()

template<class T >
virtual std::string TCLAP::Constraint< T >::shortID ( ) const
pure virtual

Returns the short ID for the Constraint.

Implemented in TCLAP::ValuesConstraint< T >.




Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Wed Mar 22 09:54:56 UTC 2023