Sha256: 7b140f951bad8e7e1f0c3de98c512e5763e1f487eca81dace6d850e5ae695e12

Contents?: true

Size: 506 Bytes

Versions: 10

Compression:

Stored size: 506 Bytes

Contents

//-*-c++-*-
// Template of a generic C function call

VALUE set!parent_varname!!attribute_bindname!(VALUE self, VALUE val) {
  !c_class_name!* tmp = ruby2!class_varcname!Ptr(self);
  if ( ! tmp ) return Qnil;
  
  tmp->!attribute_name! = ruby2!attribute_type!(val);
  return Qnil;
}

VALUE get!parent_varname!!attribute_bindname!(VALUE self) {
  !c_class_name!* tmp = ruby2!class_varcname!Ptr(self);
  if ( ! tmp ) return Qnil;
  
  return cxx2ruby(static_cast<!attribute_type!>(tmp->!attribute_name!));
}

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
gecoder-with-gecode-0.7.1-mswin32 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-0.4.0 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-0.3.0 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-0.2.0 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-0.5.0 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-0.7.1 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-0.6.0 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-0.6.1 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-0.7.0 vendor/rust/rust/templates/AttributeDefinition.rusttpl
gecoder-with-gecode-0.7.1 vendor/rust/rust/templates/AttributeDefinition.rusttpl