Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38ab421
commit 4528273
Showing
9 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# `bulk::queue::begin` | ||
|
||
```cpp | ||
iterator begin(); | ||
``` | ||
|
||
Obtain an iterator to the begin of the local queue. | ||
|
||
## Return value | ||
|
||
- an iterator to the begin of the local queue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# `bulk::queue::queue` | ||
|
||
```cpp | ||
queue(world& world); | ||
``` | ||
Constructs a message queue for use in `world`. | ||
## Parameters | ||
* `world` - the world this queue belongs to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# `bulk::queue::~queue` | ||
|
||
```cpp | ||
~queue(); | ||
``` | ||
|
||
Deconstructs a queue, clears and deregisters it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# `bulk::queue::empty` | ||
|
||
```cpp | ||
bool empty() const; | ||
``` | ||
|
||
Checks whether the inbox is empty. | ||
|
||
## Return value | ||
|
||
- `true` if the inbox is empty, `false` otherwise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# `bulk::queue::end` | ||
|
||
```cpp | ||
iterator end(); | ||
``` | ||
|
||
Obtain an iterator to the end of the local queue. | ||
|
||
## Return value | ||
|
||
- an iterator to the end of the local queue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# `bulk::queue::sender` | ||
|
||
Defined in header `<bulk/messages.hpp>`. | ||
|
||
```cpp | ||
class sender | ||
``` | ||
Provides a way to send messages to remote queues. | ||
## Member functions | ||
| | | | ||
|-------------------------------------------------|-----------------------------------------------| | ||
| **Value access** | | | ||
| [`send`](sender/send.md) | assign values to the variable | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# `bulk::queue::sender::send` | ||
|
||
```cpp | ||
template <typename... Us> | ||
void send(Us... args) | ||
``` | ||
Send a message to a remote queue | ||
## Parameters | ||
* `args` - the content to send | ||
## Complexity and cost | ||
* **Cost** - `sizeof(Us...) * g` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# `bulk::queue::size` | ||
|
||
```cpp | ||
size_t size() const; | ||
``` | ||
|
||
Obtain the number of messages in the local queue. | ||
|
||
## Return value | ||
|
||
- the number of messages in the local queue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# `bulk::queue::world` | ||
|
||
```cpp | ||
bulk::world& world(); | ||
``` | ||
|
||
Returns a reference to the world the queue belongs to | ||
|
||
## Return value | ||
|
||
- A reference to the world. |