MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / addVectorAnnotation

Function addVectorAnnotation

include/daScript/ast/ast_handle.h:775–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773
774 template <typename TT>
775 __forceinline void addVectorAnnotation(Module * mod, ModuleLibrary & lib, const AnnotationPtr & ptr ) {
776 DAS_VERIFYF(ptr,"annotation is null");
777 DAS_VERIFYF(ptr->rtti_isHandledTypeAnnotation(),"annotation %s not a handled type annotation", ptr->name.c_str());
778 mod->addAnnotation(ptr);
779 using VT = typename TT::value_type;
780 auto vta = typeFactory<VT>::make(lib);
781 registerVectorFunctions<TT>::init(mod,lib,vta->canCopy(),vta->canMove());
782 }
783
784 template <typename TT>
785 __forceinline void addVectorAnnotation(Module * mod, ModuleLibrary & lib, const string & name ) {

Callers

nothing calls this directly

Calls 6

addAnnotationMethod · 0.80
initFunction · 0.50
c_strMethod · 0.45
canCopyMethod · 0.45
canMoveMethod · 0.45

Tested by

no test coverage detected