generic_spec< T > Class Template Reference

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>

Inheritance diagram for generic_spec< T >:

Inheritance graph
[legend]
Collaboration diagram for generic_spec< T >:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

template<class T>
class generic_spec< T >

used to hold something like { int cpu_nr, bool is_all }; to store a sub part of a samples filename see PP:3.21.


Constructor & Destructor Documentation

template<class T>
generic_spec< T >::generic_spec  ) 
 

build a default spec which match anything


Member Function Documentation

template<class T>
bool generic_spec< T >::is_set  )  const [inline]
 

return true if a specific value is held by this container

template<class T>
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

template<class T>
bool generic_spec< T >::match T const &  rhs  )  const [inline]
 

return true if rhs match this spec. Sub part of PP:3.24

template<>
void generic_spec< std::string >::set std::string const &  str  ) 
 

template<class T>
void generic_spec< T >::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

template<class T>
T const generic_spec< T >::value  )  const [inline]
 

return the specific value (only if is_set() == true)


The documentation for this class was generated from the following file:
Generated on Thu Jul 17 19:54:25 2008 for oprofile by  doxygen 1.4.6