From d093a607848aa4cce99729d9b301f4888dfa66db Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 12 Jul 2007 22:52:13 +0000 Subject: The SPtr now has != comparison operators --- src/sptr.h | 20 ++++++++++++++++++++ src/tafnode.cpp | 23 ----------------------- 2 files changed, 20 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/sptr.h b/src/sptr.h index 75851a6..bccf887 100644 --- a/src/sptr.h +++ b/src/sptr.h @@ -139,6 +139,26 @@ namespace Bu { return pData == src; } + + /** + * Not equals comparison operator. + *@param src (const SPtr &) The SPtr to compare to. + *@returns (bool) Are the equal? + */ + bool operator!=( const SPtr &src ) const + { + return !(pData == src.pData); + } + + /** + * Not equals comparison operator. + *@param src (const T *) The pointer to compare to. + *@returns (bool) Are the equal? + */ + bool operator!=( const T *src ) const + { + return !(pData == src); + } /** * Boolean cast operator. Do we have a pointer? diff --git a/src/tafnode.cpp b/src/tafnode.cpp index 53b782e..98bb030 100644 --- a/src/tafnode.cpp +++ b/src/tafnode.cpp @@ -14,28 +14,6 @@ const Bu::TafNode::NodeType Bu::TafNode::getType() const return eType; } -/* -const Bu::TafNode::PropList &Bu::TafNode::getProperties( const Bu::FString &sName ) const -{ - return hProp.get( sName ); -} - -const Bu::TafNode::NodeList &Bu::TafNode::getChildren( const Bu::FString &sName ) const -{ - return hChildren.get( sName ); -} - -const Bu::FString &Bu::TafNode::getProperty( const Bu::FString &sName ) const -{ - return getProperties( sName ).first(); -} - -const Bu::TafNode *Bu::TafNode::getChild( const Bu::FString &sName ) const -{ - return getChildren( sName ).first(); -} -*/ - Bu::TafGroup::TafGroup( const Bu::FString &sName ) : TafNode( typeGroup ), sName( sName ) @@ -44,7 +22,6 @@ Bu::TafGroup::TafGroup( const Bu::FString &sName ) : Bu::TafGroup::~TafGroup() { - //printf("Entering Bu::TafNode::~TafNode() \"%s\"\n", sName.getStr() ); for( NodeList::iterator i = lChildren.begin(); i != lChildren.end(); i++ ) { delete (*i); -- cgit v1.2.3