GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Public Types | Public Member Functions | List of all members
GraphProperties< GraphType > Class Template Reference

Public Types

typedef GraphType::node_value_type V_type
 
typedef GraphType::edge_value_type E_type
 
typedef GraphType::index_type_t index_type_t
 
typedef GraphType::property_map_t property_map_t
 
typedef
GraphType::node_property_map_t 
node_property_map_t
 
typedef
GraphType::edge_property_map_t 
edge_property_map_t
 

Public Member Functions

void set_property (V_type node, std::string property, std::string value)
 
void set_property (E_type edge, std::string property, std::string value)
 
std::string get_property (V_type node, std::string property)
 
std::string get_property (E_type edge, std::string property)
 
property_map_t * get_all_properties (V_type node)
 
property_map_t * get_all_properties (E_type edge)
 
void clear ()
 Clear all properties for both nodes and edges.
 

Member Function Documentation

template<typename GraphType>
property_map_t* GraphProperties< GraphType >::get_all_properties ( V_type  node)
inline

Retrieves all properties for a given node.

Parameters
nodeThe node from which to get the property map from
Returns
The property map if any properties are set, otherwise NULL.
template<typename GraphType>
property_map_t* GraphProperties< GraphType >::get_all_properties ( E_type  edge)
inline

Retrieves all properties for a given edge.

Parameters
edgeThe edge from which to get the property map from
Returns
The property map if any properties are set, otherwise NULL.
template<typename GraphType>
std::string GraphProperties< GraphType >::get_property ( V_type  node,
std::string  property 
)
inline

Retrieves a value for a given property for the given node.

Parameters
nodeThe node from which to get the property from
propertyThe property whose value is returned
Returns
The value string if successful, empty string otherwise
template<typename GraphType>
std::string GraphProperties< GraphType >::get_property ( E_type  edge,
std::string  property 
)
inline

Retrieves a value for a given property for the given edge.

Parameters
edgeThe edge from which to get the property from
propertyThe property whose value is returned
Returns
The value string if successful, empty string otherwise
template<typename GraphType>
void GraphProperties< GraphType >::set_property ( V_type  node,
std::string  property,
std::string  value 
)
inline

Sets a property to the given value for the given node. If no such property exists, it will be created. If the node does not exist, nothing is inserted.

Parameters
nodeThe node to insert a property value for
propertyThe property to set
valueThe value to set the property to
template<typename GraphType>
void GraphProperties< GraphType >::set_property ( E_type  edge,
std::string  property,
std::string  value 
)
inline

Sets a property to the given value for the given edge. If no such property exists, it will be created. If the edge does not exist, nothing is inserted.

Parameters
edgeThe edge to insert a property value for
propertyThe property to set
valueThe value to set the property to

The documentation for this class was generated from the following file: