# 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::CGroupType Class Reference

concret IBaseGroupType with a std::list container. More...

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::CGroupType:

NLAIAGENT::IBaseGroupType NLAIAGENT::IObjetOp NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAISCRIPT::CListClass NLAISCRIPT::CPramContainer List of all members.

Public Types

typedef std::list< const IObjectIA * > tListType

Public Methods

 CGroupType ()
 CGroupType (const CGroupType &g)
virtual void getDebugString (std::string &text) 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 CProcessResult & run ()
 Some where Run method define the process of the agen. More...

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 IObjetOpoperator+ (IObjetOp *a)
 throw (NLAIE::CExceptionNotImplemented). More...

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

virtual const IObjectIAoperator[] (sint32) const
virtual void set (int, IObjectIA *)
 Push an IObjectIA at the position indicate by the int. More...

virtual CIteratorContener getIterator ()
 Get an iterator to parse the list. More...

virtual CConstIteratorContener getConstIterator () const
IObjetOpCGroupType::operator! () const
void push (const IObjectIA *o)
 Push an IObjectIA back. More...

void pushFront (const IObjectIA *o)
 Push an IObjectIA front. More...

void cpy (const IObjectIA &o)
 Push an IObjectIA back using the clone method. More...

const IObjectIApop ()
 Pop the back IObjectIA and return it. More...

const IObjectIAget () const
 return the back IObjectIA. More...

const IObjectIApopFront ()
 Pop the front IObjectIA and return it. More...

const IObjectIAgetFront () const
 return the front IObjectIA. More...

sint32 size () const
 get the size of the list. More...

tListType findList (const IObjectIA &obj) const
tListType::const_iterator getBegin () const
tListType::const_iterator getEnd () const
tListType::iterator getBegin ()
tListType::iterator getEnd ()
const IObjectIAfind (const IObjectIA &obj) const
 Find an element on the list the operator== is use. More...

void eraseAll (const IObjectIA &obj)
 Erase all element find equal at the const IObjectIA & on argument. More...

void erase (const IObjectIA *o)
 Erase the element how have the same pointer memory as the argument const IObjectIA *. More...

void erase (const IObjectIA &obj)
 Erase the first element find equal at the const IObjectIA& on argument. More...

void erase (std::list< const IObjectIA * > &l)
 Erase all element contain in the list. 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 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 IObjetOpneg ()
 throw (NLAIE::CExceptionNotImplemented). More...

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

void clear ()
 Clear the list. More...

virtual ~CGroupType ()

Public Attributes

tListType _List
 std::list for store IObjectIA object. More...


Static Public Attributes

const NLAIC::CIdentType IdGroupType

Protected Methods

tListTypegetList ()

Detailed Description

concret IBaseGroupType with a std::list container.

Author:
Portier Pierre , Chafik sameh , Nevrax France
Date:
2000

Definition at line 633 of file agent_object.h.


Member Typedef Documentation

typedef std::list<const IObjectIA *> NLAIAGENT::CGroupType::tListType
 

Definition at line 641 of file agent_object.h.


Constructor & Destructor Documentation

NLAIAGENT::CGroupType::CGroupType  
 

Definition at line 395 of file group_type.cpp.

Referenced by clone, isEqual, newInstance, operator+, operator-, and operator=.

NLAIAGENT::CGroupType::CGroupType const CGroupType &    g
 

Definition at line 399 of file group_type.cpp.

References _List, clone, and NLAIAGENT::IObjectIA::IObjectIA.

NLAIAGENT::CGroupType::~CGroupType   [virtual]
 

Definition at line 675 of file group_type.cpp.

References clear.


Member Function Documentation

IObjetOp* NLAIAGENT::CGroupType::CGroupType::operator!   const
 

void NLAIAGENT::CGroupType::clear   [virtual]
 

Clear the list.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 664 of file group_type.cpp.

References _List, and NLAIC::IPointerGestion::release.

Referenced by operator=, and ~CGroupType.

const NLAIC::IBasicType * NLAIAGENT::CGroupType::clone   const [virtual]
 

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

Implements NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::CPramContainer.

Definition at line 606 of file group_type.cpp.

References CGroupType.

Referenced by CGroupType, and operator=.

void NLAIAGENT::CGroupType::cpy const IObjectIA   o [virtual]
 

Push an IObjectIA back using the clone method.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 434 of file group_type.cpp.

References _List, NLAIAGENT::IObjectIA::IObjectIA, and t.

void NLAIAGENT::CGroupType::erase std::list< const IObjectIA * > &    l [virtual]
 

Erase all element contain in the list.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 577 of file group_type.cpp.

References erase, and NLAISCRIPT::l.

void NLAIAGENT::CGroupType::erase const IObjectIA   obj [virtual]
 

Erase the first element find equal at the const IObjectIA& on argument.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 561 of file group_type.cpp.

References _List, and NLAIAGENT::IObjectIA::IObjectIA.

void NLAIAGENT::CGroupType::erase const IObjectIA   o [virtual]
 

Erase the element how have the same pointer memory as the argument const IObjectIA *.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 545 of file group_type.cpp.

References _List, and NLAIAGENT::IObjectIA::IObjectIA.

Referenced by erase.

void NLAIAGENT::CGroupType::eraseAll const IObjectIA   obj [virtual]
 

Erase all element find equal at the const IObjectIA & on argument.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 529 of file group_type.cpp.

References _List, and NLAIAGENT::IObjectIA::IObjectIA.

const IObjectIA * NLAIAGENT::CGroupType::find const IObjectIA   obj const [virtual]
 

Find an element on the list the operator== is use.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 502 of file group_type.cpp.

References _List, and NLAIAGENT::IObjectIA::IObjectIA.

CGroupType::tListType NLAIAGENT::CGroupType::findList const IObjectIA   obj const
 

Definition at line 469 of file group_type.cpp.

References _List, NLAIAGENT::IObjectIA::IObjectIA, and NLAISCRIPT::l.

const IObjectIA * NLAIAGENT::CGroupType::get   const [virtual]
 

return the back IObjectIA.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 447 of file group_type.cpp.

References _List.

CGroupType::tListType::iterator NLAIAGENT::CGroupType::getBegin  
 

Definition at line 492 of file group_type.cpp.

References _List.

CGroupType::tListType::const_iterator NLAIAGENT::CGroupType::getBegin   const
 

Definition at line 482 of file group_type.cpp.

References _List.

virtual CConstIteratorContener NLAIAGENT::CGroupType::getConstIterator   const [inline, virtual]
 

Implements NLAIAGENT::IBaseGroupType.

Definition at line 674 of file agent_object.h.

void NLAIAGENT::CGroupType::getDebugString std::string &    text 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.

Implements NLAIC::IBasicType.

Definition at line 408 of file group_type.cpp.

References _List.

CGroupType::tListType::iterator NLAIAGENT::CGroupType::getEnd  
 

Definition at line 497 of file group_type.cpp.

References _List.

CGroupType::tListType::const_iterator NLAIAGENT::CGroupType::getEnd   const
 

Definition at line 487 of file group_type.cpp.

References _List.

const IObjectIA * NLAIAGENT::CGroupType::getFront   const [virtual]
 

return the front IObjectIA.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 459 of file group_type.cpp.

References _List.

virtual CIteratorContener NLAIAGENT::CGroupType::getIterator   [inline, virtual]
 

Get an iterator to parse the list.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 669 of file agent_object.h.

CGroupType::tListType & NLAIAGENT::CGroupType::getList   [protected]
 

Definition at line 390 of file group_type.cpp.

References _List.

Referenced by NLAISCRIPT::CListClass::find.

const NLAIC::CIdentType & NLAIAGENT::CGroupType::getType   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).

Implements NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::CPramContainer.

Definition at line 375 of file group_type.cpp.

References IdGroupType.

Referenced by NLAISCRIPT::CCompilateur::setListVar.

bool NLAIAGENT::CGroupType::isEqual const IBasicObjectIA   a const [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 586 of file group_type.cpp.

References _List, CGroupType, NLAIAGENT::IObjectIA::IObjectIA, and size.

void NLAIAGENT::CGroupType::load NLMISC::IStream   is [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 643 of file group_type.cpp.

References _List, NLAIC::CIdentTypeAlloc::allocClass, id, NLAIAGENT::IObjectIA::IObjectIA, NLAIC::IBasicInterface::load, NLAIC::IPointerGestion::release, and NLMISC::IStream::serial.

IObjetOp & NLAIAGENT::CGroupType::neg   [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 631 of file group_type.cpp.

References _List, NLAIAGENT::IObjetOp::IObjetOp, and NLAIC::CTypeOfOperator::opNeg.

const NLAIC::IBasicType * NLAIAGENT::CGroupType::newInstance   const [virtual]
 

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

Implements NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::CPramContainer.

Definition at line 612 of file group_type.cpp.

References CGroupType.

IObjetOp * NLAIAGENT::CGroupType::operator+ IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 269 of file group_type.cpp.

References _List, CGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

IObjetOp * NLAIAGENT::CGroupType::operator+ const IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 300 of file group_type.cpp.

References _List, CGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

IObjetOp * NLAIAGENT::CGroupType::operator- IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 284 of file group_type.cpp.

References _List, CGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

IObjetOp * NLAIAGENT::CGroupType::operator- const IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 314 of file group_type.cpp.

References _List, CGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

IObjectIA & NLAIAGENT::CGroupType::operator= const IObjectIA   a [virtual]
 

Equality operator.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 336 of file group_type.cpp.

References _List, CGroupType, clear, clone, NLAIAGENT::IObjectIA::IObjectIA, and NLAIC::CTypeOfObject::tList.

const IObjectIA * NLAIAGENT::CGroupType::operator[] sint32    const [virtual]
 

Implements NLAIAGENT::IBaseGroupType.

Definition at line 352 of file group_type.cpp.

References _List, and index.

const IObjectIA * NLAIAGENT::CGroupType::pop   [virtual]
 

Pop the back IObjectIA and return it.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 440 of file group_type.cpp.

References _List, and NLAIAGENT::IObjectIA::IObjectIA.

const IObjectIA * NLAIAGENT::CGroupType::popFront   [virtual]
 

Pop the front IObjectIA and return it.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 452 of file group_type.cpp.

References _List, and NLAIAGENT::IObjectIA::IObjectIA.

void NLAIAGENT::CGroupType::push const IObjectIA   o [virtual]
 

Push an IObjectIA back.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 424 of file group_type.cpp.

References _List.

Referenced by NLAISCRIPT::CPramContainer::operator+=.

void NLAIAGENT::CGroupType::pushFront const IObjectIA   o [virtual]
 

Push an IObjectIA front.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 429 of file group_type.cpp.

References _List.

const IObjectIA::CProcessResult & NLAIAGENT::CGroupType::run   [virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 380 of file group_type.cpp.

References _List, and NLAIAGENT::IObjectIA::IObjectIA.

void NLAIAGENT::CGroupType::save NLMISC::IStream   os [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 618 of file group_type.cpp.

References _List, NLAIAGENT::IObjectIA::IObjectIA, NLMISC::IStream::serial, and size.

void NLAIAGENT::CGroupType::set int   ,
IObjectIA  
[virtual]
 

Push an IObjectIA at the position indicate by the int.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 366 of file group_type.cpp.

References _List, index, and NLAIAGENT::IObjectIA::IObjectIA.

sint32 NLAIAGENT::CGroupType::size   const [virtual]
 

get the size of the list.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 464 of file group_type.cpp.

References _List.

Referenced by isEqual, and save.


Member Data Documentation

tListType NLAIAGENT::CGroupType::_List
 

std::list for store IObjectIA object.

Definition at line 644 of file agent_object.h.

Referenced by CGroupType, clear, cpy, erase, eraseAll, find, findList, get, getBegin, getDebugString, getEnd, getFront, getList, isEqual, load, neg, operator+, operator-, operator=, operator[], pop, popFront, push, pushFront, run, save, set, and size.

const NLAIC::CIdentType CGroupType::IdGroupType [static]
 

Referenced by getType.


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