Go to the documentation of this file.
31 #ifndef TCLAP_XORHANDLER_H
32 #define TCLAP_XORHANDLER_H
53 std::vector< std::vector<Arg*> >
_orList;
66 void add( std::vector<Arg*>& ors );
95 std::vector< std::vector<Arg*> >&
getXorList();
111 for (
int i = 0;
static_cast<unsigned int>(i) <
_orList.size(); i++ )
126 if ( (*ait)->allowMore() )
129 return static_cast<int>(
_orList[i].size());
141 for (
int i = 0;
static_cast<unsigned int>(i) <
_orList.size(); i++ )
EIGEN_STRONG_INLINE iterator begin()
virtual bool isRequired() const
Indicates whether the argument is required.
EIGEN_STRONG_INLINE iterator end()
bool contains(const Arg *a)
Simply checks whether the Arg is contained in one of the arg lists.
void add(std::vector< Arg * > &ors)
Add a list of Arg*'s that will be orred together.
std::string shortUsage()
Returns the XOR specific short usage.
A virtual base class that defines the essential data for all arguments.
std::vector< std::vector< Arg * > > & getXorList()
void printLongUsage(std::ostream &os)
Prints the XOR specific long usage.
std::vector< std::vector< Arg * > > _orList
The list of of lists of Arg's to be or'd together.
int check(const Arg *a)
Checks whether the specified Arg is in one of the xor lists and if it does match one,...
std::vector< Arg * >::iterator ArgVectorIterator
Typedef of an Arg vector iterator.
Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Sat Jan 18 22:37:07 UTC 2020 | | |