mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 10:09:36 +02:00
C++1x-ification
This commit is contained in:
@@ -35,7 +35,7 @@ class Redis_API Array
|
|||||||
/// value.
|
/// value.
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::vector<RedisType::Ptr>::const_iterator const_iterator;
|
using const_iterator = std::vector<RedisType::Ptr>::const_iterator;
|
||||||
|
|
||||||
Array();
|
Array();
|
||||||
/// Creates an Array. As long as there are no elements added,
|
/// Creates an Array. As long as there are no elements added,
|
||||||
@@ -157,7 +157,7 @@ private:
|
|||||||
void checkNull();
|
void checkNull();
|
||||||
/// Checks for null array and sets a new vector if true.
|
/// Checks for null array and sets a new vector if true.
|
||||||
|
|
||||||
Nullable<std::vector<RedisType::Ptr> > _elements;
|
Nullable<std::vector<RedisType::Ptr>> _elements;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class Redis_API Client
|
|||||||
/// bit integer, a simple string, a bulk string, an array or an error. The
|
/// bit integer, a simple string, a bulk string, an array or an error. The
|
||||||
/// first element of the command array is the Redis command. A simple string
|
/// first element of the command array is the Redis command. A simple string
|
||||||
/// is a string that cannot contain a CR or LF character. A bulk string is
|
/// is a string that cannot contain a CR or LF character. A bulk string is
|
||||||
/// implemented as a typedef for Poco::Nullable<std::string>. This is
|
/// implemented as an alias for Poco::Nullable<std::string>. This is
|
||||||
/// because a bulk string can represent a Null value.
|
/// because a bulk string can represent a Null value.
|
||||||
///
|
///
|
||||||
/// BulkString bs = client.execute<BulkString>(...);
|
/// BulkString bs = client.execute<BulkString>(...);
|
||||||
@@ -71,7 +71,7 @@ class Redis_API Client
|
|||||||
/// command << "list";
|
/// command << "list";
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef SharedPtr<Client> Ptr;
|
using Ptr = SharedPtr<Client>;
|
||||||
|
|
||||||
Client();
|
Client();
|
||||||
/// Creates an unconnected Client.
|
/// Creates an unconnected Client.
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class Redis_API Command: public Array
|
|||||||
///
|
///
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::vector<std::string> StringVec;
|
using StringVec = std::vector<std::string>;
|
||||||
|
|
||||||
Command(const std::string& command);
|
Command(const std::string& command);
|
||||||
/// Creates a command.
|
/// Creates a command.
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public:
|
|||||||
REDIS_ERROR /// Redis Error
|
REDIS_ERROR /// Redis Error
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef SharedPtr<RedisType> Ptr;
|
using Ptr = SharedPtr<RedisType>;
|
||||||
|
|
||||||
RedisType();
|
RedisType();
|
||||||
/// Creates the RedisType.
|
/// Creates the RedisType.
|
||||||
@@ -174,9 +174,9 @@ struct RedisTypeTraits<std::string>
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
typedef Nullable<std::string> BulkString;
|
using BulkString = Nullable<std::string>;
|
||||||
/// A bulk string is a string that can contain a NULL value.
|
/// A bulk string is a string that can contain a NULL value.
|
||||||
/// So, BulkString is a typedef for Nullable<std::string>.
|
/// So, BulkString is an alias for Nullable<std::string>.
|
||||||
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|||||||
Reference in New Issue
Block a user