Overview     Modules     Class Hierarchy     Classes     Members  
tlp::GraphProperty Class Reference

#include <GraphProperty.h>

Inheritance diagram for tlp::GraphProperty:
Collaboration diagram for tlp::GraphProperty:

List of all members.

Public Member Functions

 GraphProperty (Graph *, std::string n="")
virtual ~GraphProperty ()
void destroy (Graph *)
PropertyInterfaceclonePrototype (Graph *, const std::string &)
bool setNodeStringValue (const node n, const std::string &v)
bool setAllNodeStringValue (const std::string &v)
bool setEdgeStringValue (const edge e, const std::string &v)
bool setAllEdgeStringValue (const std::string &v)
std::string getTypename () const
virtual void setNodeValue (const node n, const GraphType::RealType &g)
virtual void setAllNodeValue (const GraphType::RealType &g)
bool hasNonDefaultValue (const node n) const
bool hasNonDefaultValue (const edge e) const
- Public Member Functions inherited from tlp::AbstractProperty< Tnode, Tedge, TPROPERTY >
 AbstractProperty (Graph *, std::string n="")
Tnode::RealType getNodeDefaultValue () const
 Returns the default node value of the property.
Tedge::RealType getEdgeDefaultValue () const
 Returns the default edge value of the property.
tlp::StoredType< typename
Tnode::RealType >
::ReturnedConstValue 
getNodeValue (const node n) const
 Returns the value associated with the node n in this property. If there is no value, it returns the default ndoe value.
tlp::StoredType< typename
Tedge::RealType >
::ReturnedConstValue 
getEdgeValue (const edge e) const
 Returns the value associated to the edge e in this property. If there is no value, it returns the default edge value.
virtual void setNodeValue (const node n, const typename Tnode::RealType &v)
 Sets the value of a node and notify the observers of a modification.
virtual void setEdgeValue (const edge e, const typename Tedge::RealType &v)
 Set the value of an edge and notify the observers of a modification.
virtual void setAllNodeValue (const typename Tnode::RealType &v)
 Sets the value of all nodes and notify the observers.
virtual void setAllEdgeValue (const typename Tedge::RealType &v)
 Sets the value of all edges and notify the observers.
virtual void erase (const node n)
 Resets the value of a node to the default value.
virtual void erase (const edge e)
 Resets the value of an edge to the default value.
virtual AbstractProperty
< Tnode, Tedge, TPROPERTY > & 
operator= (AbstractProperty< Tnode, Tedge, TPROPERTY > &prop)
virtual std::string getNodeDefaultStringValue () const
virtual std::string getEdgeDefaultStringValue () const
virtual std::string getNodeStringValue (const node n) const
virtual std::string getEdgeStringValue (const edge e) const
virtual tlp::Iterator< node > * getNonDefaultValuatedNodes (const Graph *g=NULL) const
 Returns an iterator on all nodes whose value is different from the default value. When the pointer to the graph is not NULL, only the nodes owned by this graph are returned by the iterator.
virtual tlp::Iterator< edge > * getNonDefaultValuatedEdges (const Graph *g=NULL) const
 Returns an iterator on all edges whose value is different from the default value. When the pointer to the graph is not NULL, only the edges owned by this graph are returned by the iterator.
virtual void copy (const node destination, const node source, PropertyInterface *property, bool ifNotDefault=false)
 Copies the value hold by a property on a node to another node on this property.
virtual void copy (const edge destination, const edge source, PropertyInterface *property, bool ifNotDefault=false)
 Copies the value hold by a property on an edge to another edge on this property.
virtual void copy (PropertyInterface *property)
 Copies the values hold by a property on this property.
virtual DataMemgetNodeDefaultDataMemValue () const
virtual DataMemgetEdgeDefaultDataMemValue () const
virtual DataMemgetNodeDataMemValue (const node n) const
virtual DataMemgetEdgeDataMemValue (const edge e) const
virtual DataMemgetNonDefaultDataMemValue (const node n) const
virtual DataMemgetNonDefaultDataMemValue (const edge e) const
virtual void setNodeDataMemValue (const node n, const DataMem *v)
virtual void setEdgeDataMemValue (const edge e, const DataMem *v)
virtual void setAllNodeDataMemValue (const DataMem *v)
virtual void setAllEdgeDataMemValue (const DataMem *v)
virtual void computeMetaValue (node n, Graph *sg, Graph *mg)
virtual void computeMetaValue (edge e, tlp::Iterator< edge > *itE, Graph *mg)
virtual void setMetaValueCalculator (PropertyInterface::MetaValueCalculator *mvCalc)
int compare (const node n1, const node n2) const
 Default implementation of PropertyInterface::compare(node n1,node n2)
int compare (const edge e1, const edge e2) const
 Default implementation of PropertyInterface::compare(edge e1,edge e2)
- Public Member Functions inherited from tlp::PropertyInterface
virtual ~PropertyInterface ()
const std::string & getName () const
tlp::GraphgetGraph ()
MetaValueCalculatorgetMetaValueCalculator ()
void addPropertyObserver (PropertyObserver *pObs)
void removePropertyObserver (PropertyObserver *pObs)
unsigned int countPropertyObservers () const
- Public Member Functions inherited from tlp::Observable
 Observable ()
_DEPRECATED Observable (bool)
virtual ~Observable ()
tlp::Iterator< Observable * > * getOnlookers () const
 return an Iterator on all Onlookers
tlp::Iterator< Observable * > * getObservables () const
virtual void treatEvents (const std::vector< Event > &events)
virtual void _DEPRECATED update (std::set< Observable * >::iterator, std::set< Observable * >::iterator)
virtual void _DEPRECATED observableDestroyed (Observable *)
virtual void treatEvent (const Event &)
void addObserver (Observable *const obs) const
 use for old observer tulip compatibility
void addListener (Observable *const obs) const
 use for old observer tulip compatibility
void removeOnlooker (const Observable &, OLOEDGETYPE type) const
 remove an Observer/Listener of the observable
void removeObserver (Observable *const obs) const
 use for old observer tulip compatibility
void removeListener (Observable *const obs) const
void _DEPRECATED notifyObservers ()
 use for old observer tulip compatibility
unsigned int countObservers () const
unsigned int countOnLookers () const
unsigned int countListeners () const
bool hasOnlookers () const
 remove all Observer/Listener of the observable
- Public Member Functions inherited from tlp::OLOObject
tlp::node getNode () const
 return the node representing that OLOObject in the OLOGraph
unsigned int getSent () const
 return the number of sent nofication
unsigned int getReceived () const
 return the number of received nofication
- Public Member Functions inherited from tlp::GraphObserver
 GraphObserver ()
virtual ~GraphObserver ()
 GraphObserver (const GraphObserver &)
GraphObserveroperator= (const GraphObserver &)
virtual void addNode (Graph *, const node)
virtual void addEdge (Graph *, const edge)
virtual void beforeSetEnds (Graph *, const edge)
virtual void afterSetEnds (Graph *, const edge)
virtual void delNode (Graph *, const node)
virtual void delEdge (Graph *, const edge)
virtual void reverseEdge (Graph *, const edge)
virtual void addSubGraph (Graph *, Graph *)
virtual void delSubGraph (Graph *, Graph *)
virtual void addLocalProperty (Graph *, const std::string &)
virtual void beforeDelLocalProperty (Graph *g, const std::string &pName)
virtual void afterDelLocalProperty (Graph *, const std::string &)
virtual void delLocalProperty (Graph *, const std::string &)
virtual void addInheritedProperty (Graph *, const std::string &)
virtual void beforeDelInheritedProperty (Graph *, const std::string &)
virtual void afterDelInheritedProperty (Graph *, const std::string &)
virtual void beforeSetAttribute (Graph *, const std::string &)
virtual void afterSetAttribute (Graph *, const std::string &)
virtual void removeAttribute (Graph *, const std::string &)

Static Public Attributes

static const std::string propertyTypename

Friends

class GraphAbstract

Additional Inherited Members

- Protected Member Functions inherited from tlp::AbstractProperty< Tnode, Tedge, TPROPERTY >
virtual void clone_handler (AbstractProperty< Tnode, Tedge, TPROPERTY > &)
 Enable to clone part of sub_class.
- Protected Member Functions inherited from tlp::PropertyInterface
void notifyBeforeSetNodeValue (const node n)
void notifyAfterSetNodeValue (const node n)
void notifyBeforeSetEdgeValue (const edge e)
void notifyAfterSetEdgeValue (const edge e)
void notifyBeforeSetAllNodeValue ()
void notifyAfterSetAllNodeValue ()
void notifyBeforeSetAllEdgeValue ()
void notifyAfterSetAllEdgeValue ()
void notifyDestroy ()
 use for old observer tulip compatibility
- Protected Member Functions inherited from tlp::Observable
void addOnlooker (const Observable &, OLOEDGETYPE type) const
 add an Observer/Listener to the observable
void sendEvent (const Event &)
 Enable to send an event to all Observer/Listener.
void observableDeleted ()
 Enable to send Event::DELETE before the deletion of subclass internal objects.
- Protected Member Functions inherited from tlp::OLOObject
 OLOObject ()
 OLOObject (const OLOObject &)
virtual ~OLOObject ()
OLOObjectoperator= (const OLOObject &)
tlp::Iterator< tlp::node > * getInObjects () const
 return an iterator on in objects (Observable), the iterator guarantee that all objects are alive (not deleted during hold or notify)
tlp::Iterator< tlp::node > * getOutObjects () const
 return an iterator on out objects (Listener/Observer), the iterator garantee that all objects are alive (not deleted during hold or notify)
- Protected Attributes inherited from tlp::AbstractProperty< Tnode, Tedge, TPROPERTY >
MutableContainer< typename
Tnode::RealType > 
nodeProperties
MutableContainer< typename
Tedge::RealType > 
edgeProperties
Tnode::RealType nodeDefaultValue
Tedge::RealType edgeDefaultValue
- Protected Attributes inherited from tlp::PropertyInterface
std::string name
Graphgraph
MetaValueCalculatormetaValueCalculator

Constructor & Destructor Documentation

tlp::GraphProperty::GraphProperty ( Graph ,
std::string  n = "" 
)
virtual tlp::GraphProperty::~GraphProperty ( )
virtual

Member Function Documentation

PropertyInterface* tlp::GraphProperty::clonePrototype ( Graph ,
const std::string &   
)
virtual

Creates an object of the same real type of the current property, in the the graph (first parameter) with the name (second parameter). Values are not copied.

Implements tlp::PropertyInterface.

void tlp::GraphProperty::destroy ( Graph )
virtual

Reimplemented from tlp::GraphObserver.

std::string tlp::GraphProperty::getTypename ( ) const
inlinevirtual

Returns a string describing the type of the property. i.e. "graph", "double", "layout", "string", "integer", "color", "size", ...

Implements tlp::PropertyInterface.

bool tlp::GraphProperty::hasNonDefaultValue ( const node  n) const
inline
bool tlp::GraphProperty::hasNonDefaultValue ( const edge  e) const
inline
bool tlp::GraphProperty::setAllEdgeStringValue ( const std::string &  v)
virtual

Clears all edges registered values, and sets a new edge default value in converting the given string representation of a value. Returns true if the given string representation has been successfully converted to a value, false otherwise.

Reimplemented from tlp::AbstractProperty< Tnode, Tedge, TPROPERTY >.

bool tlp::GraphProperty::setAllNodeStringValue ( const std::string &  v)
virtual

Clears all nodes registered values, and sets a new node default value in converting the given string representation of a value. Returns true if the given string representation has been successfully converted to a value, false otherwise.

Reimplemented from tlp::AbstractProperty< Tnode, Tedge, TPROPERTY >.

virtual void tlp::GraphProperty::setAllNodeValue ( const GraphType::RealType g)
virtual
bool tlp::GraphProperty::setEdgeStringValue ( const edge  e,
const std::string &  v 
)
virtual

Registers a new value for the given edge in converting the given string representation. Returns true if the given string representation has been successfully converted to a value, false otherwise.

Reimplemented from tlp::AbstractProperty< Tnode, Tedge, TPROPERTY >.

bool tlp::GraphProperty::setNodeStringValue ( const node  n,
const std::string &  v 
)
virtual

Registers a new value for the given node in converting the given string representation. Returns true if the given string representation has been successfully converted to a value, false otherwise.

Reimplemented from tlp::AbstractProperty< Tnode, Tedge, TPROPERTY >.

virtual void tlp::GraphProperty::setNodeValue ( const node  n,
const GraphType::RealType g 
)
virtual

Friends And Related Function Documentation

friend class GraphAbstract
friend

Member Data Documentation

const std::string tlp::GraphProperty::propertyTypename
static


Tulip Software by LaBRI Visualization Team    2001 - 2012