OpenDDS::DCPS::ComparatorBase Class Reference

#include <Comparator_T.h>

Inheritance diagram for OpenDDS::DCPS::ComparatorBase:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::ComparatorBase:

Collaboration graph
[legend]
List of all members.

Public Types

typedef RcHandle< ComparatorBasePtr

Public Member Functions

 ComparatorBase (Ptr next=0)
virtual ~ComparatorBase ()
virtual bool less (void *lhs, void *rhs) const =0
virtual bool equal (void *lhs, void *rhs) const =0
bool compare (void *lhs, void *rhs) const

Private Attributes

Ptr next_

Detailed Description

Definition at line 26 of file Comparator_T.h.


Member Typedef Documentation

typedef RcHandle<ComparatorBase> OpenDDS::DCPS::ComparatorBase::Ptr

Definition at line 28 of file Comparator_T.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::ComparatorBase::ComparatorBase ( Ptr  next = 0  )  [inline, explicit]

Definition at line 30 of file Comparator_T.h.

00030 : next_(next) {}

virtual OpenDDS::DCPS::ComparatorBase::~ComparatorBase (  )  [inline, virtual]

Definition at line 32 of file Comparator_T.h.

00032 {}


Member Function Documentation

bool OpenDDS::DCPS::ComparatorBase::compare ( void *  lhs,
void *  rhs 
) const [inline]

Definition at line 37 of file Comparator_T.h.

References equal(), OpenDDS::DCPS::RcHandle< T >::in(), less(), and next_.

00037                                            {
00038     if (next_.in() && equal(lhs, rhs)) return next_->compare(lhs, rhs);
00039 
00040     return less(lhs, rhs);
00041   }

virtual bool OpenDDS::DCPS::ComparatorBase::equal ( void *  lhs,
void *  rhs 
) const [pure virtual]

Implemented in OpenDDS::DCPS::FieldComparator< Sample, Field >, and OpenDDS::DCPS::StructComparator< Sample, Field >.

Referenced by compare().

virtual bool OpenDDS::DCPS::ComparatorBase::less ( void *  lhs,
void *  rhs 
) const [pure virtual]

Implemented in OpenDDS::DCPS::FieldComparator< Sample, Field >, and OpenDDS::DCPS::StructComparator< Sample, Field >.

Referenced by compare().


Member Data Documentation

Ptr OpenDDS::DCPS::ComparatorBase::next_ [private]

Definition at line 44 of file Comparator_T.h.

Referenced by compare().


The documentation for this class was generated from the following file:
Generated on Fri Feb 12 20:06:10 2016 for OpenDDS by  doxygen 1.4.7