|
| void | registerType (const Edge::Ptr &edge, bool throwOnAlreadyRegistered=false) |
| |
| void | registerType (const edge::Type &type, const Edge::Ptr &edge, bool throwOnAlreadyRegistered=false) |
| |
| void | setDefaultType (const std::string &type) |
| |
| const std::string & | getDefaultType () const |
| |
| Edge::Ptr | createEdge (const edge::Type &type, const std::string &label="", bool throwOnMissing=false) |
| | clones a new edge of a specified type More...
|
| |
| Edge::Ptr | createEdge (const edge::Type &type, const Vertex::Ptr &source, const Vertex::Ptr &target, const std::string &label="", bool throwOnMissing=false) |
| |
| std::set< std::string > | getSupportedTypes () const |
| | lists the registered types More...
|
| |
| std::vector< Attribute > | getKnownAttributes (const std::set< std::string > &classnames=std::set< std::string >()) const |
| |
| std::vector< std::pair< Attribute::Id, std::string > > | getAttributeValues (const Edge::Ptr &edge) const |
| |
| void | activateAttributedType (const std::string &typeName) |
| |
| void | registerAttribute (const std::string &typeName, const std::string &attributeName, io::AttributeSerializationCallbacks::serialize_func_t sF, io::AttributeSerializationCallbacks::deserialize_func_t dF, io::AttributeSerializationCallbacks::print_func_t pF) |
| | register a new attribute for serialization and deserialization More...
|
| |
| std::vector< std::string > | getAttributes (const std::string &vertexTypeName) const |
| | returns all registered members for the given vertex More...
|
| |
| io::AttributeSerializationCallbacks | getAttributeSerializationCallbacks (const std::string &typeName, const std::string &attributeName) const |
| |
Factory for Edge subclasses.
EdgeTypeManager allows to register edge classes by type
- which is a given string. When loading a serialized graph via GraphIO::read the EdgeTypeManager allows to instanciate edges corresponding to the given class type – which has to match the type string. Instanciation is done via cloning the corresponding edge instance.