|
| ResourceLinkBase (const ResourceLinkBase &)=default |
|
| ResourceLinkBase (ResourceLinkBase &&)=default |
|
| ResourceLinkBase (const std::size_t &index, const std::string &typeName, const smtk::common::UUID &id, const std::string &location) |
|
| ResourceLinkBase (const ResourcePtr &resource) |
|
| ResourceLinkBase (Surrogate &&surrogate) |
|
| Surrogate (const Index &, const std::string &, const smtk::common::UUID &, const std::string &) |
| Constructor for unresolved resource.
|
|
| Surrogate (const ResourcePtr &) |
| Constructor for resolved resource.
|
|
std::string | typeName () const |
|
Index | index () const |
|
const smtk::common::UUID & | id () const |
|
const std::string & | location () const |
|
ResourcePtr | resource () const |
| Return the resource for which the instance is a surrogate.
|
|
ComponentPtr | find (const smtk::common::UUID &) const |
| Given a resource component's UUID, return the resource component.
|
|
bool | fetch (const ManagerPtr &) const |
| Load the resource (set m_Resource) using the input resource manager. More...
|
|
bool | resolve (const ResourcePtr &) const |
| Set the resource (set m_Resource) using the input resource. More...
|
|
std::pair< iterator, bool > | insert (const base_type &, const id_type &, const left_type &, const right_type &, const role_type &role=undefinedRole) |
| Insertion into the container is performed by passing values for the base_type object, link id, left value, right value, and role.
|
|
std::pair< iterator, bool > | insert (base_type &&, const id_type &, const left_type &, const right_type &, const role_type &role=undefinedRole) |
| Since the base type may be large, this method facilitates its insertion using move semantics.
|
|
template<typename return_value = typename std::pair<iterator, bool>> |
std::enable_if< std::is_default_constructible< base_type >::value, return_value >::type | insert (const id_type &id, const left_type &left, const right_type &right, const role_type &role=undefinedRole) |
| If the base_type is default-constructible, this insertion method allows you to omit the base_type instance. More...
|
|
bool | contains (const id_type &key) const |
| Check if a link with the input id exists.
|
|
template<typename tag > |
bool | contains (const typename LinkTraits< tag >::type &value) const |
| Check if a link with the input value matching the tagged search criterion exists.
|
|
template<typename tag > |
std::size_t | size (const typename LinkTraits< tag >::type &value) const |
| Return the number of links with the input value matching the tagged search criterion.
|
|
template<typename tag > |
bool | erase_all (const typename LinkTraits< tag >::type &value) |
| Erase all links matching the input value for the tagged search criterion.
|
|
template<typename tag > |
bool | erase_all (const std::tuple< typename LinkTraits< tag >::type, role_type > &value) |
| Erase all links matching the input value and role for the tagged search criterion.
|
|
template<typename tag > |
bool | set (const id_type &id, const typename LinkTraits< tag >::type &value) |
| Access a link by its id and set its value associated with the tagged search criterion to a new value.
|
|
template<typename tag > |
const std::set< std::reference_wrapper< const id_type > > | ids (const typename LinkTraits< tag >::type &value) const |
| Return a set of ids corresponding to the input value for the tagged search criterion.
|
|
const Link & | at (const id_type &id) const |
| Access the link with the input id (must be const).
|
|
LinkBase & | value (const id_type &id) |
| Access a link as its base type (can be non-const).
|
|
const LinkBase & | value (const id_type &id) const |
|
template<typename tag > |
const LinkTraits< tag >::type & | at (const id_type &id) const |
| Access a tagged value associated with the input id (must be const; values can be modified using the "set" method).
|
|
template<typename tag > |
const std::set< std::reference_wrapper< const typename LinkTraits< tag >::other_type >, std::less< const typename LinkTraits< tag >::other_type > > | linked_to (const typename LinkTraits< tag >::type &value) const |
| Given a Left or Right tag and an associated value, return a set of the other type that links to the input value.
|
|
template<typename tag > |
const std::set< std::reference_wrapper< const typename LinkTraits< tag >::other_type >, std::less< const typename LinkTraits< tag >::other_type > > | linked_to (const typename LinkTraits< tag >::type &value, const role_type &role) const |
| Given a Left or Right tag, an associated value and a role, return a set of the other type that links to the input value and has the role value.
|
|