CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 #include <boost/optional.hpp>
28 namespace catapult {
namespace state {
84 std::list<RootNamespace>::const_iterator
begin()
const;
87 std::list<RootNamespace>::const_iterator
end()
const;
bool isActive(Height height) const
Definition: RootNamespaceHistory.cpp:146
size_t m_id
Definition: AuditConsumer.cpp:65
std::list< RootNamespace > m_rootHistory
Definition: RootNamespaceHistory.h:99
size_t size() const
Gets the number of child namespaces.
Definition: RootNamespace.cpp:61
size_t numAllHistoricalChildren() const
Definition: RootNamespaceHistory.cpp:87
bool isActiveAndUnlocked(Height height) const
Returns true if history is active at height (excluding grace period).
Definition: NamespaceLifetime.cpp:53
RootNamespace & operator=(const RootNamespace &rhs)=delete
void pop_back()
Removes the last entry in the history.
Definition: RootNamespaceHistory.cpp:104
A root namespace history.
Definition: RootNamespaceHistory.h:31
NamespaceId m_id
Definition: RootNamespaceHistory.h:98
std::unordered_map< NamespaceId, ChildNamespaceData, utils::BaseValueHasher< NamespaceId > > Children
Definition: RootNamespace.h:56
auto Sum(const TContainer &container, TFunction accessor)
Definition: Functional.h:39
bool empty() const
Gets a value indicating whether or not the history is empty.
Definition: RootNamespaceHistory.cpp:55
size_t activeOwnerHistoryDepth() const
Gets the number of root namespaces with the same owner starting at the active history.
Definition: RootNamespaceHistory.cpp:67
std::list< RootNamespace >::const_iterator begin() const
Returns a const iterator to the first root namespace.
Definition: RootNamespaceHistory.cpp:134
const RootNamespace & back() const
Gets a const reference to the most recent root namespace.
Definition: RootNamespaceHistory.cpp:108
Lifetime of a namespace.
Definition: NamespaceLifetime.h:27
bool isActiveOrGracePeriod(Height height) const
Returns true if history is active at height (including grace period).
Definition: NamespaceLifetime.cpp:57
Definition: AddressExtractionExtension.cpp:28
std::list< RootNamespace >::const_iterator end() const
Returns a const iterator to the element following the last root namespace.
Definition: RootNamespaceHistory.cpp:138
const NamespaceLifetime & lifetime() const
Gets a const reference to the lifetime of this namespace.
Definition: RootNamespace.cpp:53
size_t historyDepth() const
Gets the root namespace history size.
Definition: RootNamespaceHistory.cpp:63
bool isActiveAndUnlocked(Height height) const
Returns true if history is active at height (excluding grace period).
Definition: RootNamespaceHistory.cpp:142
RootNamespaceHistory(NamespaceId id)
Creates a root namespace history around id.
Definition: RootNamespaceHistory.cpp:38
std::set< NamespaceId > prune(Height height)
Prunes all root namespaces that are not active at height.
Definition: RootNamespaceHistory.cpp:116
void push_back(const Key &owner, const NamespaceLifetime &lifetime)
Adds a new root namespace around owner and lifetime at the end of the history.
Definition: RootNamespaceHistory.cpp:91
NamespaceId id() const
Gets the id of the root namespace history.
Definition: RootNamespaceHistory.cpp:59
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
A root namespace.
Definition: RootNamespace.h:31
size_t numActiveRootChildren() const
Gets the number of children of the most recent root namespace.
Definition: RootNamespaceHistory.cpp:83