Gwyfile Library
Common enumerations
enum  GwyfileCopyMethod { GWYFILE_COPY_IF_OWNED = 0 , GWYFILE_COPY_DEFAULT = GWYFILE_COPY_IF_OWNED , GWYFILE_COPY_ALL = 1 , GWYFILE_COPY_NONE = 2 }
 

Detailed Description

Enumeration Type Documentation

◆ GwyfileCopyMethod

Enumerator
GWYFILE_COPY_IF_OWNED 

Owned data are copied so the copy also own its data; not owned data are not copied.

Note that objects are always copied to preserve the forest of trees invariant.

GWYFILE_COPY_DEFAULT 

The default behaviour, i.e. GWYFILE_COPY_IF_OWNED.

GWYFILE_COPY_ALL 

All data are copied. The copy will own all its data.

This can be expensive if huge data must be copied, but it is also least prone to errors.

GWYFILE_COPY_NONE 

No data are copied. The copy will not own any data.

This can be prone to errors. Note that objects are always copied to preserve the forest of trees invariant. Only the data inside them become shared.