Raven Core
3.0.0
P2P Digital Currency
src
assets
assettypes.cpp
Go to the documentation of this file.
1
// Copyright (c) 2017-2019 The Raven Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include "
assettypes.h
"
6
#include "hash.h"
7
8
int
IntFromAssetType
(
AssetType
type) {
9
return
(
int
)type;
10
}
11
12
AssetType
AssetTypeFromInt
(
int
nType) {
13
return
(
AssetType
)nType;
14
}
15
16
uint256
CAssetCacheQualifierAddress::GetHash
() {
17
return
Hash
(
assetName
.begin(),
assetName
.end(),
address
.begin(),
address
.end());
18
}
19
20
uint256
CAssetCacheRestrictedAddress::GetHash
() {
21
return
Hash
(
assetName
.begin(),
assetName
.end(),
address
.begin(),
address
.end());
22
}
23
24
uint256
CAssetCacheRootQualifierChecker::GetHash
() {
25
return
Hash
(rootAssetName.begin(), rootAssetName.end(),
address
.begin(),
address
.end());
26
}
IntFromAssetType
int IntFromAssetType(AssetType type)
Definition:
assettypes.cpp:8
assettypes.h
AssetTypeFromInt
AssetType AssetTypeFromInt(int nType)
Definition:
assettypes.cpp:12
CAssetCacheQualifierAddress::assetName
std::string assetName
Definition:
assettypes.h:447
CAssetCacheQualifierAddress::address
std::string address
Definition:
assettypes.h:448
Hash
uint256 Hash(const T1 pbegin, const T1 pend)
Compute the 256-bit hash of an object.
Definition:
hash.h:125
AssetType
AssetType
Definition:
assettypes.h:21
uint256
256-bit opaque blob.
Definition:
uint256.h:123
CAssetCacheRootQualifierChecker::GetHash
uint256 GetHash()
Definition:
assettypes.cpp:24
CAssetCacheQualifierAddress::GetHash
uint256 GetHash()
Definition:
assettypes.cpp:16
CAssetCacheRestrictedAddress::GetHash
uint256 GetHash()
Definition:
assettypes.cpp:20
Generated on Mon Jul 29 2019 02:32:17 for Raven Core by
1.8.13