vValue::Type::Set Class Reference

min, max and value in one class which handles the pointer buisness More...

#include <vCore.h>

List of all members.

Public Member Functions

 Set ()
 Constructor using std::auto_ptr.
 Set (BasePtr &val)
 Constructor using std::auto_ptr.
 Set (BasePtr &val, BasePtr &min, BasePtr &max)
 Constructor using std::auto_ptr.
 Set (const Set &other)
 Copy constructor.
 ~Set ()
 Destructor.
void operator= (Set const &other)
 Overloaded assignment operator.
Expr::Core::Base const & GetMin (void) const
 Returns a reference to the stored minimum value.
Expr::Core::Base const & GetMax (void) const
 Returns a reference to the stored maximum value.
Expr::Core::Base const & GetVal (void) const
 Returns a reference to the stored current value.

Private Attributes

BasePtr m_min
 The minimum value.
BasePtr m_max
 The maxumim value.
BasePtr m_val
 The current value.


Detailed Description

min, max and value in one class which handles the pointer buisness

Definition at line 126 of file vCore.h.


Constructor & Destructor Documentation

vValue::Type::Set::Set (  ) 

Constructor using std::auto_ptr.

Sets

Parameters:
val the value

Definition at line 133 of file vCore.cpp.

00133          : 
00134         m_min(new Expr::Base()),
00135         m_max(new Expr::Base()),
00136         m_val(new Expr::Base())
00137 {}

vValue::Type::Set::Set ( BasePtr val  ) 

Constructor using std::auto_ptr.

Sets the stored values to the given arguments

Parameters:
val the value

Definition at line 141 of file vCore.cpp.

00141                      : 
00142         m_min(new Expr::Base()),
00143         m_max(new Expr::Base()),
00144         m_val(val)
00145 {}

vValue::Type::Set::Set ( BasePtr val,
BasePtr min,
BasePtr max 
)

Constructor using std::auto_ptr.

Sets the stored values to the given arguments

Parameters:
val the value
min the minimum value
max the maximum value

Definition at line 151 of file vCore.cpp.

00151                                                  : 
00152         m_min(min),
00153         m_max(max),
00154         m_val(val)
00155 {}

vValue::Type::Set::Set ( const Set other  ) 

Copy constructor.

Copies the values from another class into the newly created one

Parameters:
other the object to be copied from

Definition at line 159 of file vCore.cpp.

00159                          :
00160         m_min(other.m_min),
00161         m_max(other.m_max),
00162         m_val(other.m_val)
00163 {}

vValue::Type::Set::~Set (  ) 

Destructor.

Definition at line 165 of file vCore.cpp.

00165           {
00166 }


Member Function Documentation

void vValue::Type::Set::operator= ( Set const &  other  ) 

Overloaded assignment operator.

Erases the current contents and copies the contents of another set into itself.

Parameters:
other the object to be copied from

Definition at line 170 of file vCore.cpp.

References vValue::Expr::Core::Base::copy(), GetMax(), GetMin(), GetVal(), m_max, m_min, and m_val.

00170                                     {
00171     if(this != &other) {
00172         m_min = BasePtr(other.GetMin().copy());
00173         m_max = BasePtr(other.GetMax().copy());
00174         m_val = BasePtr(other.GetVal().copy());
00175     }
00176 }

Here is the call graph for this function:

Expr::Core:: Base const& vValue::Type::Set::GetMin ( void   )  const [inline]

Returns a reference to the stored minimum value.

Definition at line 144 of file vCore.h.

Referenced by operator=(), cWidget::Rectangle::Render(), and cWidget::BarGauge::Render().

Here is the caller graph for this function:

Expr::Core:: Base const& vValue::Type::Set::GetMax ( void   )  const [inline]

Returns a reference to the stored maximum value.

Definition at line 146 of file vCore.h.

Referenced by operator=(), cWidget::Rectangle::Render(), and cWidget::BarGauge::Render().

Here is the caller graph for this function:

Expr::Core:: Base const& vValue::Type::Set::GetVal ( void   )  const [inline]

Returns a reference to the stored current value.

Definition at line 148 of file vCore.h.

Referenced by operator=(), cWidget::Rectangle::Render(), and cWidget::BarGauge::Render().

Here is the caller graph for this function:


Member Data Documentation

BasePtr vValue::Type::Set::m_min [private]

The minimum value.

Definition at line 127 of file vCore.h.

Referenced by operator=().

BasePtr vValue::Type::Set::m_max [private]

The maxumim value.

Definition at line 128 of file vCore.h.

Referenced by operator=().

BasePtr vValue::Type::Set::m_val [private]

The current value.

Definition at line 129 of file vCore.h.

Referenced by operator=().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:06:00 2008 for Armagetron Advanced by  doxygen 1.5.4