#ifndef NEURAL_CONTAINER_H #define NEURAL_CONTAINER_H #include "neural/node.h" #include namespace Neural { template class Container : public Node { public: typedef Bu::List *> NodeList; Container() { } virtual ~Container() { for( typename NodeList::iterator i = lNodes.begin(); i; i++ ) delete *i; } virtual void addNode( Node *pNode ) { lNodes.append( pNode ); } virtual const NodeList &getNodeList() const { return lNodes; } protected: virtual NodeList &getNodeList() { return lNodes; } private: NodeList lNodes; }; }; #endif