modelgbp Generated OpFlex Model  1.7.0
modelgbp::span::DstMember Class Reference
Inheritance diagram for modelgbp::span::DstMember:

Public Member Functions

bool isNameSet ()
 Check whether name has been set. More...
 
boost::optional< const std::string & > getName ()
 Get the value of name if it has been set. More...
 
const std::string & getName (const std::string &defaultValue)
 Get the value of name if set, otherwise the value of default passed in. More...
 
modelgbp::span::DstMembersetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator. More...
 
modelgbp::span::DstMemberunsetName ()
 Unset name in the currently-active mutator. More...
 
boost::optional< OF_SHARED_PTR< modelgbp::span::MemberToRefRSrc > > resolveSpanMemberToRefRSrc ()
 Retrieve the child object with the specified naming properties. More...
 
OF_SHARED_PTR< modelgbp::span::MemberToRefRSrcaddSpanMemberToRefRSrc ()
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator. More...
 
boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolveSpanDstSummary ()
 Retrieve the child object with the specified naming properties. More...
 
OF_SHARED_PTR< modelgbp::span::DstSummaryaddSpanDstSummary ()
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator. More...
 
void remove ()
 Remove this instance using the currently-active mutator. More...
 
 DstMember (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
 Construct an instance of DstMember. More...
 

Static Public Member Functions

static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Retrieve an instance of DstMember from the managed object store. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolve (const opflex::modb::URI &uri)
 Retrieve an instance of DstMember from the managed object store using the default framework instance. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrp (opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
 Retrieve an instance of DstMember from the managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrp (const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
 Retrieve an instance of DstMember from the default managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveUnderPolicyUniversePlatformConfigSpanDstGrp (opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
 Retrieve an instance of DstMember from the managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstMember > > resolveUnderPolicyUniversePlatformConfigSpanDstGrp (const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
 Retrieve an instance of DstMember from the default managed object store by constructing its URI from the path elements that lead to it. More...
 
static void remove (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Remove the DstMember object with the specified URI using the currently-active mutator. More...
 
static void remove (const opflex::modb::URI &uri)
 Remove the DstMember object with the specified URI using the currently-active mutator and the default framework instance. More...
 
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrp (opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
 Remove the DstMember object with the specified path elements from the managed object store. More...
 
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrp (const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
 Remove the DstMember object with the specified path elements from the managed object store using the default framework instance. More...
 
static void removeUnderPolicyUniversePlatformConfigSpanDstGrp (opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
 Remove the DstMember object with the specified path elements from the managed object store. More...
 
static void removeUnderPolicyUniversePlatformConfigSpanDstGrp (const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
 Remove the DstMember object with the specified path elements from the managed object store using the default framework instance. More...
 
static void registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class. More...
 
static void registerListener (opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class with the default framework instance. More...
 
static void unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class. More...
 
static void unregisterListener (opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class from the default framework instance. More...
 

Static Public Attributes

static const opflex::modb::class_id_t CLASS_ID = 78
 The unique class ID for DstMember.
 

Constructor & Destructor Documentation

◆ DstMember()

modelgbp::span::DstMember::DstMember ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri,
const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &  oi 
)
inline

Construct an instance of DstMember.

This should not typically be called from user code.

Member Function Documentation

◆ addSpanDstSummary()

OF_SHARED_PTR<modelgbp::span::DstSummary> modelgbp::span::DstMember::addSpanDstSummary ( )
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ addSpanMemberToRefRSrc()

OF_SHARED_PTR<modelgbp::span::MemberToRefRSrc> modelgbp::span::DstMember::addSpanMemberToRefRSrc ( )
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ getName() [1/2]

boost::optional<const std::string&> modelgbp::span::DstMember::getName ( )
inline

Get the value of name if it has been set.

Returns
the value of name or boost::none if not set

References isNameSet().

Referenced by getName().

◆ getName() [2/2]

const std::string& modelgbp::span::DstMember::getName ( const std::string &  defaultValue)
inline

Get the value of name if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of name if set, otherwise the value of default passed in

References getName().

◆ isNameSet()

bool modelgbp::span::DstMember::isNameSet ( )
inline

Check whether name has been set.

Returns
true if name has been set

Referenced by getName().

◆ registerListener() [1/2]

static void modelgbp::span::DstMember::registerListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Register a listener that will get called for changes related to this class.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
frameworkthe framework instance
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References CLASS_ID.

Referenced by registerListener().

◆ registerListener() [2/2]

static void modelgbp::span::DstMember::registerListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Register a listener that will get called for changes related to this class with the default framework instance.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References registerListener().

◆ remove() [1/3]

void modelgbp::span::DstMember::remove ( )
inline

Remove this instance using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [2/3]

static void modelgbp::span::DstMember::remove ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Remove the DstMember object with the specified URI using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
frameworkthe framework instance to use
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [3/3]

static void modelgbp::span::DstMember::remove ( const opflex::modb::URI &  uri)
inlinestatic

Remove the DstMember object with the specified URI using the currently-active mutator and the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

◆ removeUnderPolicyUniversePlatformConfigSpanDstGrp() [1/2]

static void modelgbp::span::DstMember::removeUnderPolicyUniversePlatformConfigSpanDstGrp ( opflex::ofcore::OFFramework &  framework,
const std::string &  platformConfigName,
const std::string &  spanDstGrpName,
const std::string &  spanDstMemberName 
)
inlinestatic

Remove the DstMember object with the specified path elements from the managed object store.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/SpanDstGrp/[spanDstGrpName]/SpanDstMember/[spanDstMemberName]

Parameters
frameworkthe framework instance to use
platformConfigNamethe value of platformConfigName, a naming property for Config
spanDstGrpNamethe value of spanDstGrpName, a naming property for DstGrp
spanDstMemberNamethe value of spanDstMemberName, a naming property for DstMember
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

Referenced by removeUnderPolicyUniversePlatformConfigSpanDstGrp().

◆ removeUnderPolicyUniversePlatformConfigSpanDstGrp() [2/2]

static void modelgbp::span::DstMember::removeUnderPolicyUniversePlatformConfigSpanDstGrp ( const std::string &  platformConfigName,
const std::string &  spanDstGrpName,
const std::string &  spanDstMemberName 
)
inlinestatic

Remove the DstMember object with the specified path elements from the managed object store using the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/SpanDstGrp/[spanDstGrpName]/SpanDstMember/[spanDstMemberName]

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
spanDstGrpNamethe value of spanDstGrpName, a naming property for DstGrp
spanDstMemberNamethe value of spanDstMemberName, a naming property for DstMember
Exceptions
std::logic_errorif no mutator is active

References removeUnderPolicyUniversePlatformConfigSpanDstGrp().

◆ removeUnderPolicyUniversePlatformConfigSpanSrcGrp() [1/2]

static void modelgbp::span::DstMember::removeUnderPolicyUniversePlatformConfigSpanSrcGrp ( opflex::ofcore::OFFramework &  framework,
const std::string &  platformConfigName,
const std::string &  spanSrcGrpName,
const std::string &  spanDstMemberName 
)
inlinestatic

Remove the DstMember object with the specified path elements from the managed object store.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/SpanSrcGrp/[spanSrcGrpName]/SpanDstMember/[spanDstMemberName]

Parameters
frameworkthe framework instance to use
platformConfigNamethe value of platformConfigName, a naming property for Config
spanSrcGrpNamethe value of spanSrcGrpName, a naming property for SrcGrp
spanDstMemberNamethe value of spanDstMemberName, a naming property for DstMember
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

Referenced by removeUnderPolicyUniversePlatformConfigSpanSrcGrp().

◆ removeUnderPolicyUniversePlatformConfigSpanSrcGrp() [2/2]

static void modelgbp::span::DstMember::removeUnderPolicyUniversePlatformConfigSpanSrcGrp ( const std::string &  platformConfigName,
const std::string &  spanSrcGrpName,
const std::string &  spanDstMemberName 
)
inlinestatic

Remove the DstMember object with the specified path elements from the managed object store using the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/SpanSrcGrp/[spanSrcGrpName]/SpanDstMember/[spanDstMemberName]

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
spanSrcGrpNamethe value of spanSrcGrpName, a naming property for SrcGrp
spanDstMemberNamethe value of spanDstMemberName, a naming property for DstMember
Exceptions
std::logic_errorif no mutator is active

References removeUnderPolicyUniversePlatformConfigSpanSrcGrp().

◆ resolve() [1/2]

static boost::optional<OF_SHARED_PTR<modelgbp::span::DstMember> > modelgbp::span::DstMember::resolve ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Retrieve an instance of DstMember from the managed object store.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
frameworkthe framework instance to use
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

Referenced by modelgbp::span::DstGrp::resolveSpanDstMember(), modelgbp::span::SrcGrp::resolveSpanDstMember(), resolveUnderPolicyUniversePlatformConfigSpanDstGrp(), and resolveUnderPolicyUniversePlatformConfigSpanSrcGrp().

◆ resolve() [2/2]

static boost::optional<OF_SHARED_PTR<modelgbp::span::DstMember> > modelgbp::span::DstMember::resolve ( const opflex::modb::URI &  uri)
inlinestatic

Retrieve an instance of DstMember from the managed object store using the default framework instance.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

◆ resolveSpanDstSummary()

boost::optional<OF_SHARED_PTR<modelgbp::span::DstSummary> > modelgbp::span::DstMember::resolveSpanDstSummary ( )
inline

Retrieve the child object with the specified naming properties.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::span::DstSummary::resolve().

◆ resolveSpanMemberToRefRSrc()

boost::optional<OF_SHARED_PTR<modelgbp::span::MemberToRefRSrc> > modelgbp::span::DstMember::resolveSpanMemberToRefRSrc ( )
inline

Retrieve the child object with the specified naming properties.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::span::MemberToRefRSrc::resolve().

◆ resolveUnderPolicyUniversePlatformConfigSpanDstGrp() [1/2]

static boost::optional<OF_SHARED_PTR<modelgbp::span::DstMember> > modelgbp::span::DstMember::resolveUnderPolicyUniversePlatformConfigSpanDstGrp ( opflex::ofcore::OFFramework &  framework,
const std::string &  platformConfigName,
const std::string &  spanDstGrpName,
const std::string &  spanDstMemberName 
)
inlinestatic

Retrieve an instance of DstMember from the managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/SpanDstGrp/[spanDstGrpName]/SpanDstMember/[spanDstMemberName]

Parameters
frameworkthe framework instance to use
platformConfigNamethe value of platformConfigName, a naming property for Config
spanDstGrpNamethe value of spanDstGrpName, a naming property for DstGrp
spanDstMemberNamethe value of spanDstMemberName, a naming property for DstMember
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

Referenced by resolveUnderPolicyUniversePlatformConfigSpanDstGrp().

◆ resolveUnderPolicyUniversePlatformConfigSpanDstGrp() [2/2]

static boost::optional<OF_SHARED_PTR<modelgbp::span::DstMember> > modelgbp::span::DstMember::resolveUnderPolicyUniversePlatformConfigSpanDstGrp ( const std::string &  platformConfigName,
const std::string &  spanDstGrpName,
const std::string &  spanDstMemberName 
)
inlinestatic

Retrieve an instance of DstMember from the default managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/SpanDstGrp/[spanDstGrpName]/SpanDstMember/[spanDstMemberName]

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
spanDstGrpNamethe value of spanDstGrpName, a naming property for DstGrp
spanDstMemberNamethe value of spanDstMemberName, a naming property for DstMember
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolveUnderPolicyUniversePlatformConfigSpanDstGrp().

◆ resolveUnderPolicyUniversePlatformConfigSpanSrcGrp() [1/2]

static boost::optional<OF_SHARED_PTR<modelgbp::span::DstMember> > modelgbp::span::DstMember::resolveUnderPolicyUniversePlatformConfigSpanSrcGrp ( opflex::ofcore::OFFramework &  framework,
const std::string &  platformConfigName,
const std::string &  spanSrcGrpName,
const std::string &  spanDstMemberName 
)
inlinestatic

Retrieve an instance of DstMember from the managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/SpanSrcGrp/[spanSrcGrpName]/SpanDstMember/[spanDstMemberName]

Parameters
frameworkthe framework instance to use
platformConfigNamethe value of platformConfigName, a naming property for Config
spanSrcGrpNamethe value of spanSrcGrpName, a naming property for SrcGrp
spanDstMemberNamethe value of spanDstMemberName, a naming property for DstMember
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

Referenced by resolveUnderPolicyUniversePlatformConfigSpanSrcGrp().

◆ resolveUnderPolicyUniversePlatformConfigSpanSrcGrp() [2/2]

static boost::optional<OF_SHARED_PTR<modelgbp::span::DstMember> > modelgbp::span::DstMember::resolveUnderPolicyUniversePlatformConfigSpanSrcGrp ( const std::string &  platformConfigName,
const std::string &  spanSrcGrpName,
const std::string &  spanDstMemberName 
)
inlinestatic

Retrieve an instance of DstMember from the default managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/SpanSrcGrp/[spanSrcGrpName]/SpanDstMember/[spanDstMemberName]

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
spanSrcGrpNamethe value of spanSrcGrpName, a naming property for SrcGrp
spanDstMemberNamethe value of spanDstMemberName, a naming property for DstMember
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolveUnderPolicyUniversePlatformConfigSpanSrcGrp().

◆ setName()

modelgbp::span::DstMember& modelgbp::span::DstMember::setName ( const std::string &  newValue)
inline

Set name to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See also
opflex::modb::Mutator

◆ unregisterListener() [1/2]

static void modelgbp::span::DstMember::unregisterListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Unregister a listener from updates to this class.

Parameters
frameworkthe framework instance
listenerThe listener to unregister.

References CLASS_ID.

Referenced by unregisterListener().

◆ unregisterListener() [2/2]

static void modelgbp::span::DstMember::unregisterListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Unregister a listener from updates to this class from the default framework instance.

Parameters
listenerThe listener to unregister.

References unregisterListener().

◆ unsetName()

modelgbp::span::DstMember& modelgbp::span::DstMember::unsetName ( )
inline

Unset name in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See also
opflex::modb::Mutator

The documentation for this class was generated from the following file: