Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Examples  

YStatisticEntry< T > Class Template Reference

#include <logfilestatistics.h>

Inheritance diagram for YStatisticEntry< T >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 YStatisticEntry ()
 YStatisticEntry (const T &t)
virtual bool IsValid () const
 Returns true if the content is valid.

virtual void Invalid ()
 Set the content to invalid.

virtual void Reset ()
 Reset the content to its initial state.

const T & SetContent (const T &t)
 Set a valid content.

const T & GetContent () const
 Get a content. This function may only be called if the content is valid, see YStatisticEntry::IsValid().

virtual QString GetVisibleString () const
 Returns the visible string of the content.

virtual QString GetKey () const
 Returns a string used to sorting more than one item of this type.

virtual const T & operator= (const T &t)

Protected Member Functions

virtual QString _GetVisibleString () const=0
 Returns the visible string of the content.

virtual QString _GetKey () const
 Returns a string used to sorting more than one item of this type.


Private Attributes

bool initvalid
 contains the state of the content during construction. Needed if Reset() is called.

initcontent
 contains the value given during construction. Needed if Reset() is called.

bool valid
 Is this statistic entry set correctly ?

content
 content value, represents the current valid value (if valid=true)

template<class T>
class YStatisticEntry< T >


Constructor & Destructor Documentation

template<class T>
YStatisticEntry< T >::YStatisticEntry   [inline]
 

template<class T>
YStatisticEntry< T >::YStatisticEntry const T &    t [inline]
 


Member Function Documentation

template<class T>
virtual QString YStatisticEntry< T >::_GetKey   const [inline, protected, virtual]
 

Returns a string used to sorting more than one item of this type.

Reimplemented in YYasaTimeStatisticEntry, YIntStatisticEntry, YPriorityStatisticEntry, YPercentStatisticEntry, and YVersionStatisticEntry.

template<class T>
virtual QString YStatisticEntry< T >::_GetVisibleString   const [protected, pure virtual]
 

Returns the visible string of the content.

Implemented in YYasaTimeStatisticEntry, YBoolStatisticEntry, YStringStatisticEntry, YIntStatisticEntry, YPriorityStatisticEntry, YPercentStatisticEntry, and YVersionStatisticEntry.

template<class T>
const T& YStatisticEntry< T >::GetContent   const [inline]
 

Get a content. This function may only be called if the content is valid, see YStatisticEntry::IsValid().

template<class T>
virtual QString YStatisticEntry< T >::GetKey   const [inline, virtual]
 

Returns a string used to sorting more than one item of this type.

Implements YStatisticBaseEntry.

template<class T>
virtual QString YStatisticEntry< T >::GetVisibleString   const [inline, virtual]
 

Returns the visible string of the content.

Implements YStatisticBaseEntry.

template<class T>
virtual void YStatisticEntry< T >::Invalid   [inline, virtual]
 

Set the content to invalid.

Implements YStatisticBaseEntry.

template<class T>
virtual bool YStatisticEntry< T >::IsValid   const [inline, virtual]
 

Returns true if the content is valid.

Implements YStatisticBaseEntry.

template<class T>
virtual const T& YStatisticEntry< T >::operator= const T &    t [inline, virtual]
 

template<class T>
virtual void YStatisticEntry< T >::Reset   [inline, virtual]
 

Reset the content to its initial state.

Implements YStatisticBaseEntry.

template<class T>
const T& YStatisticEntry< T >::SetContent const T &    t [inline]
 

Set a valid content.


Member Data Documentation

template<class T>
T YStatisticEntry< T >::content [private]
 

content value, represents the current valid value (if valid=true)

template<class T>
T YStatisticEntry< T >::initcontent [private]
 

contains the value given during construction. Needed if Reset() is called.

template<class T>
bool YStatisticEntry< T >::initvalid [private]
 

contains the state of the content during construction. Needed if Reset() is called.

template<class T>
bool YStatisticEntry< T >::valid [private]
 

Is this statistic entry set correctly ?


The documentation for this class was generated from the following file:
Generated on Fri Feb 14 00:03:13 2003 for Yasa by doxygen1.3-rc3