4 #ifndef ASTATTRIBUTEMECHANISM_H
5 #define ASTATTRIBUTEMECHANISM_H
9 #include "AttributeMechanism.h"
35 : fromNode(fromNode), toNode(toNode), label(label), options(options)
51 : nodePtr(nodePtr), label(label), options(options)
68 std::string attribute_class_name();
71 virtual int packed_size();
72 virtual char* packed_data();
73 virtual void unpacked_data(
int size,
char* data );
76 virtual std::string additionalNodeOptions();
80 virtual std::vector<AttributeEdgeInfo> additionalEdgeInfo();
81 virtual std::vector<AttributeNodeInfo> additionalNodeInfo();
90 virtual bool commentOutNodeInGraph();
98 virtual std::string
toString() {
return ""; }
102 std::string attribute_class_name() {
return "AstAttribute"; }
105 virtual int packed_size() {
return 0; }
106 virtual char* packed_data() {
return NULL; }
107 virtual void unpacked_data(
int size,
char* data ) {}
110 virtual std::string additionalNodeOptions() {
return ""; }
114 virtual std::vector<AttributeEdgeInfo> additionalEdgeInfo() { std::vector<AttributeEdgeInfo> v;
return v; }
115 virtual std::vector<AttributeNodeInfo> additionalNodeInfo() { std::vector<AttributeNodeInfo> v;
return v; }
124 virtual bool commentOutNodeInGraph() {
return false; }
163 virtual void setValue(
double newVal);