00001 #include "opennwa/NwaFwd.hpp" 00002 00003 namespace opennwa 00004 { 00005 namespace construct 00006 { 00007 00008 /** 00009 * 00010 * @brief constructs the NWA which is the intersection of the given NWAs 00011 * 00012 * This method constructs the NWA which accepts only nested words that are accepted 00013 * by both 'first' and 'second'. 00014 * Note: The resulting NWA is NOT guaranteed to be deterministic. 00015 * 00016 * @param - first: the NWA to intersect with 'second' 00017 * @param - second: the NWA to intersect with 'first' 00018 * 00019 */ 00020 extern void intersect(Nwa & out, Nwa const & first, Nwa const & second); 00021 00022 00023 /** 00024 * 00025 * @brief constructs the NWA which is the intersection of the given NWAs 00026 * 00027 * This method constructs the NWA which accepts only nested words that are accepted 00028 * by both 'first' and 'second'. 00029 * Note: The resulting NWA is NOT guaranteed to be deterministic. 00030 * 00031 * @param - first: the NWA to intersect with 'second' 00032 * @param - second: the NWA to intersect with 'first' 00033 * @return the NWA resulting from the intersection of the given NWAs 00034 * 00035 */ 00036 extern NwaRefPtr intersect( Nwa const & first, Nwa const & second ); 00037 00038 00039 } 00040 } 00041 00042 00043 // Yo, Emacs! 00044 // Local Variables: 00045 // c-file-style: "ellemtel" 00046 // c-basic-offset: 2 00047 // End: 00048