Concept HostedConceptConcept for types that have a host.
Concept for types that have a host.
Defined in | |
---|---|
Signature |
concept HostedConcept;
|
Detailed Description
Remarks
The functions of this concept assume that the hosted object exports a function _dataHost that returns a reference to a holder type of Host<T>::Type &.
Interface Function Overview
-
void assignHost(object, host);
Assign to the host of a given value. -
void clearHost(object);
Clear the host of the given object. -
void createHost(object[, host]);
Construct the host of the given object. -
void clearHost(object);
Query dependent state of a hosted object. -
bool emptyHost(object);
Query emptiness state of a hosted object. -
THostRef host(object);
The object a given object depends on. -
void moveHost(object, host);
Move to the host of a given value. -
void setHost(object, host);
Sets the host of an object.
Interface Metafunction Overview
-
Host<T>::Type
Type of the object a given object depends on.
Interface Functions Detail
void assignHost(object, host);
Assign to the host of a given value.
Parameters
host
|
The object to assign as host. |
---|---|
object
|
The object to assign the host of. |
Data Races
Thread safety unknown!
void clearHost(object);
Clear the host of the given object.
Parameters
object
|
The object to clear the host of. |
---|
Data Races
Thread safety unknown!
void createHost(object[, host]);
Construct the host of the given object.
Parameters
object
|
The object to copy construct the host of. |
---|---|
host
|
The object to copy in host creation. |
Remarks
If host is given then it is used for copy creation. Otherwise, the default constructor is used.
Data Races
Thread safety unknown!
void clearHost(object);
Query dependent state of a hosted object.
Parameters
object
|
The object query state of host of. |
---|
Returns
bool |
true if the host is dependent, false otherwise. |
---|
Data Races
Thread safety unknown!
bool emptyHost(object);
Query emptiness state of a hosted object.
Parameters
object
|
The object query state of host of. |
---|
Returns
bool |
true if the host is empty, false otherwise. |
---|
Data Races
Thread safety unknown!
THostRef host(object);
The object a given object depends on.
Parameters
object
|
An object. |
---|
Returns
THostRef |
Reference to the host object. |
---|
Data Races
Thread safety unknown!
void moveHost(object, host);
Move to the host of a given value.
Parameters
host
|
The object to move-assign as host. |
---|---|
object
|
The object to move-assign the host of. |
Data Races
Thread safety unknown!
void setHost(object, host);
Sets the host of an object.
Parameters
host
|
The new host. Types: String |
---|---|
object
|
The object that will get a new host. |
Remarks
After this operation, object depends on host.
Note that setting the host can invalidate object. For example, if one changes the host of a Segment object, it is possible that begin- and end-position of the segment does not fit into the new host sequence.
Data Races
Thread safety unknown!