Flip Reference

 

ObjectMold Class Reference

Namespace

ohm::flip

Declared in

ohm/flip/ObjectMold.h

See Also

ohm::flip::ObjectMoldData

Overview

The ObjectMold class implements a Flip object that is capable to extract all the informations from an object to make a mold. From this mold, an unlimited of copies of the original object can be made, to allow automatic or semi-automatic copy/paste feature.

Partial Class Diagram

Methods Overview

Constructor

Information

Methods

ObjectMold constructor

Constructs an object mold from a Flip Object .

               ObjectMold (Object & object);

The mold will store the object itself and all its member, containers element, and this recursively. It will also store the pre-destination of the object, which represents limited informations about the object ancestors, up recursively to the document root object.

For more informations about pre-destination and the mold concept, read the chapter.

is_of_type

Returns true is the type of the source object is Type , false otherwise.

template <class Type>
bool           is_of_type () const;

get

Returns a reference to the ObjectMoldData of the object itself or one object of its pre-destination, matching Type .

template <class Type>
ObjectMoldData &
               get () const;