# 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 Template Class Reference

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

#include <agent_nombre.h>

Inheritance diagram for NLAIAGENT::INombre

Inheritance graph
[legend]
Collaboration diagram for NLAIAGENT::INombre:

Collaboration graph
[legend]
List of all members.

Public Methods

 INombre (tNombre value)
 INombre (const INombre &value)
 INombre ()
 INombre (NLMISC::IStream &is)
virtual ~INombre ()
virtual double getNumber () const
 All number can be read as a bouble, user ave to make the good cast to retreive the type of the number. More...

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)
 throw (NLAIE::CExceptionNotImplemented). More...

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

virtual IObjetOpneg ()
 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) const
 throw (NLAIE::CExceptionNotImplemented). More...

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

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

virtual const IObjetOpoperator/ (const 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>= (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> template class NLAIAGENT::INombre

This define encapsulate a nomber and manage its manipulation.

Nomber manibulation is need for the script and agent fonctionality.

Author(s):
Chafik sameh , Nevrax France
Date:
2000

Definition at line 101 of file agent_nombre.h.


Constructor & Destructor Documentation

template<classtNombre>
NLAIAGENT::INombre<tNombre>::INombre<tNombre> ( tNombre value ) [inline]
 

Definition at line 108 of file agent_nombre.h.

template<classtNombre>
NLAIAGENT::INombre<tNombre>::INombre<tNombre> ( const INombre<tNombre> & value ) [inline]
 

Definition at line 111 of file agent_nombre.h.

template<classtNombre>
NLAIAGENT::INombre<tNombre>::INombre<tNombre> ( ) [inline]
 

Definition at line 114 of file agent_nombre.h.

template<classtNombre>
NLAIAGENT::INombre<tNombre>::INombre<tNombre> ( NLMISC::IStream & is ) [inline]
 

Definition at line 117 of file agent_nombre.h.

template<classtNombre>
NLAIAGENT::INombre<tNombre>::~INombre<tNombre> ( ) [inline, virtual]
 

Definition at line 122 of file agent_nombre.h.


Member Function Documentation

template<classtNombre>
void NLAIAGENT::INombre<tNombre>::addValue ( tNombre value ) [inline, protected]
 

Definition at line 313 of file agent_nombre.h.

template<classtNombre>
void NLAIAGENT::INombre<tNombre>::chekBorn ( ) [inline, protected, virtual]
 

Reimplemented in NLAIAGENT::IBornNombre.

Definition at line 311 of file agent_nombre.h.

template<classtNombre>
void NLAIAGENT::INombre<tNombre>::divValue ( tNombre value ) [inline, protected]
 

Definition at line 331 of file agent_nombre.h.

template<classtNombre>
double NLAIAGENT::INombre<tNombre>::getNumber ( ) const [inline, virtual]
 

All number can be read as a bouble, user ave to make the good cast to retreive the type of the number.

Reimplemented from NLAIAGENT::INombreDefine.

Definition at line 126 of file agent_nombre.h.

Referenced by NLAISCRIPT::CLibTest::runMethodeMember().

template<classtNombre>
tNombre NLAIAGENT::INombre<tNombre>::getValue ( ) const [inline]
 

Definition at line 179 of file agent_nombre.h.

template<classtNombre>
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'.

Reimplemented from NLAIAGENT::IBasicObjectIA.

Definition at line 169 of file agent_nombre.h.

template<classtNombre>
bool NLAIAGENT::INombre<tNombre>::isTrue ( ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 174 of file agent_nombre.h.

template<classtNombre>
void NLAIAGENT::INombre<tNombre>::load ( NLMISC::IStream & is ) [inline, virtual]
 

Load the class from a stream.

Reimplemented from NLAIC::IBasicInterface.

Reimplemented in NLAIAGENT::IBornNombre.

Definition at line 162 of file agent_nombre.h.

template<classtNombre>
void NLAIAGENT::INombre<tNombre>::mulValue ( tNombre value ) [inline, protected]
 

Definition at line 325 of file agent_nombre.h.

template<classtNombre>
IObjetOp & NLAIAGENT::INombre<tNombre>::neg ( ) [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 210 of file agent_nombre.h.

template<classtNombre>
const IObjetOp * NLAIAGENT::INombre<tNombre>::operator * ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 245 of file agent_nombre.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 217 of file agent_nombre.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 288 of file agent_nombre.h.

template<classtNombre>
IObjetOp * NLAIAGENT::INombre<tNombre>::operator!= ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 294 of file agent_nombre.h.

template<classtNombre>
IObjetOp * NLAIAGENT::INombre<tNombre>::operator+ ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 231 of file agent_nombre.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 196 of file agent_nombre.h.

template<classtNombre>
IObjetOp * NLAIAGENT::INombre<tNombre>::operator- ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 238 of file agent_nombre.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 203 of file agent_nombre.h.

template<classtNombre>
const IObjetOp * NLAIAGENT::INombre<tNombre>::operator/ ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 252 of file agent_nombre.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 224 of file agent_nombre.h.

template<classtNombre>
IObjetOp * NLAIAGENT::INombre<tNombre>::operator< ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 260 of file agent_nombre.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 274 of file agent_nombre.h.

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

Equality operator.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 188 of file agent_nombre.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 301 of file agent_nombre.h.

template<classtNombre>
IObjetOp * NLAIAGENT::INombre<tNombre>::operator> ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 267 of file agent_nombre.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 281 of file agent_nombre.h.

template<classtNombre>
CProcessResult NLAIAGENT::INombre<tNombre>::runMethodeMember ( sint32 index,
IObjectIA * param ) [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::IObjetOp.

Definition at line 137 of file agent_nombre.h.

template<classtNombre>
CProcessResult NLAIAGENT::INombre<tNombre>::runMethodeMember ( sint32 heritance,
sint32 index,
IObjectIA * param ) [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 133 of file agent_nombre.h.

template<classtNombre>
void NLAIAGENT::INombre<tNombre>::save ( NLMISC::IStream & os ) [inline, virtual]
 

Save the class in a stream.

Reimplemented from NLAIC::IBasicInterface.

Reimplemented in NLAIAGENT::IBornNombre.

Definition at line 155 of file agent_nombre.h.

template<classtNombre>
void NLAIAGENT::INombre<tNombre>::setValue ( tNombre value ) [inline]
 

Definition at line 183 of file agent_nombre.h.

template<classtNombre>
void NLAIAGENT::INombre<tNombre>::subValue ( tNombre value ) [inline, protected]
 

Definition at line 319 of file agent_nombre.h.


Member Data Documentation

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

Definition at line 105 of file agent_nombre.h.


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