# AttrRevision

## Content

# Class: AttrRevision

Represents a structure attribute (an [Attr](Attr) object) and its revision.

## Extends

- [`ObjectBase`](ObjectBase)

## Accessors

### attr

#### Get Signature

```ts
get attr(): Attr;
```

Gets the underlying [Attr](Attr) object.

##### Returns

[`Attr`](Attr)

#### Set Signature

```ts
set attr(value): void;
```

Sets the underlying [Attr](Attr) object.

##### Parameters

###### value

[`Attr`](Attr)

##### Returns

`void`

***

### id

#### Get Signature

```ts
get id(): number;
```

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`ObjectBase`](ObjectBase).[`id`](ObjectBase#id)

***

### om

#### Get Signature

```ts
get om(): ObjectManager;
```

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`ObjectBase`](ObjectBase).[`om`](ObjectBase#om)

***

### revision

#### Get Signature

```ts
get revision(): number;
```

Gets the attribute's revision number.

##### Returns

`number`

#### Set Signature

```ts
set revision(value): void;
```

Sets the attribute's revision number.

##### Parameters

###### value

`number`

##### Returns

`void`

## Methods

### free()

```ts
free(): void;
```

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`ObjectBase`](ObjectBase).[`free`](ObjectBase#free)

***

### rebind()

```ts
rebind(omTo): void;
```

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`ObjectBase`](ObjectBase).[`rebind`](ObjectBase#rebind)
