Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

expander::expandresults Class Reference

Holds the results of the expand action. More...

#include <expandlib-results.h>

Collaboration diagram for expander::expandresults:

Collaboration graph
List of all members.

Public Methods

 expandresults ()
 The default constructor.

void Reset ()
 Resets all the vars to their default values (same values as with the default constructor).

int TotalVars () const
 Returns the total number of vars processed (missed+found).


Public Attributes

expander::expandresults::FMVarsType FoundVars
 A local class for foundvars and missedvars.

expander::expandresults::FMVarsType MissedVars
 A local class for foundvars and missedvars.


Detailed Description

Holds the results of the expand action.

This class is used for counting how many vars were expanded/not found while trying to expand the string.

Todo:
Add support for more statistics? (like how many commands)

Definition at line 42 of file expandlib-results.h.


Constructor & Destructor Documentation

expander::expandresults::expandresults   [inline]
 

The default constructor.

Definition at line 46 of file expandlib-results.h.


Member Function Documentation

void expander::expandresults::Reset   [inline]
 

Resets all the vars to their default values (same values as with the default constructor).

Definition at line 49 of file expandlib-results.h.

References FoundVars, and MissedVars.

int expander::expandresults::TotalVars   const [inline]
 

Returns the total number of vars processed (missed+found).

Definition at line 52 of file expandlib-results.h.

References FoundVars, MissedVars, and expander::expandresults::FMVarsType::val.

Referenced by expander::expcmd_numvars< StringType >::operator()().


Member Data Documentation

class expander::expandresults::FMVarsType expander::expandresults::FoundVars
 

A local class for foundvars and missedvars.

Referenced by expander::expandable< StringType >::expand(), expander::expcmd_knownvars< StringType >::operator()(), Reset(), and TotalVars().

class expander::expandresults::FMVarsType expander::expandresults::MissedVars
 

A local class for foundvars and missedvars.

Referenced by expander::expandable< StringType >::expand(), expander::expcmd_unknownvars< StringType >::operator()(), expander::expcmd_if< StringType >::operator()(), Reset(), and TotalVars().


The documentation for this class was generated from the following file:
Generated on Tue Feb 4 17:24:25 2003 for ExpandLib by doxygen1.3-rc2