Diana  0.8.3
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Attributes
DianaCollection Class Reference

#include <DianaBasic.hpp>

Inheritance diagram for DianaCollection:
ICapeCollection ICapeIdentification

List of all members.

Public Member Functions

 DianaCollection (Common::Types::CapeBoolean owning=true)
Common::Types::CapeBoolean getOwning () const
void setOwning (const Common::Types::CapeBoolean _owning)
const Common::Types::CapeStringGetComponentName () const throw (Common::Error::ECapeUnknown)
void SetComponentName (const Common::Types::CapeString &_name) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
const Common::Types::CapeStringGetComponentDescription () const throw (Common::Error::ECapeUnknown)
void SetComponentDescription (const Common::Types::CapeString &_description) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
Common::Types::CapeLong Count () const throw (Common::Error::ECapeUnknown, Common::Error::ECapeFailedInitialisation)
Common::Identification::ICapeIdentificationItemByIndex (Common::Types::CapeLong index) const throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeFailedInitialisation, Common::Error::ECapeOutOfBounds)
Common::Identification::ICapeIdentificationItemByName (const Common::Types::CapeString &name) const throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeFailedInitialisation, Common::Error::ECapeOutOfBounds)
void Add (Common::Identification::ICapeIdentification *item, const Common::Types::CapeString &alias=Common::Types::CapeStringUNDEFINED) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
void AddIndexed (Common::Identification::ICapeIdentification *item, const Common::Types::CapeString &alias=Common::Types::CapeStringUNDEFINED) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
void AddArray (Common::Identification::ICapeIdentification *item, const std::vector< Common::Identification::ICapeIdentification * > &skalItems, const Common::Types::CapeString &alias=Common::Types::CapeStringUNDEFINED) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
Common::Identification::ICapeIdentificationGetArray (Common::Types::CapeLong index) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
Common::Types::CapeLong ItemIndexByName (const Common::Types::CapeString &name) const throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)

Protected Types

typedef std::vector
< Common::Identification::ICapeIdentification * > 
vecident
typedef std::vector
< Common::Types::CapeLong
vecindices
typedef std::map< std::string,
Common::Types::CapeLong
mapindices

Protected Member Functions

Common::Types::CapeLong mapNameToPosition (const Common::Types::CapeString &name) const
Common::Identification::ICapeIdentificationgetItemFromPool (Common::Types::CapeLong pos) const throw (Common::Error::ECapeUnknown, Common::Error::ECapeOutOfBounds)
void addStringMapping (const Common::Types::CapeString &name, const Common::Types::CapeString &alias, Common::Types::CapeLong pos) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)

Protected Attributes

Common::Types::CapeString strCollName
 collection name
Common::Types::CapeString strCollDescription
 collection description
vecident vecItemsPool
vecindices vecItems
vecindices arrayItems
mapindices mapItems
mapindices mapItemsIndexed

Private Attributes

Common::Types::CapeBoolean owning

Detailed Description

Diana realization of the ICapeCollection interface


Member Typedef Documentation

typedef std::map<std::string, Common::Types::CapeLong> mapindices [protected]

mapping from item name to item position in vecident.

typedef std::vector<Common::Identification::ICapeIdentification*> vecident [protected]

vector of the ICapeIdentification items type

typedef std::vector<Common::Types::CapeLong> vecindices [protected]

mapping from item index to item position in vecident


Member Function Documentation

Add an element in the end of the collection (not defined in Python).

Add an arrayed element with all skalar elements in the end of the collection and update index array . The elements can be accessed as skalar or arrayed elements. Also entries in the root array are generated, to make a backward mapping from the item index to the root possible.

Add an element in the end of the collection and update index array (not defined in Python).

Referenced by DianaContinuation::DianaContinuation(), HopfPointContinuation::HopfPointContinuation(), SingAnalyser::SingAnalyser(), and SteadyStateContinuation::SteadyStateContinuation().

connects name and alias with position in the vecItemsPool.

return the number of items in the collection.

Implements ICapeCollection.

Referenced by ParameterFittingTask::GetFixedSoughtParamsCount().

Get the array entry for some index of the indexed collection entries. If it is a skalar element, get the normal item as in ItemByIndex.

gets the description of the component.

Implements ICapeIdentification.

gets the name of the component.

Implements ICapeIdentification.

returns ICapeIdentification item by it's position in the items pool.

return an element from the collection. The requested element is identified by it's position in the collection.

Parameters:
indexindex of item

Implements ICapeCollection.

Referenced by SingAnalyser::addDerivativeByParameter(), DianaContinuation::packFreeParameters(), and DianaContinuation::unpackFreeParameters().

Return an element from the collection. The requested element is identified by its actual name in the collection. The name of an element is the value returned by the ComponentName() method of its ICapeIdentification interface.

Parameters:
namename of item

Implements ICapeCollection.

add an element in the end of the collection and update index array (not defined in Python).

mapping from item name to item index.

sets the description of the component.

Parameters:
_descriptionthe description of the component

Implements ICapeIdentification.

sets the name of the component.

Parameters:
_namethe name of the component

Implements ICapeIdentification.


Member Data Documentation

vecindices arrayItems [protected]

vector with position of array or skalar element.

mapindices mapItems [protected]

string to CapeLong mapping to get item position by it's name.

string to CapeLong mapping to get item position by it's name (only for indexed variables).

Flag whether the collection owns the Paramters, or not

vecindices vecItems [protected]

vector with item position.

vecident vecItemsPool [protected]

vector of the ICapeIdentification items.


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