ae.utils.autodata

Automatic struct/class comparison/hashing/serialization

Public Imports

std.conv
public import std.conv;
Undocumented in source.

Members

Functions

addAutoField
string addAutoField(string name, bool reverseSort)

Returns a string mixin for processing the field with the name name.

Structs

_CmpDataHandler
struct _CmpDataHandler(O)
Undocumented in source.
_EqualsDataHandler
struct _EqualsDataHandler(O)
Undocumented in source.
_HashDataHandler
struct _HashDataHandler
Undocumented in source.
_ToStringDataHandler
struct _ToStringDataHandler
Undocumented in source.

Templates

AutoCompare
template AutoCompare()

Automatically implements opCmp, opEquals, and toHash using processData

AutoToString
template AutoToString()

Automatically implements toString using processData

ProcessAllData
template ProcessAllData()

Automatically implements processData which processes all fields.

_RawDataHandlerWrapper
template _RawDataHandlerWrapper()

For data handlers that only need to look at the raw data (currently only _HashDataHandler)

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>