Beispiel #1
0
	/*!
	 *  \brief Acces to an handle the nth tree of the GP::Individual.
	 *  \param inN Indice of the GP::Tree to get.
	 *  \return Pointer (GP::Tree::Handle) at the indice N.
	 */
	inline GP::Tree::Handle& operator[](unsigned int inN)
	{
		Beagle_StackTraceBeginM();
		Beagle_UpperBoundCheckAssertM(inN,size()-1);
		return castHandleT<GP::Tree>(std::vector<Pointer>::operator[](inN));
		Beagle_StackTraceEndM();
	}
	/*!
	 *  \brief Standard  operator for accessing elements by index.
	 *  \param inN Index of element (first is 0).
	 *  \return Smart pointer to element.
	 */
	inline Object::Handle& operator[](unsigned int inN)
	{
		Beagle_StackTraceBeginM();
		Beagle_UpperBoundCheckAssertM(inN,size()-1);
		return std::vector<Pointer>::operator[](inN);
		Beagle_StackTraceEndM("Object::Handle& Container::operator[](unsigned int inN)");
	}