Unique storage of new graph pointers in STL push-back container. More...
#include <GS_STL.hh>
Public Types | |
typedef STL_CONTAINER | storage_type |
type of STL container of graphs this graph storage uses More... | |
Public Member Functions | |
virtual void | add (const Graph &graph) |
GS_STL_pushUniquePT (STL_CONTAINER &storage, sgm::GraphMatching &matcher) | |
GS_STL_pushUniquePT (STL_CONTAINER &storage, sgm::GraphMatching &matcher, const std::string &wildcard) | |
GS_STL_pushUniquePT (const GGL_GS_STL_PUSHUNIQUEPT_TYPE &toCopy) | |
virtual | ~GS_STL_pushUniquePT () |
destruction More... | |
Protected Attributes | |
sgm::GraphMatching & | matcher |
STL_CONTAINER & | storage |
the STL container to write the graphs to More... | |
const std::string * | wildcard |
the wildcard to use for the matching More... | |
A ggl::Graph_Storage implementation that pushs the a 'new' allocated copy of the added graph to the end of a provided STL container !!! ONLY if it is not only present in the container !!!, using its "push_back" method.
The check is done using the provided sgm::GraphMatching object. Thus the more elements are in the container the more tests have to be done which results in slower runtimes!
STL_CONTAINER | a push-back STL container for Graph pointer. |
typedef STL_CONTAINER ggl::GS_STL_pushUniquePT< STL_CONTAINER >::storage_type |
ggl::GS_STL_pushUniquePT< STL_CONTAINER >::GS_STL_pushUniquePT | ( | STL_CONTAINER & | storage, |
sgm::GraphMatching & | matcher | ||
) |
Construction
storage | the STL container to write the graphs to |
matcher | the graph matcher used to decide if the added graph is already present in the storage |
ggl::GS_STL_pushUniquePT< STL_CONTAINER >::GS_STL_pushUniquePT | ( | STL_CONTAINER & | storage, |
sgm::GraphMatching & | matcher, | ||
const std::string & | wildcard | ||
) |
Construction
storage | the STL container to write the graphs to |
matcher | the graph matcher used to decide if the added graph is already present in the storage |
wildcard | the wildcard to use for the matching. |
ggl::GS_STL_pushUniquePT< STL_CONTAINER >::GS_STL_pushUniquePT | ( | const GGL_GS_STL_PUSHUNIQUEPT_TYPE & | toCopy | ) |
Copy construction
toCopy | the object to make this a copy of |
|
virtual |
|
virtual |
Adds the given graph to the internal STL container.
graph | the Graph object to add. |
Implements ggl::Graph_Storage.
|
protected |
|
protected |
|
protected |