malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Traits
Base
Trait.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2
// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4
//
5
// Created by Dave Smith on 3/11/26.
6
//
7
8
#ifndef MALENA_TRAIT_H
9
#define MALENA_TRAIT_H
10
11
#include <
Malena/Core/malena_export.h
>
12
#include <
Malena/Traits/Base/Customizable.h
>
13
14
namespace
ml
15
{
35
class
MALENA_API
Trait
{};
36
63
template
<
typename
Manifest>
64
class
TraitWith
:
public
Trait
,
65
public
ml::Customizable
<Manifest>
66
{};
67
68
}
// namespace ml
69
70
#endif
// MALENA_TRAIT_H
Customizable.h
ml::Customizable
Tags a class with a manifest type and wires in its State manager.
Definition
Customizable.h:61
ml::Trait
Empty marker base class for all Malena traits.
Definition
Trait.h:35
ml::TraitWith
Base for traits that declare a manifest.
Definition
Trait.h:66
malena_export.h
MALENA_API
#define MALENA_API
Definition
malena_export.h:18
ml
Definition
Component.h:22