diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-02-02 17:34:07 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-02-02 17:34:07 +0900 |
| commit | 7f6987a4b4950e77597fd1a4fd5d8c60e6209f07 (patch) | |
| tree | 8f7e29ddad65e1bf61abb406f01a4a342536c9f4 /src/ValueBase.h | |
| parent | 30e4077440e93a9e78cf55a3a1a4e295ae5e9a72 (diff) | |
Implement new RPC authorization using --rpc-secret option
Diffstat (limited to 'src/ValueBase.h')
| -rw-r--r-- | src/ValueBase.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ValueBase.h b/src/ValueBase.h index e65699c1..bf6a8c1c 100644 --- a/src/ValueBase.h +++ b/src/ValueBase.h @@ -38,7 +38,7 @@ #include "common.h" #include <string> -#include <vector> +#include <deque> #include <map> #include <memory> @@ -170,7 +170,7 @@ private: class List:public ValueBase { public: - typedef std::vector<std::unique_ptr<ValueBase>> ValueType; + typedef std::deque<std::unique_ptr<ValueBase>> ValueType; List(); @@ -196,6 +196,12 @@ public: // Returns the const reference of the object at the given index. ValueBase* operator[](size_t index) const; + // Pops the value in the front of the list. + void pop_front(); + + // Pops the value in the back of the list. + void pop_back(); + // Returns a read/write iterator that points to the first object in // list. ValueType::iterator begin(); |
