ae.utils.autodata

Automatic struct/class comparison/hashing/serialization

Public Imports

std.conv
public import std.conv;

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>