CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace cache {
29 template<
typename TStorageTraits>
44 void next(uint64_t numRequestedEntries,
typename TStorageTraits::DestinationType& destination) {
47 while (numRequestedEntries--)
48 TStorageTraits::LoadInto(TStorageTraits::Load(
m_input), destination);
def isCppInclude(inc)
Definition: checkProjectStructure.py:96
def footer(self)
Definition: checkProjectStructure.py:437
Definition: checkProjectStructure.py:228
def __iter__(self)
Definition: checkProjectStructure.py:453
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto ¬ification, const auto &context) { cache::ImportanceView view(context.Cache.template sub< cache::AccountStateCache >());return view.canHarvest(notification.Signer, context.Height) ? ValidationResult::Success :Failure_Core_Block_Harvester_Ineligible;})
dependencyViolations
Definition: checkProjectStructure.py:464
def __eq__(self, other)
Definition: checkProjectStructure.py:193
def printTemplateErrors(self)
Definition: checkProjectStructure.py:710
def printFormattingOut(self, reporter)
Definition: checkProjectStructure.py:591
def getShortestNamespaceSet(cppHeader)
Definition: checkProjectStructure.py:472
presentExclusions
Definition: checkProjectStructure.py:467
def checkExternalInclude(incA, incB)
Definition: checkProjectStructure.py:83
xml
Definition: checkProjectStructure.py:371
def setTemplateErrors(self, templateErrors)
Definition: checkProjectStructure.py:252
includes
Definition: checkProjectStructure.py:225
filename
Definition: checkProjectStructure.py:231
def printSectionSeparator()
Definition: checkProjectStructure.py:840
io::InputStream & m_input
Definition: ChunkedDataLoader.h:52
def validateSetSearch(self, mapName, path)
Definition: checkProjectStructure.py:499
args
Definition: checkProjectStructure.py:721
Definition: checkProjectStructure.py:215
def __init__(self, path, includes)
Definition: checkProjectStructure.py:223
def findAccessibleSourceDirs()
Definition: checkProjectStructure.py:829
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
options
Definition: checkProjectStructure.py:468
def printDependenciesOut(self, reporter)
Definition: checkProjectStructure.py:632
def add(self, entry)
Definition: checkProjectStructure.py:520
sourceDirs
Definition: checkProjectStructure.py:469
def includeFilter(path)
Definition: checkProjectStructure.py:724
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto ¬ification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
textOutput
Definition: checkProjectStructure.py:47
includes
Definition: checkProjectStructure.py:462
def parseArgs()
Definition: checkProjectStructure.py:791
Definition: DepsChecker.py:15
def __init__(self, path, include, actual)
Definition: checkProjectStructure.py:216
def check(self, includes)
Definition: checkProjectStructure.py:737
ruleset
Definition: checkProjectStructure.py:155
def printTemplateErrorsOut(self, reporter)
Definition: checkProjectStructure.py:695
def checkCppInclude(incA, incB)
Definition: checkProjectStructure.py:101
def main()
Definition: checkProjectStructure.py:847
Definition: Parser.py:130
Definition: checkProjectStructure.py:460
def checkLocalInclude(pathA, pathB)
Definition: checkProjectStructure.py:117
def __init__(self)
Definition: checkProjectStructure.py:442
def __getitem__(self, key)
Definition: checkProjectStructure.py:445
ChunkedDataLoader(io::InputStream &input)
Creates a chunked loader around input.
Definition: ChunkedDataLoader.h:33
def __init__(self, description)
Definition: checkProjectStructure.py:362
def __len__(self)
Definition: checkProjectStructure.py:450
def __call__(self, groupName, err)
Definition: checkProjectStructure.py:373
includeFixOwnPath
Definition: checkProjectStructure.py:239
fixIndents
Definition: checkProjectStructure.py:48
def suite(self, suiteName, overallCount, errors)
Definition: checkProjectStructure.py:430
def depsPrint(self, deps)
Definition: checkProjectStructure.py:727
verbose
Definition: checkProjectStructure.py:50
def __init__(self, f)
Definition: checkProjectStructure.py:415
def setNamespaces(self, namespaces)
Definition: checkProjectStructure.py:249
def printNamespaceErrorsOut(self, reporter)
Definition: checkProjectStructure.py:656
Definition: checkProjectStructure.py:76
def setupOptions(analyzerOptions, args)
Definition: checkProjectStructure.py:812
Definition: checkProjectStructure.py:361
depsSrcOnly
Definition: checkProjectStructure.py:52
def check(self)
Definition: checkProjectStructure.py:255
def isSpecialInclude(includePath)
Definition: checkProjectStructure.py:69
void next(uint64_t numRequestedEntries, typename TStorageTraits::DestinationType &destination)
Loads the next data chunk of at most numRequestedEntries into destination.
Definition: ChunkedDataLoader.h:44
Definition: checkProjectStructure.py:222
Definition: checkProjectStructure.py:369
Definition: checkProjectStructure.py:414
path
Definition: checkProjectStructure.py:230
def checkCrossIncludes(self, errorReporter, sortedIncludes, pathElements)
Definition: checkProjectStructure.py:288
def printNamespaces(self)
Definition: checkProjectStructure.py:687
def __lt__(self, other)
Definition: checkProjectStructure.py:196
def validateSet(self, mapName, path)
Definition: checkProjectStructure.py:494
def checkIncludeDepth(pathA, pathB)
Definition: checkProjectStructure.py:134
actual
Definition: checkProjectStructure.py:219
depsFilter
Definition: checkProjectStructure.py:51
def header(self, testsCount, failuresCount)
Definition: checkProjectStructure.py:425
path
Definition: checkProjectStructure.py:217
def checkDependencies(includes, depsChecker, args)
Definition: checkProjectStructure.py:770
Loads data from an input stream in chunks.
Definition: ChunkedDataLoader.h:30
def printFormatting(self)
Definition: checkProjectStructure.py:553
Definition: checkProjectStructure.py:390
def formatFailure(buff, kind, name, msg)
Definition: checkProjectStructure.py:395
def __init__(self, options)
Definition: checkProjectStructure.py:461
bool hasNext() const
Returns true if there are more entries in the input.
Definition: ChunkedDataLoader.h:39
def footer(self)
Definition: checkProjectStructure.py:409
def filter(self, expectedResult)
Definition: checkProjectStructure.py:653
namespaces
Definition: checkProjectStructure.py:234
simpleValidators
Definition: checkProjectStructure.py:466
def __init__(self)
Definition: checkProjectStructure.py:391
def formatFailure(buff, kind, name, msg)
Definition: checkProjectStructure.py:419
conReporter
Definition: checkProjectStructure.py:465
templateErrors
Definition: checkProjectStructure.py:235
def items(self)
Definition: checkProjectStructure.py:456
Definition: AddressExtractionExtension.cpp:28
auto Read64(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:66
def __call__(self, groupName, value)
Definition: checkProjectStructure.py:365
totalFailures
Definition: checkProjectStructure.py:392
def fixRelative(self, elem)
Definition: checkProjectStructure.py:279
def __init__(self, inc, ruleset)
Definition: checkProjectStructure.py:153
def depsCheckDir(args, path)
Definition: checkProjectStructure.py:759
def isLibraryInclude(name)
Definition: checkProjectStructure.py:158
def filterNonProjectIncludes(includes)
Definition: checkProjectStructure.py:355
destDir
Definition: checkProjectStructure.py:49
context
Definition: checkProjectStructure.py:463
def setIncludes(self, includes)
Definition: checkProjectStructure.py:246
Definition: checkProjectStructure.py:719
def header(self, testsCount, failuresCount)
Definition: checkProjectStructure.py:399
def fullPath(self)
Definition: checkProjectStructure.py:243
def getExclusionErrors(self, reporter)
Definition: checkProjectStructure.py:571
def checkIncludes(self, errorReporter, preprocessor)
Definition: checkProjectStructure.py:294
def suite(self, suiteName, overallCount, errors)
Definition: checkProjectStructure.py:402
includes
Definition: checkProjectStructure.py:233
def createValidators(errorReporter)
Definition: validation.py:1223
def validateSetPathFix(self, mapName, path)
Definition: checkProjectStructure.py:504
Definition: checkProjectStructure.py:152
def __init__(self)
Definition: checkProjectStructure.py:46
def __init__(self, path, filename, ruleset)
Definition: checkProjectStructure.py:229
path
Definition: checkProjectStructure.py:224
def __init__(self, args)
Definition: checkProjectStructure.py:720
description
Definition: checkProjectStructure.py:363
ruleset
Definition: checkProjectStructure.py:232
expectedNamespace
Definition: checkProjectStructure.py:236
def validateMaps(self, path)
Definition: checkProjectStructure.py:510
data
Definition: checkProjectStructure.py:443
Definition: checkProjectStructure.py:441
fout
Definition: checkProjectStructure.py:416
uint64_t m_numRemainingEntries
Definition: ChunkedDataLoader.h:53
Definition: checkProjectStructure.py:45
def printDependencies(self)
Definition: checkProjectStructure.py:644
include
Definition: checkProjectStructure.py:194
def namespaceFilter(namespace)
Definition: checkProjectStructure.py:341
def __init__(self, description)
Definition: checkProjectStructure.py:370
include
Definition: checkProjectStructure.py:218
def shouldIgnoreMissingExclusion(self, missingExcl)
Definition: checkProjectStructure.py:562
def comparePaths(self, other)
Definition: checkProjectStructure.py:164