WaSH Docs
Enumerations | Functions | Variables
ws2st::refactor::forces Namespace Reference

Enumerations

enum  PropertyList {
  PropertyList::Pos, PropertyList::Vel, PropertyList::Acc, PropertyList::Density,
  PropertyList::Mass, PropertyList::SmoothingLength, PropertyList::Id
}
 

Functions

void HandleInsertForcesDefinition (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
void HandleInsertForcesDefinitionWithCornerstone (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
std::string getForceDeclarationSource ()
 
std::string getForceInitialisationSource ()
 
std::string getForceDeclarationSourceWithCornerstone ()
 
std::string getForceInitialisationSourceWithCornerstone ()
 
const std::string propertyName (PropertyList property)
 
template<ForceType type>
void HandleRegisterForces (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
template<ForceType type>
void HandleGetForce (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
template<ForceType type>
void HandleSetForce (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
template<ForceType type, PropertyList property>
void HandleGetProperty (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
template<PropertyList property>
void HandleGetPropertyWithCornerstone (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
template<ForceType type, PropertyList property>
void HandleSetProperty (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
template<PropertyList property>
void HandleSetPropertyWithCornerstone (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
const StatementMatcher PropertyGetMatcher (const char *propertyName)
 
const StatementMatcher PropertySetMatcher (const char *propertyName)
 

Variables

DeclarationMatcher InsertForcesDefinitionMatcher
 
StatementMatcher AddForceVectorMatcher
 
StatementMatcher AddForceScalarMatcher
 
WashCallbackFn HandleRegisterForcesScalar = &HandleRegisterForces<ForceType::SCALAR>
 
WashCallbackFn HandleRegisterForcesVector = &HandleRegisterForces<ForceType::VECTOR>
 
StatementMatcher GetForceScalarMatcher
 
StatementMatcher GetForceVectorMatcher
 
WashCallbackFn HandleGetForceScalar
 
WashCallbackFn HandleGetForceVector
 
WashCallbackFn HandleGetForceVectorWithCornerstone
 
StatementMatcher SetForceScalarMatcher
 
StatementMatcher SetForceVectorMatcher
 
WashCallbackFn HandleSetForceScalar
 
WashCallbackFn HandleSetForceVector
 
WashCallbackFn HandleSetForceVectorWithCornerstone
 
StatementMatcher GetPosMatcher
 
StatementMatcher GetVelMatcher
 
StatementMatcher GetAccMatcher
 
StatementMatcher GetDensityMatcher
 
StatementMatcher GetMassMatcher
 
StatementMatcher GetSmoothingLengthMatcher
 
StatementMatcher GetIdMatcher
 
WashCallbackFn HandleGetPos
 
WashCallbackFn HandleGetVel
 
WashCallbackFn HandleGetAcc
 
WashCallbackFn HandleGetPosWithCornerstone
 
WashCallbackFn HandleGetVelWithCornerstone
 
WashCallbackFn HandleGetAccWithCornerstone
 
WashCallbackFn HandleGetDensity
 
WashCallbackFn HandleGetMass
 
WashCallbackFn HandleGetSmoothingLength
 
WashCallbackFn HandleGetId
 
StatementMatcher SetPosMatcher
 
StatementMatcher SetVelMatcher
 
StatementMatcher SetAccMatcher
 
StatementMatcher SetDensityMatcher
 
StatementMatcher SetMassMatcher
 
StatementMatcher SetSmoothingLengthMatcher
 
WashCallbackFn HandleSetPos
 
WashCallbackFn HandleSetVel
 
WashCallbackFn HandleSetAcc
 
WashCallbackFn HandleSetPosWithCornerstone
 
WashCallbackFn HandleSetVelWithCornerstone
 
WashCallbackFn HandleSetAccWithCornerstone
 
WashCallbackFn HandleSetDensity
 
WashCallbackFn HandleSetMass
 
WashCallbackFn HandleSetSmoothingLength
 
std::vector< std::string > scalar_force_list = {}
 
std::vector< std::string > vector_force_list = {}
 
std::unordered_map< std::string, FullSourceLoc > force_meta = {}
 

Enumeration Type Documentation

◆ PropertyList

Enumerator
Pos 
Vel 
Acc 
Density 
Mass 
SmoothingLength 
Id 

Function Documentation

◆ getForceDeclarationSource()

std::string ws2st::refactor::forces::getForceDeclarationSource ( )

◆ getForceDeclarationSourceWithCornerstone()

std::string ws2st::refactor::forces::getForceDeclarationSourceWithCornerstone ( )

◆ getForceInitialisationSource()

std::string ws2st::refactor::forces::getForceInitialisationSource ( )

◆ getForceInitialisationSourceWithCornerstone()

std::string ws2st::refactor::forces::getForceInitialisationSourceWithCornerstone ( )

◆ HandleGetForce()

template<ForceType type>
void ws2st::refactor::forces::HandleGetForce ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleGetProperty()

template<ForceType type, PropertyList property>
void ws2st::refactor::forces::HandleGetProperty ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleGetPropertyWithCornerstone()

template<PropertyList property>
void ws2st::refactor::forces::HandleGetPropertyWithCornerstone ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleInsertForcesDefinition()

void ws2st::refactor::forces::HandleInsertForcesDefinition ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleInsertForcesDefinitionWithCornerstone()

void ws2st::refactor::forces::HandleInsertForcesDefinitionWithCornerstone ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleRegisterForces()

template<ForceType type>
void ws2st::refactor::forces::HandleRegisterForces ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleSetForce()

template<ForceType type>
void ws2st::refactor::forces::HandleSetForce ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleSetProperty()

template<ForceType type, PropertyList property>
void ws2st::refactor::forces::HandleSetProperty ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleSetPropertyWithCornerstone()

template<PropertyList property>
void ws2st::refactor::forces::HandleSetPropertyWithCornerstone ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ PropertyGetMatcher()

const StatementMatcher ws2st::refactor::forces::PropertyGetMatcher ( const char *  propertyName)

◆ propertyName()

const std::string ws2st::refactor::forces::propertyName ( PropertyList  property)

◆ PropertySetMatcher()

const StatementMatcher ws2st::refactor::forces::PropertySetMatcher ( const char *  propertyName)

Variable Documentation

◆ AddForceScalarMatcher

StatementMatcher ws2st::refactor::forces::AddForceScalarMatcher
Initial value:
= traverse(TK_IgnoreUnlessSpelledInSource, callExpr(
hasAncestor(functionDecl(hasName("main"))),
hasDescendant(
declRefExpr(
to(functionDecl(
hasName("wash::add_force_scalar")
))
)
),
hasArgument(0, ignoringImplicit( stringLiteral().bind("forceName") ))
).bind("callExpr"))

◆ AddForceVectorMatcher

StatementMatcher ws2st::refactor::forces::AddForceVectorMatcher
Initial value:
= traverse(TK_IgnoreUnlessSpelledInSource, callExpr(
hasAncestor(functionDecl(hasName("main"))),
hasDescendant(
declRefExpr(
to(functionDecl(
hasName("wash::add_force_vector")
))
)
),
hasArgument(0, ignoringImplicit( stringLiteral().bind("forceName") ))
).bind("callExpr"))

◆ force_meta

std::unordered_map<std::string, FullSourceLoc> ws2st::refactor::forces::force_meta = {}

◆ GetAccMatcher

StatementMatcher ws2st::refactor::forces::GetAccMatcher

◆ GetDensityMatcher

StatementMatcher ws2st::refactor::forces::GetDensityMatcher

◆ GetForceScalarMatcher

StatementMatcher ws2st::refactor::forces::GetForceScalarMatcher

◆ GetForceVectorMatcher

StatementMatcher ws2st::refactor::forces::GetForceVectorMatcher

◆ GetIdMatcher

StatementMatcher ws2st::refactor::forces::GetIdMatcher

◆ GetMassMatcher

StatementMatcher ws2st::refactor::forces::GetMassMatcher

◆ GetPosMatcher

StatementMatcher ws2st::refactor::forces::GetPosMatcher

◆ GetSmoothingLengthMatcher

StatementMatcher ws2st::refactor::forces::GetSmoothingLengthMatcher

◆ GetVelMatcher

StatementMatcher ws2st::refactor::forces::GetVelMatcher

◆ HandleGetAcc

WashCallbackFn ws2st::refactor::forces::HandleGetAcc

◆ HandleGetAccWithCornerstone

WashCallbackFn ws2st::refactor::forces::HandleGetAccWithCornerstone

◆ HandleGetDensity

WashCallbackFn ws2st::refactor::forces::HandleGetDensity

◆ HandleGetForceScalar

WashCallbackFn ws2st::refactor::forces::HandleGetForceScalar

◆ HandleGetForceVector

WashCallbackFn ws2st::refactor::forces::HandleGetForceVector

◆ HandleGetForceVectorWithCornerstone

WashCallbackFn ws2st::refactor::forces::HandleGetForceVectorWithCornerstone

◆ HandleGetId

WashCallbackFn ws2st::refactor::forces::HandleGetId

◆ HandleGetMass

WashCallbackFn ws2st::refactor::forces::HandleGetMass

◆ HandleGetPos

WashCallbackFn ws2st::refactor::forces::HandleGetPos

◆ HandleGetPosWithCornerstone

WashCallbackFn ws2st::refactor::forces::HandleGetPosWithCornerstone

◆ HandleGetSmoothingLength

WashCallbackFn ws2st::refactor::forces::HandleGetSmoothingLength

◆ HandleGetVel

WashCallbackFn ws2st::refactor::forces::HandleGetVel

◆ HandleGetVelWithCornerstone

WashCallbackFn ws2st::refactor::forces::HandleGetVelWithCornerstone

◆ HandleRegisterForcesScalar

WashCallbackFn ws2st::refactor::forces::HandleRegisterForcesScalar = &HandleRegisterForces<ForceType::SCALAR>

◆ HandleRegisterForcesVector

WashCallbackFn ws2st::refactor::forces::HandleRegisterForcesVector = &HandleRegisterForces<ForceType::VECTOR>

◆ HandleSetAcc

WashCallbackFn ws2st::refactor::forces::HandleSetAcc

◆ HandleSetAccWithCornerstone

WashCallbackFn ws2st::refactor::forces::HandleSetAccWithCornerstone

◆ HandleSetDensity

WashCallbackFn ws2st::refactor::forces::HandleSetDensity

◆ HandleSetForceScalar

WashCallbackFn ws2st::refactor::forces::HandleSetForceScalar

◆ HandleSetForceVector

WashCallbackFn ws2st::refactor::forces::HandleSetForceVector

◆ HandleSetForceVectorWithCornerstone

WashCallbackFn ws2st::refactor::forces::HandleSetForceVectorWithCornerstone

◆ HandleSetMass

WashCallbackFn ws2st::refactor::forces::HandleSetMass

◆ HandleSetPos

WashCallbackFn ws2st::refactor::forces::HandleSetPos

◆ HandleSetPosWithCornerstone

WashCallbackFn ws2st::refactor::forces::HandleSetPosWithCornerstone

◆ HandleSetSmoothingLength

WashCallbackFn ws2st::refactor::forces::HandleSetSmoothingLength

◆ HandleSetVel

WashCallbackFn ws2st::refactor::forces::HandleSetVel

◆ HandleSetVelWithCornerstone

WashCallbackFn ws2st::refactor::forces::HandleSetVelWithCornerstone

◆ InsertForcesDefinitionMatcher

DeclarationMatcher ws2st::refactor::forces::InsertForcesDefinitionMatcher
Initial value:
= traverse(TK_IgnoreUnlessSpelledInSource,
cxxRecordDecl(hasName("_force_vectors")).bind("decl")
)

◆ scalar_force_list

std::vector<std::string> ws2st::refactor::forces::scalar_force_list = {}

◆ SetAccMatcher

StatementMatcher ws2st::refactor::forces::SetAccMatcher

◆ SetDensityMatcher

StatementMatcher ws2st::refactor::forces::SetDensityMatcher

◆ SetForceScalarMatcher

StatementMatcher ws2st::refactor::forces::SetForceScalarMatcher

◆ SetForceVectorMatcher

StatementMatcher ws2st::refactor::forces::SetForceVectorMatcher

◆ SetMassMatcher

StatementMatcher ws2st::refactor::forces::SetMassMatcher

◆ SetPosMatcher

StatementMatcher ws2st::refactor::forces::SetPosMatcher

◆ SetSmoothingLengthMatcher

StatementMatcher ws2st::refactor::forces::SetSmoothingLengthMatcher

◆ SetVelMatcher

StatementMatcher ws2st::refactor::forces::SetVelMatcher

◆ vector_force_list

std::vector<std::string> ws2st::refactor::forces::vector_force_list = {}