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 220 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 225 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 233 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 242 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 253 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 152 of file EndpointID.cc.

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

Referenced by dtn::ProphetAckList::fetch(), dtn::RouteTable::get_matching(), dtn::RegistrationTable::get_matching(), dtn::ProphetEncounter::handle_bundle_received(), dtn::BundleDaemon::handle_registration_added(), and dtn::ProphetNode::route_to_me().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:43:47 2007 for DTN Reference Implementation by  doxygen 1.5.3