This class is used to define a set of properties of a Edge. More...
#include <EdgeProperty.h>
  
 Public Member Functions | |
| void | add (Property *p) | 
| It adds a new property to the CompositeProperty.  More... | |
| void | add (const std::vector< Property * > &ps) | 
| It adds a list of property types to the CompositeProperty.  More... | |
| void | add (const boost::ptr_vector< te::dt::Property > &ps) | 
| virtual void | clear () | 
| It clears the CompositeProperty definition.  More... | |
| virtual Property * | clone () const | 
| It returns a clone of the object.  More... | |
| void | copy (const std::vector< Property * > &ps) | 
| It copies the properties from the vector.  More... | |
| EdgeProperty () | |
| Default constructor.  More... | |
| Property * | findFirstPropertyOfType (const int t) const | 
| returns the first property of the given data type. Caller doesn't take ownership of the returned pointer.  More... | |
| const std::string & | getCompositeName () const | 
| It returns the name of the composite type.  More... | |
| const std::string & | getDatasetName () const | 
| It returns the name of the propery's dataset.  More... | |
| unsigned int | getId () const | 
| It returns the property identifier.  More... | |
| const std::string & | getName () const | 
| It returns the property name.  More... | |
| Property * | getParent () const | 
| It returns the parent of this property, or NULL, if it doesn't have one.  More... | |
| const std::vector< Property * > & | getProperties () const | 
| It returns the list of properties describing the CompositeProperty.  More... | |
| std::vector< Property * > & | getProperties () | 
| It returns the list of properties describing the CompositeProperty.  More... | |
| Property * | getProperty (std::size_t i) const | 
| It returns the i-th property.  More... | |
| Property * | getProperty (const std::string &name) const | 
| It returns the property with the given name or NULL if none is found.  More... | |
| Property * | getPropertyById (unsigned int id) const | 
| It searches for a property with the given ID.  More... | |
| std::size_t | getPropertyPosition (const std::string &name) const | 
| It returns the property position based on its name.  More... | |
| std::size_t | getPropertyPosition (const Property *p) const | 
| It returns the property position .  More... | |
| int | getType () const | 
| It returns the property data type.  More... | |
| bool | has (Property *p) const | 
| It checks if the Property "p" is associated to this property or any other parent.  More... | |
| bool | hasPropertyOfType (const int t) const | 
| Tells if there is a property of the given data type.  More... | |
| virtual void | remove (Property *p) | 
| It removes the property from the composite.  More... | |
| void | setCompositeName (const std::string &cname) | 
| It sets the composite type name.  More... | |
| void | setDatasetName (const std::string &dsName) | 
| It sets the property name.  More... | |
| void | setId (unsigned int id) | 
| It sets the property identifier.  More... | |
| void | setName (const std::string &name) | 
| It sets the property name.  More... | |
| void | setParent (Property *p) | 
| It associate this property to the informed parent.  More... | |
| std::size_t | size () const | 
| It returns the number of properties of the CompositeProperty.  More... | |
| ~EdgeProperty () | |
| Default destructor.  More... | |
Protected Attributes | |
| std::string | m_cname | 
| The composite type name.  More... | |
| std::string | m_datasetName | 
| The property's dataset name.  More... | |
| unsigned int | m_id | 
| An identification number that can be used internally.  More... | |
| std::string | m_name | 
| The property name.  More... | |
| Property * | m_parent | 
| The parent property type: it must be a CompositeProperty.  More... | |
| std::vector< Property * > | m_properties | 
| The list of property types that make the CompositeProperty.  More... | |
| int | m_type | 
| The property data type.  More... | |
This class is used to define a set of properties of a Edge.
Definition at line 51 of file EdgeProperty.h.
| te::graph::EdgeProperty::EdgeProperty | ( | ) | 
Default constructor.
| te::graph::EdgeProperty::~EdgeProperty | ( | ) | 
Default destructor.
      
  | 
  inherited | 
It adds a new property to the CompositeProperty.
| p | The property to be inserted. | 
      
  | 
  inherited | 
It adds a list of property types to the CompositeProperty.
| ps | The list of properties to be added. | 
      
  | 
  inherited | 
      
  | 
  virtualinherited | 
It clears the CompositeProperty definition.
Reimplemented in te::da::DataSetType.
      
  | 
  virtualinherited | 
It returns a clone of the object.
The new property will NOT have associations to other elements.
Implements te::dt::Property.
Reimplemented in te::da::DataSetType.
      
  | 
  inherited | 
It copies the properties from the vector.
| ps | The list of properties to be copied. | 
      
  | 
  inlineinherited | 
returns the first property of the given data type. Caller doesn't take ownership of the returned pointer.
Definition at line 278 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It returns the name of the composite type.
Definition at line 96 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It returns the name of the propery's dataset.
Definition at line 144 of file Property.h.
      
  | 
  inlineinherited | 
It returns the property identifier.
Definition at line 109 of file Property.h.
      
  | 
  inlineinherited | 
It returns the property name.
Definition at line 127 of file Property.h.
      
  | 
  inlineinherited | 
It returns the parent of this property, or NULL, if it doesn't have one.
Definition at line 168 of file Property.h.
      
  | 
  inlineinherited | 
It returns the list of properties describing the CompositeProperty.
Definition at line 153 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It returns the list of properties describing the CompositeProperty.
Definition at line 160 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It returns the i-th property.
| i | The property position in the property array. | 
Definition at line 171 of file CompositeProperty.h.
      
  | 
  inherited | 
It returns the property with the given name or NULL if none is found.
| name | The name of the property we are looking for. | 
      
  | 
  inherited | 
It searches for a property with the given ID.
| id | The property ID. | 
      
  | 
  inherited | 
It returns the property position based on its name.
| name | The property name. | 
      
  | 
  inherited | 
It returns the property position .
| p | The property. | 
      
  | 
  inlineinherited | 
It returns the property data type.
Definition at line 161 of file Property.h.
      
  | 
  virtualinherited | 
It checks if the Property "p" is associated to this property or any other parent.
| p | The Property we are checking. | 
Implements te::dt::Property.
      
  | 
  inlineinherited | 
Tells if there is a property of the given data type.
Definition at line 273 of file CompositeProperty.h.
      
  | 
  virtualinherited | 
It removes the property from the composite.
| p | The property to be removed from the composite. | 
      
  | 
  inlineinherited | 
It sets the composite type name.
| name | The composite type name. | 
Definition at line 103 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It sets the property name.
| name | The new property name. | 
Definition at line 154 of file Property.h.
      
  | 
  inlineinherited | 
It sets the property identifier.
| id | A number used to identify the property. | 
Definition at line 118 of file Property.h.
      
  | 
  inlineinherited | 
It sets the property name.
| name | The new property name. | 
Definition at line 137 of file Property.h.
      
  | 
  inlineinherited | 
It associate this property to the informed parent.
| p | Teh parent property. | 
Definition at line 177 of file Property.h.
      
  | 
  inlineinherited | 
It returns the number of properties of the CompositeProperty.
Definition at line 146 of file CompositeProperty.h.
      
  | 
  protectedinherited | 
The composite type name.
Definition at line 269 of file CompositeProperty.h.
      
  | 
  protectedinherited | 
The property's dataset name.
Definition at line 208 of file Property.h.
      
  | 
  protectedinherited | 
An identification number that can be used internally.
Definition at line 205 of file Property.h.
      
  | 
  protectedinherited | 
The property name.
Definition at line 207 of file Property.h.
      
  | 
  protectedinherited | 
The parent property type: it must be a CompositeProperty.
Definition at line 204 of file Property.h.
      
  | 
  protectedinherited | 
The list of property types that make the CompositeProperty.
Definition at line 270 of file CompositeProperty.h.
      
  | 
  protectedinherited | 
The property data type.
Definition at line 206 of file Property.h.