dtn::EndpointIDPattern Class Reference

#include <EndpointID.h>

Inheritance diagram for dtn::EndpointIDPattern:

dtn::EndpointID oasys::SerializableObject List of all members.

Detailed Description

A Distinct class for endpoint patterns (i.e.

those containing some form of wildcarding) as opposed to basic endpoint IDs to help keep it straight in the code.

Definition at line 231 of file EndpointID.h.

Public Member Functions

 EndpointIDPattern ()
 Default constructor.
 EndpointIDPattern (const std::string &str)
 Construct the endpoint id pattern from the given string.
 EndpointIDPattern (const EndpointIDPattern &other)
 Construct the endpoint id pattern from another.
 EndpointIDPattern (const EndpointID &other)
 Construct the endpoint id pattern from another that is not necessarily a pattern.
bool match (const EndpointID &eid) const
 Shortcut to the matching functionality implemented by the scheme.


Constructor & Destructor Documentation

dtn::EndpointIDPattern::EndpointIDPattern (  )  [inline]

Default constructor.

Definition at line 236 of file EndpointID.h.

References dtn::EndpointID::is_pattern_.

dtn::EndpointIDPattern::EndpointIDPattern ( const std::string &  str  )  [inline]

Construct the endpoint id pattern from the given string.

Definition at line 244 of file EndpointID.h.

References dtn::EndpointID::assign(), and dtn::EndpointID::is_pattern_.

dtn::EndpointIDPattern::EndpointIDPattern ( const EndpointIDPattern other  )  [inline]

Construct the endpoint id pattern from another.

Definition at line 253 of file EndpointID.h.

References dtn::EndpointID::assign(), and dtn::EndpointID::is_pattern_.

dtn::EndpointIDPattern::EndpointIDPattern ( const EndpointID other  )  [inline]

Construct the endpoint id pattern from another that is not necessarily a pattern.

Definition at line 264 of file EndpointID.h.

References dtn::EndpointID::assign(), and dtn::EndpointID::is_pattern_.


Member Function Documentation

bool dtn::EndpointIDPattern::match ( const EndpointID eid  )  const

Shortcut to the matching functionality implemented by the scheme.

Definition at line 174 of file EndpointID.cc.

References dtn::EndpointID::known_scheme(), dtn::Scheme::match(), and dtn::EndpointID::scheme().

Referenced by dtn::RouteTable::get_matching(), dtn::RegistrationTable::get_matching(), and dtn::BundleDaemon::handle_registration_added().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:04 2006 for DTN Reference Implementation by  doxygen 1.5.1