comma_list< T > Class Template Reference

hold a list of item of type T, tracking also if item has been set. More...

#include <comma_list.h>

Inheritance diagram for comma_list< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 comma_list ()
void set (std::string const &str)
bool is_set () const
 return true if a specific value is held by this container
bool match (T const &value) const

Detailed Description

template<class T>
class comma_list< T >

hold a list of item of type T, tracking also if item has been set.


Constructor & Destructor Documentation

template<class T >
comma_list< T >::comma_list (  )  [inline]

Member Function Documentation

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

return true if a specific value is held by this container

template<class T>
bool comma_list< T >::match ( T const &  value  )  const [inline]
Parameters:
value the value to test

return true if value match one the stored value in items

Referenced by profile_spec::match().

template<class T >
void comma_list< T >::set ( std::string const &  str  )  [inline]
Parameters:
str list of comma separated item

setup items array according to str parameters. Implement PP:3.17 w/o restriction on charset and with the special string all which match anything.

References separate_token().

Referenced by main().


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

Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1