used to hold something like { int cpu_nr, bool is_all }; to store a sub part of a samples filename see PP:3.21. More...
#include <generic_spec.h>


Public Member Functions | |
| generic_spec () | |
| build a default spec which match anything | |
| void | set (std::string const &) |
| build a spec from a string, valid argument are "all" or a string convertible to T through istringtream(str) >> data conversion is strict, no space are allowed at begin or end of str | |
| bool | is_set () const |
| return true if a specific value is held by this container | |
| T const | value () const |
| return the specific value (only if is_set() == true) | |
| bool | match (T const &rhs) const |
| return true if rhs match this spec. Sub part of PP:3.24 | |
| bool | match (generic_spec< T > const &rhs) const |
| return true if rhs match this spec. Sub part of PP:3.24 | |
| template<> | |
| void | set (std::string const &str) |
used to hold something like { int cpu_nr, bool is_all }; to store a sub part of a samples filename see PP:3.21.
| generic_spec< T >::generic_spec | ( | ) | [inline] |
build a default spec which match anything
| bool generic_spec< T >::is_set | ( | ) | const [inline] |
return true if a specific value is held by this container
| bool generic_spec< T >::match | ( | generic_spec< T > const & | rhs | ) | const [inline] |
return true if rhs match this spec. Sub part of PP:3.24
| bool generic_spec< T >::match | ( | T const & | rhs | ) | const [inline] |
return true if rhs match this spec. Sub part of PP:3.24
| void generic_spec< std::string >::set | ( | std::string const & | str | ) | [inline] |
| void generic_spec< T >::set | ( | std::string const & | str | ) | [inline] |
build a spec from a string, valid argument are "all" or a string convertible to T through istringtream(str) >> data conversion is strict, no space are allowed at begin or end of str
References op_lexical_cast().
| T const generic_spec< T >::value | ( | ) | const [inline] |
return the specific value (only if is_set() == true)
1.6.1