boilerplate v1.9.1 (2023-03-14T14:32:34Z)
Dub
Repo
hasOwnFunction
boilerplate
autostring
Undocumented in source.
template
hasOwnFunction
(Aggregate, Super, string name, Ret)
template
hasOwnFunction
(Aggregate, Super, string name, Ret)
template
hasOwnFunction (
Aggregate
Super
string
name
Ret
)
if
(
__traits(
hasMember
,
Aggregate
,
name
)
) {
import
std
.
meta
:
AliasSeq
,
Filter
;
;
import
std
.
meta
:
AliasSeq
,
Filter
;
;
import
std
.
traits
:
ReturnType
,
Unqual
;
;
import
std
.
traits
:
ReturnType
,
Unqual
;
;
eponymoustemplate
FunctionMatchesType
(alias Fun)
;
alias
MyFunctions
=
AliasSeq
!(
__traits
(
getOverloads
,
Aggregate
,
name
))
;
alias
MatchingFunctions
=
Filter
!(
FunctionMatchesType
,
MyFunctions
)
;
enum
hasFunction
;
alias
SuperFunctions
=
AliasSeq
!(
__traits
(
getOverloads
,
Super
,
name
))
;
alias
SuperFunctions
=
AliasSeq
!()
;
alias
SuperMatchingFunctions
=
Filter
!(
FunctionMatchesType
,
SuperFunctions
)
;
enum
superHasFunction
;
static if
(
hasFunction
)
static if
(
superHasFunction
)
enum
hasOwnFunction
;
static if
(
hasFunction
)
static if
(!(
superHasFunction
))
enum
hasOwnFunction
;
static if
(!(
hasFunction
))
enum
hasOwnFunction
;
}
Members
Aliases
MatchingFunctions
alias
MatchingFunctions
=
Filter
!(
FunctionMatchesType
,
MyFunctions
)
Undocumented in source.
MyFunctions
alias
MyFunctions
=
AliasSeq
!(
__traits
(
getOverloads
,
Aggregate
,
name
))
Undocumented in source.
SuperFunctions
alias
SuperFunctions
=
AliasSeq
!(
__traits
(
getOverloads
,
Super
,
name
))
Undocumented in source.
SuperFunctions
alias
SuperFunctions
=
AliasSeq
!()
Undocumented in source.
SuperMatchingFunctions
alias
SuperMatchingFunctions
=
Filter
!(
FunctionMatchesType
,
SuperFunctions
)
Undocumented in source.
Enums
FunctionMatchesType
eponymoustemplate
FunctionMatchesType
(alias Fun)
Undocumented in source.
Manifest constants
hasFunction
enum
hasFunction
;
Undocumented in source.
hasOwnFunction
enum
hasOwnFunction
;
Undocumented in source.
hasOwnFunction
enum
hasOwnFunction
;
Undocumented in source.
hasOwnFunction
enum
hasOwnFunction
;
Undocumented in source.
superHasFunction
enum
superHasFunction
;
Undocumented in source.
Meta
Source
See Implementation
boilerplate
autostring
aliases
hasOwnStringToString
hasOwnToJson
hasOwnVoidToString
enums
ToStringEnum
functions
isMemberUnlabeledByDefault
mixin templates
GenerateToStringTemplate
structs
ToString
ToStringHandler
templates
checkAttributeConsistency
hasOwnFunction
isFromAliasThis
typeName
variables
GenerateToString