OpenClonk
StdMeshInstance::SerializableValueProvider Class Referenceabstract

#include <StdMesh.h>

Inheritance diagram for StdMeshInstance::SerializableValueProvider:
[legend]
Collaboration diagram for StdMeshInstance::SerializableValueProvider:
[legend]

Classes

struct  ID
 
struct  IDBase
 

Public Member Functions

virtual void CompileFunc (StdCompiler *pComp)
 
virtual void DenumeratePointers ()
 
virtual void ClearPointers (class C4Object *pObj)
 
virtual bool Execute ()=0
 

Static Public Member Functions

static const IDBaseLookup (const char *name)
 
static const IDBaseLookup (const std::type_info &type)
 

Public Attributes

C4Real Value
 

Detailed Description

Definition at line 415 of file StdMesh.h.

Member Function Documentation

◆ ClearPointers()

virtual void StdMeshInstance::SerializableValueProvider::ClearPointers ( class C4Object pObj)
inlinevirtual

Reimplemented in C4ValueProviderAction, C4ValueProviderSinV, C4ValueProviderCosV, C4ValueProviderSinR, C4ValueProviderCosR, C4ValueProviderAbsRDir, C4ValueProviderRDir, C4ValueProviderYDir, C4ValueProviderXDir, C4ValueProviderDist, C4ValueProviderAbsY, C4ValueProviderAbsX, C4ValueProviderR, C4ValueProviderY, and C4ValueProviderX.

Definition at line 480 of file StdMesh.h.

480 {}

Referenced by StdMeshInstanceAnimationNode::ClearPointers().

Here is the caller graph for this function:

◆ CompileFunc()

void StdMeshInstance::SerializableValueProvider::CompileFunc ( StdCompiler pComp)
virtual

Reimplemented in C4ValueProviderAction, C4ValueProviderSinV, C4ValueProviderCosV, C4ValueProviderSinR, C4ValueProviderCosR, C4ValueProviderAbsRDir, C4ValueProviderRDir, C4ValueProviderYDir, C4ValueProviderXDir, C4ValueProviderDist, C4ValueProviderAbsY, C4ValueProviderAbsX, C4ValueProviderR, C4ValueProviderY, C4ValueProviderX, and C4ValueProviderLinear.

Definition at line 782 of file StdMesh.cpp.

783 {
784  pComp->Value(Value);
785 }
void Value(const T &rStruct)
Definition: StdCompiler.h:161

References StdCompiler::Value(), and StdMeshInstanceValueProvider::Value.

Here is the call graph for this function:

◆ DenumeratePointers()

virtual void StdMeshInstance::SerializableValueProvider::DenumeratePointers ( )
inlinevirtual

Reimplemented in C4ValueProviderAction, C4ValueProviderSinV, C4ValueProviderCosV, C4ValueProviderSinR, C4ValueProviderCosR, C4ValueProviderAbsRDir, C4ValueProviderRDir, C4ValueProviderYDir, C4ValueProviderXDir, C4ValueProviderDist, C4ValueProviderAbsY, C4ValueProviderAbsX, C4ValueProviderR, C4ValueProviderY, and C4ValueProviderX.

Definition at line 479 of file StdMesh.h.

479 {}

Referenced by StdMeshInstanceAnimationNode::DenumeratePointers().

Here is the caller graph for this function:

◆ Execute()

virtual bool StdMeshInstanceValueProvider::Execute ( )
pure virtualinherited

◆ Lookup() [1/2]

static const IDBase* StdMeshInstance::SerializableValueProvider::Lookup ( const char *  name)
inlinestatic

Definition at line 460 of file StdMesh.h.

461  {
462  if(!IDs) return nullptr;
463  for(auto & ID : *IDs)
464  if(strcmp(ID->name, name) == 0)
465  return ID;
466  return nullptr;
467  }

References StdMeshInstance::SerializableValueProvider::IDBase::name.

◆ Lookup() [2/2]

static const IDBase* StdMeshInstance::SerializableValueProvider::Lookup ( const std::type_info &  type)
inlinestatic

Definition at line 469 of file StdMesh.h.

470  {
471  if(!IDs) return nullptr;
472  for(auto & ID : *IDs)
473  if(ID->type == type)
474  return ID;
475  return nullptr;
476  }

References StdMeshInstance::SerializableValueProvider::IDBase::type.

Member Data Documentation

◆ Value


The documentation for this class was generated from the following files: