This is the abstract factory for Graphs.  
 More...
#include <AbstractGraphFactory.h>
 | 
| virtual void  | getCreationalParameters (std::vector< std::pair< std::string, std::string > > ¶ms) const =0 | 
|   | It returns the list of parameters accepted as graph info.  More...
  | 
|   | 
| const std::string &  | getKey () const | 
|   | It returns the factory key associated to the concreate factory.  More...
  | 
|   | 
| virtual const std::string &  | getType () const =0 | 
|   | Returns the type (name) of this factory.  More...
  | 
|   | 
| virtual  | ~AbstractGraphFactory () | 
|   | Destructor.  More...
  | 
|   | 
 | 
| static const factory_type *  | find (const std::string &factoryKey) | 
|   | 
| static dictionary_type &  | getDictionary () | 
|   | It returns a reference to the internal dictionary of concrete factories.  More...
  | 
|   | 
| static AbstractGraph *  | make () | 
|   | It creates and returns an empty graph with default graph type.  More...
  | 
|   | 
| static AbstractGraph *  | make (const std::string &gType) | 
|   | It creates an empty graph with the proper type.  More...
  | 
|   | 
| static AbstractGraph *  | make (const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | It creates a graph with the given parameters using the default graph type.  More...
  | 
|   | 
| static AbstractGraph *  | make (const std::string &gType, const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | It creates a graph with the given parameters using the default graph type.  More...
  | 
|   | 
| static AbstractGraph *  | open (const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | It opens a graph with the given parameters and default graph type.  More...
  | 
|   | 
| static AbstractGraph *  | open (const std::string &gType, const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | It creates a graph with the given parameters.  More...
  | 
|   | 
 | 
|   | AbstractGraphFactory (const std::string &factoryKey) | 
|   | Constructor.  More...
  | 
|   | 
| virtual AbstractGraph *  | build ()=0 | 
|   | Concrete factories (derived from this one) must implement this method in order to create objects.  More...
  | 
|   | 
| virtual AbstractGraph *  | create (const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo)=0 | 
|   | This method must be implemented by subclasses (graph types).  More...
  | 
|   | 
| virtual AbstractGraph *  | iOpen (const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo)=0 | 
|   | This method must be re-implemented by subclasses in order to have a finner control for the graph object instantiation.  More...
  | 
|   | 
 | 
static  
te::graph::AbstractCachePolicy *  | getCachePolicy (const std::map< std::string, std::string > &gInfo) | 
|   | This method is a auxiliar function used to get the cache policy pointer.  More...
  | 
|   | 
| static int  | getId (const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | This method is a auxiliar function used to get the graph id.  More...
  | 
|   | 
static  
te::graph::AbstractGraphLoaderStrategy *  | getLoaderStrategy (const std::map< std::string, std::string > &gInfo, te::graph::GraphMetadata *metadata) | 
|   | This method is a auxiliar function used to get the loader strategy pointer.  More...
  | 
|   | 
| static te::graph::GraphMetadata *  | getMetadata (const std::map< std::string, std::string > &dsInfo, const std::map< std::string, std::string > &gInfo) | 
|   | This method is a auxiliar function used to get the metadata pointer.  More...
  | 
|   | 
| static void  | setMetadataInformation (const std::map< std::string, std::string > &gInfo, te::graph::GraphMetadata *metadata) | 
|   | 
 | 
| std::string  | m_factoryKey | 
|   | The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.  More...
  | 
|   | 
This is the abstract factory for Graphs. 
- See also
 - AbstractGraph 
 
Definition at line 51 of file AbstractGraphFactory.h.
 
  
  
      
        
          | virtual te::graph::AbstractGraphFactory::~AbstractGraphFactory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | te::graph::AbstractGraphFactory::AbstractGraphFactory  | 
          ( | 
          const std::string &  | 
          factoryKey | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  | 
      
   | 
  
protectedpure virtualinherited   | 
  
 
 
  
  
      
        
          | virtual AbstractGraph* te::graph::AbstractGraphFactory::create  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedpure virtual   | 
  
 
 
  
  
      
        
          | virtual void te::graph::AbstractGraphFactory::getCreationalParameters  | 
          ( | 
          std::vector< std::pair< std::string, std::string > > &  | 
          params | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
 
It returns a reference to the internal dictionary of concrete factories. 
The dictionary is a singleton.
- Returns
 - A reference to the internal dictionary. 
 
 
 
  
  
      
        
          | int te::graph::AbstractGraphFactory::getId  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
This method is a auxiliar function used to get the graph id. 
- Parameters
 - 
  
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The graph id. 
 
Definition at line 143 of file AbstractGraphFactory.cpp.
 
 
It returns the factory key associated to the concreate factory. 
- Returns
 - The factory key associated to the concreate factory. 
 
 
 
  
  
      
        
          | te::graph::GraphMetadata * te::graph::AbstractGraphFactory::getMetadata  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
 
  
  
      
        
          | virtual const std::string& te::graph::AbstractGraphFactory::getType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual AbstractGraph* te::graph::AbstractGraphFactory::iOpen  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedpure virtual   | 
  
 
 
It creates and returns an empty graph with default graph type. 
- Returns
 - An empty graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Definition at line 42 of file AbstractGraphFactory.cpp.
References te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make(), and TE_DEFAULT_GRAPH_TYPE.
Referenced by te::graph::QueryGraphBuilder::build(), te::graph::RAGGraphBuilder::build(), te::graph::LDDGraphBuilder::build(), te::graph::FlowGraphBuilder::build(), te::sa::MinimumSpanningTree::createGraph(), te::sa::SpatialWeightsExchanger::importFromGAL(), te::sa::SpatialWeightsExchanger::importFromGWT(), and te::sa::GPMBuilder::setGPMInfo().
 
 
  
  
      
        
          | te::graph::AbstractGraph * te::graph::AbstractGraphFactory::make  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
It creates a graph with the given parameters using the default graph type. 
- Parameters
 - 
  
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - A new graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Definition at line 54 of file AbstractGraphFactory.cpp.
References TE_DEFAULT_GRAPH_TYPE.
 
 
  
  
      
        
          | te::graph::AbstractGraph * te::graph::AbstractGraphFactory::make  | 
          ( | 
          const std::string &  | 
          gType,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
It creates a graph with the given parameters using the default graph type. 
- Parameters
 - 
  
    | gType | The name of the specific driver to create the raster.  | 
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - A new graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Definition at line 59 of file AbstractGraphFactory.cpp.
References te::common::Convert2UCase(), create(), te::common::FactoryDictionary< TFACTORY, TFACTORYKEY, TKEYCOMPARE >::find(), te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::getDictionary(), te::graph::AbstractGraph::getMetadata(), te::graph::GraphMetadata::setType(), and TE_TR.
 
 
  
  
      
        
          | te::graph::AbstractGraph * te::graph::AbstractGraphFactory::open  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
It opens a graph with the given parameters and default graph type. 
- Parameters
 - 
  
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The opened graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Definition at line 77 of file AbstractGraphFactory.cpp.
References TE_DEFAULT_GRAPH_TYPE.
 
 
  
  
      
        
          | te::graph::AbstractGraph * te::graph::AbstractGraphFactory::open  | 
          ( | 
          const std::string &  | 
          gType,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          dsInfo,  | 
         
        
           | 
           | 
          const std::map< std::string, std::string > &  | 
          gInfo  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
It creates a graph with the given parameters. 
- Parameters
 - 
  
    | gType | The name of the specific graph type to create the graph.  | 
    | dsInfo | The necessary information to access the data source.  | 
    | gInfo | The necessary information to create the graph. | 
  
   
- Returns
 - The opened graph.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Definition at line 82 of file AbstractGraphFactory.cpp.
References te::common::Convert2UCase(), te::common::FactoryDictionary< TFACTORY, TFACTORYKEY, TKEYCOMPARE >::find(), te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::getDictionary(), te::graph::AbstractGraph::getMetadata(), iOpen(), te::graph::GraphMetadata::setType(), and TE_TR.
 
 
  
  
      
        
          | void te::graph::AbstractGraphFactory::setMetadataInformation  | 
          ( | 
          const std::map< std::string, std::string > &  | 
          gInfo,  | 
         
        
           | 
           | 
          te::graph::GraphMetadata *  | 
          metadata  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
 
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. 
Definition at line 136 of file AbstractFactory.h.
 
 
The documentation for this class was generated from the following files: