|
CatapultServer
v0.5.0.1 (Elephant)
|
A root namespace. More...

Classes | |
| struct | ChildNamespaceData |
| Child namespace information. More... | |
| struct | PathsComparator |
Public Types | |
| using | Children = std::unordered_map< NamespaceId, ChildNamespaceData, utils::BaseValueHasher< NamespaceId > > |
| using | OrderedChildPaths = std::set< Namespace::Path, PathsComparator > |
Public Member Functions | |
| RootNamespace (NamespaceId id, const Key &owner, const NamespaceLifetime &lifetime) | |
| Creates a root namespace around id, owner and liftime. More... | |
| RootNamespace (NamespaceId id, const Key &owner, const NamespaceLifetime &lifetime, const std::shared_ptr< Children > &pChildren) | |
| Creates a root namespace around id, owner, liftime and pChildren. More... | |
| NamespaceId | id () const |
| Gets the namespace id. More... | |
| const Children & | children () const |
| Gets a const reference to the children. More... | |
| const Key & | owner () const |
| Gets a const reference to the owner of this namespace. More... | |
| const NamespaceLifetime & | lifetime () const |
| Gets a const reference to the lifetime of this namespace. More... | |
| bool | empty () const |
Returns true if this root namespace has no children. More... | |
| size_t | size () const |
| Gets the number of child namespaces. More... | |
| Namespace | child (NamespaceId id) const |
| const NamespaceAlias & | alias (NamespaceId id) const |
| Gets a namespace alias for root or child namespace id. More... | |
| void | add (const Namespace &ns) |
| Adds the child namespace ns. More... | |
| void | remove (NamespaceId id) |
| void | setAlias (NamespaceId id, const NamespaceAlias &alias) |
| Sets an alias for root or child namespace id. More... | |
| bool | operator== (const RootNamespace &rhs) const |
Returns true if this root namespace is equal to rhs. More... | |
| bool | operator!= (const RootNamespace &rhs) const |
Returns true if this root namespace is not equal to rhs. More... | |
| RootNamespace | renew (const NamespaceLifetime &newLifetime) const |
| OrderedChildPaths | sortedChildPaths () const |
Private Attributes | |
| NamespaceId | m_id |
| NamespaceAlias | m_alias |
| Key | m_owner |
| NamespaceLifetime | m_lifetime |
| std::shared_ptr< Children > | m_pChildren |
A root namespace.
| using catapult::state::RootNamespace::Children = std::unordered_map<NamespaceId, ChildNamespaceData, utils::BaseValueHasher<NamespaceId> > |
| using catapult::state::RootNamespace::OrderedChildPaths = std::set<Namespace::Path, PathsComparator> |
| catapult::state::RootNamespace::RootNamespace | ( | NamespaceId | id, |
| const Key & | owner, | ||
| const NamespaceLifetime & | lifetime | ||
| ) |
Creates a root namespace around id, owner and liftime.

| catapult::state::RootNamespace::RootNamespace | ( | NamespaceId | id, |
| const Key & | owner, | ||
| const NamespaceLifetime & | lifetime, | ||
| const std::shared_ptr< Children > & | pChildren | ||
| ) |
Creates a root namespace around id, owner, liftime and pChildren.
| void catapult::state::RootNamespace::add | ( | const Namespace & | ns | ) |
Adds the child namespace ns.

| const NamespaceAlias & catapult::state::RootNamespace::alias | ( | NamespaceId | id | ) | const |
Gets a namespace alias for root or child namespace id.

| Namespace catapult::state::RootNamespace::child | ( | NamespaceId | id | ) | const |
Gets a child namespace specified by its namespace id.

| const RootNamespace::Children & catapult::state::RootNamespace::children | ( | ) | const |
Gets a const reference to the children.
| bool catapult::state::RootNamespace::empty | ( | ) | const |
Returns true if this root namespace has no children.
| NamespaceId catapult::state::RootNamespace::id | ( | ) | const |
Gets the namespace id.

| const NamespaceLifetime & catapult::state::RootNamespace::lifetime | ( | ) | const |
Gets a const reference to the lifetime of this namespace.

| bool catapult::state::RootNamespace::operator!= | ( | const RootNamespace & | rhs | ) | const |
Returns true if this root namespace is not equal to rhs.
| bool catapult::state::RootNamespace::operator== | ( | const RootNamespace & | rhs | ) | const |
Returns true if this root namespace is equal to rhs.
| const Key & catapult::state::RootNamespace::owner | ( | ) | const |
Gets a const reference to the owner of this namespace.

| void catapult::state::RootNamespace::remove | ( | NamespaceId | id | ) |
Removes a child namespace specified by id.

| RootNamespace catapult::state::RootNamespace::renew | ( | const NamespaceLifetime & | newLifetime | ) | const |
Creates a new root namespace with lifetime.

| void catapult::state::RootNamespace::setAlias | ( | NamespaceId | id, |
| const NamespaceAlias & | alias | ||
| ) |
Sets an alias for root or child namespace id.

| size_t catapult::state::RootNamespace::size | ( | ) | const |
Gets the number of child namespaces.

| RootNamespace::OrderedChildPaths catapult::state::RootNamespace::sortedChildPaths | ( | ) | const |
Creates an ordered set of child namespace paths.

|
private |
|
private |
|
private |
|
private |
|
private |