# 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  

NLAILOGIC::CValueSet Class Reference

#include <valueset.h>

Inheritance diagram for NLAILOGIC::CValueSet

Inheritance graph
[legend]
Collaboration diagram for NLAILOGIC::CValueSet:

Collaboration graph
[legend]
List of all members.

Public Methods

 CValueSet ()
 CValueSet (sint32)
 Initialises a CValueSet of size <size> with values to NULL. More...

 CValueSet (const CValueSet &)
 Copy constructor. More...

 CValueSet (std::vector<IBaseVar *> &)
 Builds a CValueSet from values taken from a list of variables. More...

 CValueSet (CValueSet *,std::vector<sint32> &)
 Builds a CValueSet from another one, changing the positions of values pos = positiions in the new CValueSet of the existing one's variables. More...

 CValueSet (sint32,std::list<NLAIAGENT::IObjetOp *> *,std::vector<sint32> &)
 ~CValueSet ()
virtual NLAIAGENT::IObjetOpgetValue (sint32)
void setValue (sint32, NLAIAGENT::IObjetOp *)
CValueSet* unify (const CValueSet *) const
 Tries tu unify two CValueSets Returns NULL if the unification fails. Returns a new unified CValueSet if it succeeds. More...

CValueSet* unify (std::list<NLAIAGENT::IObjetOp *> *vals, std::vector<sint32> &pos_vals) const
CValueSet* unify (CValueSet *vals, std::vector<sint32> &pos_vals) const
bool operator== (CValueSet *)
virtual NLAIAGENT::IObjetOpoperator[] (sint32)
sint32 size ()
sint32 undefined () const
 Returns the number of NULL values (considered as undefined). More...

std::list<NLAIAGENT::IObjetOp *>* getValues ()
 Return a list of the != NULL values of the object. More...

virtual void getDebugString (char *) const
 This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. More...

virtual const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

virtual const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. 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 NLAIAGENT::IObjetOpoperator! () const
 throw (NLAIE::CExceptionNotImplemented). More...

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

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

virtual bool isEqual (const NLAIAGENT::IBasicObjectIA &) const
virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual const IObjectIA::CProcessResult& run ()
 Some where Run method define the process of the agen. More...

CValueSet* forward (CClause *,std::vector<sint32> &)

Static Public Attributes

const NLAIC::CIdentType IdValueSet
const NLAIAGENT::TProcessStatement state = processIdle

Protected Attributes

NLAIAGENT::IObjetOp** _Values
sint32 _NbValues

Constructor & Destructor Documentation

NLAILOGIC::CValueSet::CValueSet ( )
 

Definition at line 32 of file valueset.cpp.

NLAILOGIC::CValueSet::CValueSet ( sint32 size )
 

Initialises a CValueSet of size <size> with values to NULL.

Definition at line 39 of file valueset.cpp.

NLAILOGIC::CValueSet::CValueSet ( const CValueSet & cp )
 

Copy constructor.

Definition at line 51 of file valueset.cpp.

NLAILOGIC::CValueSet::CValueSet ( std::vector< IBaseVar *>& vars )
 

Builds a CValueSet from values taken from a list of variables.

Definition at line 67 of file valueset.cpp.

NLAILOGIC::CValueSet::CValueSet ( CValueSet * vals,
std::vector< sint32 >& pos )
 

Builds a CValueSet from another one, changing the positions of values pos = positiions in the new CValueSet of the existing one's variables.

Definition at line 87 of file valueset.cpp.

NLAILOGIC::CValueSet::CValueSet ( sint32 size,
std::list< NLAIAGENT::IObjetOp *>*,
std::vector< sint32 >& )
 

NLAILOGIC::CValueSet::~CValueSet ( )
 

Definition at line 132 of file valueset.cpp.


Member Function Documentation

const NLAIC::IBasicType * NLAILOGIC::CValueSet::clone ( void ) const [virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Reimplemented from NLAIC::IBasicType.

Definition at line 351 of file valueset.cpp.

CValueSet * NLAILOGIC::CValueSet::forward ( CClause * clause,
std::vector< sint32 >& pos )
 

Definition at line 529 of file valueset.cpp.

void NLAILOGIC::CValueSet::getDebugString ( char * t ) const [virtual]
 

This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user.

Reimplemented from NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CFact.

Definition at line 434 of file valueset.cpp.

Referenced by NLAISCRIPT::COperatorClass::forward().

const NLAIC::CIdentType & NLAILOGIC::CValueSet::getType ( void ) const [virtual]
 

getType return a unique string how represente the class, it can be the name of the class.

This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Reimplemented from NLAIC::IBasicType.

Definition at line 362 of file valueset.cpp.

IObjetOp * NLAILOGIC::CValueSet::getValue ( sint32 pos ) [virtual]
 

Definition at line 315 of file valueset.cpp.

std::list< IObjetOp *>* NLAILOGIC::CValueSet::getValues ( )
 

Return a list of the != NULL values of the object.

Definition at line 339 of file valueset.cpp.

virtual bool NLAILOGIC::CValueSet::isEqual ( const NLAIAGENT::IBasicObjectIA & ) const [virtual]
 

bool NLAILOGIC::CValueSet::isTrue ( ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 519 of file valueset.cpp.

void NLAILOGIC::CValueSet::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 397 of file valueset.cpp.

const NLAIC::IBasicType * NLAILOGIC::CValueSet::newInstance ( void ) const [virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Reimplemented from NLAIC::IBasicType.

Definition at line 357 of file valueset.cpp.

IObjetOp * NLAILOGIC::CValueSet::operator! ( ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 451 of file valueset.cpp.

IObjetOp * NLAILOGIC::CValueSet::operator!= ( NLAIAGENT::IObjetOp & a ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 457 of file valueset.cpp.

IObjetOp * NLAILOGIC::CValueSet::operator== ( NLAIAGENT::IObjetOp & a ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 479 of file valueset.cpp.

bool NLAILOGIC::CValueSet::operator== ( CValueSet * cp )
 

Definition at line 296 of file valueset.cpp.

IObjetOp * NLAILOGIC::CValueSet::operator[] ( sint32 pos ) [virtual]
 

Definition at line 307 of file valueset.cpp.

const IObjectIA::CProcessResult & NLAILOGIC::CValueSet::run ( void ) [virtual]
 

Some where Run method define the process of the agen.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 524 of file valueset.cpp.

void NLAILOGIC::CValueSet::save ( NLMISC::IStream & os ) [virtual]
 

Save the class in a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 367 of file valueset.cpp.

void NLAILOGIC::CValueSet::setValue ( sint32 pos,
IObjetOp * obj )
 

Definition at line 140 of file valueset.cpp.

Referenced by NLAISCRIPT::COperatorClass::buildFromVars(), NLAISCRIPT::COperatorClass::unifyBackward(), and NLAISCRIPT::COperatorClass::unifyForward().

sint32 NLAILOGIC::CValueSet::size ( )
 

Definition at line 333 of file valueset.cpp.

sint32 NLAILOGIC::CValueSet::undefined ( ) const
 

Returns the number of NULL values (considered as undefined).

Definition at line 324 of file valueset.cpp.

CValueSet * NLAILOGIC::CValueSet::unify ( CValueSet * vals,
std::vector< sint32 >& pos_vals ) const
 

Definition at line 255 of file valueset.cpp.

CValueSet* NLAILOGIC::CValueSet::unify ( std::list< NLAIAGENT::IObjetOp *>* vals,
std::vector< sint32 >& pos_vals ) const
 

CValueSet * NLAILOGIC::CValueSet::unify ( const CValueSet * un ) const
 

Tries tu unify two CValueSets Returns NULL if the unification fails. Returns a new unified CValueSet if it succeeds.

Definition at line 155 of file valueset.cpp.

Referenced by NLAISCRIPT::COperatorClass::unifyLiaison().


Member Data Documentation

const NLAIC::CIdentType CValueSet::IdValueSet [static]
 

Initializer:

NLAIC::CIdentType( "ValueSet", NLAIC::CSelfClassFactory( CValueSet(0) ),
                NLAIC::CTypeOfObject::tLogic |
                NLAIC::CTypeOfObject::tList,
                NLAIC::CTypeOfOperator::opEq |
                NLAIC::CTypeOfOperator::opNot |
                NLAIC::CTypeOfOperator::opDiff )

Definition at line 348 of file static_def_init.cpp.

sint32 NLAILOGIC::CValueSet::_NbValues [protected]
 

Definition at line 40 of file valueset.h.

NLAIAGENT::IObjetOp ** NLAILOGIC::CValueSet::_Values [protected]
 

Definition at line 39 of file valueset.h.

const TProcessStatement NLAILOGIC::CValueSet::state = processIdle [static]
 

Definition at line 30 of file valueset.cpp.


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