# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAIAGENT::INombre Class Template Reference

This define encapsulate a nomber and manage its manipulation. More...

#include <agent_nombre.h>

Inheritance diagram for NLAIAGENT::INombre:

NLAIAGENT::INombreDefine NLAIAGENT::IObjetOp NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAIAGENT::IDigital NLAIAGENT::IBornNombre List of all members.

Public Methods

 INombre (tNombre value)
 INombre (const INombre &value)
 INombre ()
 INombre (NLMISC::IStream &is)
virtual ~INombre ()
virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is)
 Load the class from a stream. More...

virtual bool isEqual (const IBasicObjectIA &a) const
 The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. More...

virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

tNombre getValue () const
void setValue (tNombre value)
virtual IObjectIAoperator= (const IObjectIA &a)
 Equality operator. More...

virtual IObjetOpoperator+= (const IObjetOp &a)
 add the operater by anather. More...

virtual IObjetOpoperator-= (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpneg ()=0
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator *= (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator/= (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator+ (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator- (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator * (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator/ (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator< (IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator> (IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator<= (IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator>= (IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator! () const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator!= (IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator== (IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

Some IObjectIA method definition.
virtual CProcessResult runMethodeMember (sint32, sint32, IObjectIA *)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

virtual CProcessResult runMethodeMember (sint32 index, IObjectIA *p)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...


Protected Methods

virtual void chekBorn ()
void addValue (tNombre value)
void subValue (tNombre value)
void mulValue (tNombre value)
void divValue (tNombre value)

Protected Attributes

tNombre _Value

Detailed Description

template<class tNombre>
class NLAIAGENT::INombre< tNombre >

This define encapsulate a nomber and manage its manipulation.

Nomber manibulation is need for the script and agent fonctionality.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 102 of file agent_nombre.h.


Constructor & Destructor Documentation

template<class tNombre>
NLAIAGENT::INombre< tNombre >::INombre tNombre    value [inline]
 

Definition at line 109 of file agent_nombre.h.

Referenced by NLAIAGENT::IDigital< sint32 >::IDigital, NLAIAGENT::INombre< sint32 >::INombre, NLAIAGENT::INombre< sint32 >::operator<=, and NLAIAGENT::INombre< sint32 >::operator>=.

template<class tNombre>
NLAIAGENT::INombre< tNombre >::INombre const INombre< tNombre > &    value [inline]
 

Definition at line 112 of file agent_nombre.h.

template<class tNombre>
NLAIAGENT::INombre< tNombre >::INombre   [inline]
 

Definition at line 115 of file agent_nombre.h.

template<class tNombre>
NLAIAGENT::INombre< tNombre >::INombre NLMISC::IStream   is [inline]
 

Definition at line 118 of file agent_nombre.h.

template<class tNombre>
virtual NLAIAGENT::INombre< tNombre >::~INombre   [inline, virtual]
 

Definition at line 123 of file agent_nombre.h.


Member Function Documentation

template<class tNombre>
void NLAIAGENT::INombre< tNombre >::addValue tNombre    value [inline, protected]
 

Definition at line 304 of file agent_nombre.h.

Referenced by NLAIAGENT::INombre< sint32 >::operator+=.

template<class tNombre>
virtual void NLAIAGENT::INombre< tNombre >::chekBorn   [inline, protected, virtual]
 

Reimplemented in NLAIAGENT::IBornNombre.

Definition at line 302 of file agent_nombre.h.

Referenced by NLAIAGENT::INombre< sint32 >::addValue, NLAIAGENT::INombre< sint32 >::divValue, NLAIAGENT::INombre< sint32 >::mulValue, NLAIAGENT::INombre< sint32 >::operator=, and NLAIAGENT::INombre< sint32 >::subValue.

template<class tNombre>
void NLAIAGENT::INombre< tNombre >::divValue tNombre    value [inline, protected]
 

Definition at line 322 of file agent_nombre.h.

Referenced by NLAIAGENT::INombre< sint32 >::operator/=.

template<class tNombre>
tNombre NLAIAGENT::INombre< tNombre >::getValue   const [inline]
 

Definition at line 174 of file agent_nombre.h.

template<class tNombre>
virtual bool NLAIAGENT::INombre< tNombre >::isEqual const IBasicObjectIA   a const [inline, virtual]
 

The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'.

Implements NLAIAGENT::IBasicObjectIA.

Definition at line 164 of file agent_nombre.h.

template<class tNombre>
virtual bool NLAIAGENT::INombre< tNombre >::isTrue   const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Implements NLAIAGENT::IObjetOp.

Definition at line 169 of file agent_nombre.h.

template<class tNombre>
virtual void NLAIAGENT::INombre< tNombre >::load NLMISC::IStream   is [inline, virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Reimplemented in NLAIAGENT::IBornNombre.

Definition at line 157 of file agent_nombre.h.

Referenced by NLAIAGENT::INombre< sint32 >::INombre.

template<class tNombre>
void NLAIAGENT::INombre< tNombre >::mulValue tNombre    value [inline, protected]
 

Definition at line 316 of file agent_nombre.h.

Referenced by NLAIAGENT::INombre< sint32 >::operator *=.

template<class tNombre>
virtual IObjetOp& NLAIAGENT::INombre< tNombre >::neg   [pure virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Implemented in NLAIAGENT::DigitalType.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator * const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 236 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp& NLAIAGENT::INombre< tNombre >::operator *= const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 208 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator!   const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 279 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator!= IObjetOp   a const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 285 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator+ const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 222 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp& NLAIAGENT::INombre< tNombre >::operator+= const IObjetOp   a [inline, virtual]
 

add the operater by anather.

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 192 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator- const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 229 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp& NLAIAGENT::INombre< tNombre >::operator-= const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 199 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator/ const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 243 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp& NLAIAGENT::INombre< tNombre >::operator/= const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 215 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator< IObjetOp   a const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 251 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator<= IObjetOp   a const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 265 of file agent_nombre.h.

template<class tNombre>
virtual IObjectIA& NLAIAGENT::INombre< tNombre >::operator= const IObjectIA   a [inline, virtual]
 

Equality operator.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 184 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator== IObjetOp   a const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 292 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator> IObjetOp   a const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 258 of file agent_nombre.h.

template<class tNombre>
virtual IObjetOp* NLAIAGENT::INombre< tNombre >::operator>= IObjetOp   a const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 272 of file agent_nombre.h.

template<class tNombre>
virtual CProcessResult NLAIAGENT::INombre< tNombre >::runMethodeMember sint32    index,
IObjectIA   p
[inline, virtual]
 

The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method.

index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 133 of file agent_nombre.h.

template<class tNombre>
virtual CProcessResult NLAIAGENT::INombre< tNombre >::runMethodeMember sint32   ,
sint32   ,
IObjectIA  
[inline, virtual]
 

The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method.

heritance: is the id returned by the methodisClassInheritedFrom(const IVarName &). index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 129 of file agent_nombre.h.

template<class tNombre>
virtual void NLAIAGENT::INombre< tNombre >::save NLMISC::IStream   os [inline, virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Reimplemented in NLAIAGENT::IBornNombre.

Definition at line 150 of file agent_nombre.h.

template<class tNombre>
void NLAIAGENT::INombre< tNombre >::setValue tNombre    value [inline]
 

Definition at line 179 of file agent_nombre.h.

template<class tNombre>
void NLAIAGENT::INombre< tNombre >::subValue tNombre    value [inline, protected]
 

Definition at line 310 of file agent_nombre.h.

Referenced by NLAIAGENT::INombre< sint32 >::operator-=.


Member Data Documentation

template<class tNombre>
tNombre NLAIAGENT::INombre::_Value [protected]
 

Definition at line 106 of file agent_nombre.h.

Referenced by NLAIAGENT::INombre< sint32 >::addValue, NLAIAGENT::IBornNombre< float >::chekBorn, NLAIAGENT::INombre< sint32 >::divValue, NLAIAGENT::IDigital< sint32 >::getNumber, NLAIAGENT::INombre< sint32 >::getValue, NLAIAGENT::INombre< sint32 >::INombre, NLAIAGENT::INombre< sint32 >::isTrue, NLAIAGENT::INombre< sint32 >::load, NLAIAGENT::INombre< sint32 >::mulValue, NLAIAGENT::INombre< sint32 >::operator!, NLAIAGENT::INombre< sint32 >::operator!=, NLAIAGENT::INombre< sint32 >::operator<, NLAIAGENT::INombre< sint32 >::operator<=, NLAIAGENT::INombre< sint32 >::operator=, NLAIAGENT::INombre< sint32 >::operator==, NLAIAGENT::INombre< sint32 >::operator>, NLAIAGENT::INombre< sint32 >::operator>=, NLAIAGENT::INombre< sint32 >::runMethodeMember, NLAIAGENT::INombre< sint32 >::save, NLAIAGENT::INombre< sint32 >::setValue, and NLAIAGENT::INombre< sint32 >::subValue.


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