BusBoy
2
|
Use this class to build up a key step-by-step. More...
#include <DataKeyBuilder.h>
Public Member Functions | |
DataKeyBuilder () | |
DataKeyBuilder (const DataKeyBuilder &builder) | |
Copy from an existing builder. More... | |
void | addElement (const DataKeyElement &element) |
Add a single element. More... | |
void | addElements (const std::set< DataKeyElement > &elements) |
Add multiple elements. More... | |
void | addAllElements (const DataKey &key) |
Add all the elements in the key. More... | |
DataKey | toKey () const |
Create a key from the elements that have been added. More... | |
~DataKeyBuilder () | |
DataKeyBuilder & | operator= (const DataKeyBuilder &builder) |
Copy from an existing builder. More... | |
Use this class to build up a key step-by-step.
BUSBOY::DataKeyBuilder::DataKeyBuilder | ( | ) |
BUSBOY::DataKeyBuilder::DataKeyBuilder | ( | const DataKeyBuilder & | builder | ) |
Copy from an existing builder.
New builder starts with the same set of elements as its source.
BUSBOY::DataKeyBuilder::~DataKeyBuilder | ( | ) |
void BUSBOY::DataKeyBuilder::addAllElements | ( | const DataKey & | key | ) |
Add all the elements in the key.
void BUSBOY::DataKeyBuilder::addElement | ( | const DataKeyElement & | element | ) |
Add a single element.
void BUSBOY::DataKeyBuilder::addElements | ( | const std::set< DataKeyElement > & | elements | ) |
Add multiple elements.
DataKeyBuilder & BUSBOY::DataKeyBuilder::operator= | ( | const DataKeyBuilder & | builder | ) |
Copy from an existing builder.
This builder starts with the same set of elements as its source. Any elements previously added to this builder are removed
DataKey BUSBOY::DataKeyBuilder::toKey | ( | ) | const |
Create a key from the elements that have been added.
Copyright 2014 Google Inc. All rights reserved.