From: <den...@us...> - 2010-09-13 06:31:25
|
Revision: 328 http://stdair.svn.sourceforge.net/stdair/?rev=328&view=rev Author: denis_arnaud Date: 2010-09-13 06:31:18 +0000 (Mon, 13 Sep 2010) Log Message: ----------- [Test] Added a test sub-directory for Boost.Intrusive-based architecture (there is still some work to do). Modified Paths: -------------- trunk/stdair/test/archi_intru/BomRoot.hpp trunk/stdair/test/archi_intru/RelationShipHolder.hpp trunk/stdair/test/archi_intru/RelationShipHolderAbstract.hpp Modified: trunk/stdair/test/archi_intru/BomRoot.hpp =================================================================== --- trunk/stdair/test/archi_intru/BomRoot.hpp 2010-09-12 22:29:25 UTC (rev 327) +++ trunk/stdair/test/archi_intru/BomRoot.hpp 2010-09-13 06:31:18 UTC (rev 328) @@ -21,8 +21,17 @@ /** BomRoot. */ class BomRoot : public BomAbstract { public: + /** Constructors. */ BomRoot (const std::string& iKey) : BomAbstract (iKey) {} BomRoot (const int idx) : BomAbstract (idx) {} + /** Destructor. */ + ~BomRoot() {} + private: + /** Default constructors. + <br>They are kept private, so as to forbid their use (only the + public constructors should be used). */ + BomRoot () {} + BomRoot (const BomRoot&) {} public: bi::list_member_hook<> _childListHook; Modified: trunk/stdair/test/archi_intru/RelationShipHolder.hpp =================================================================== --- trunk/stdair/test/archi_intru/RelationShipHolder.hpp 2010-09-12 22:29:25 UTC (rev 327) +++ trunk/stdair/test/archi_intru/RelationShipHolder.hpp 2010-09-13 06:31:18 UTC (rev 328) @@ -44,6 +44,14 @@ ioSecondBom.getKey())), _firstBom (ioFirstBom) { } + /** Destructor. */ + ~RelationShipHolder() {} + private: + /** Default constructors. + <br>They are kept private, so as to forbid their use (only the + public constructors should be used). */ + RelationShipHolder () {} + RelationShipHolder (const RelationShipHolder&) {} public: bi::list_member_hook<> _childListHook; Modified: trunk/stdair/test/archi_intru/RelationShipHolderAbstract.hpp =================================================================== --- trunk/stdair/test/archi_intru/RelationShipHolderAbstract.hpp 2010-09-12 22:29:25 UTC (rev 327) +++ trunk/stdair/test/archi_intru/RelationShipHolderAbstract.hpp 2010-09-13 06:31:18 UTC (rev 328) @@ -24,10 +24,8 @@ oStr << idx; _key = oStr.str(); } - /** Get the key. */ - const std::string& getKey() const { - return _key; - } + /** Destructor. */ + ~RelationShipHolderAbstract() {} protected: /** Default constructors. @@ -37,6 +35,12 @@ RelationShipHolderAbstract (const RelationShipHolderAbstract&) {} public: + /** Get the key. */ + const std::string& getKey() const { + return _key; + } + + public: // Comparison operators friend bool operator< (const RelationShipHolderAbstract& a, const RelationShipHolderAbstract& b) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |